{
  "openapi": "3.1.0",
  "info": {
    "title": "CorePilot API",
    "version": "v1",
    "description": "The API for CorePilot, the ERP for the aviation aftermarket. Every request carries `Authorization: Bearer <token>` (a token is minted inside a tenant, or approved on the consent page, and binds to one seat) and a `User-Agent` naming the client; bodies and answers are JSON. Every object carries `object`, and a list is `{ \"data\": [...], \"next_cursor\": \"...\" | null }` — follow `cursor` until `next_cursor` is null; there are no counts. A reference is a stub `{ \"object\", \"uuid\", \"name\" }` or null; `expand[]=<name>` on a single record inlines it. `x-internal: true` marks a member never meant for the counterparty this record's documents go to (cost, on hand, sourcing). A `PATCH` merges: an absent field is untouched and `null` clears. Every refusal is RFC 9457 `application/problem+json` whose `type` (`/problems/<slug>`) is the stable code. Two rate ceilings apply, the token's then the tenant's, with `X-RateLimit-*` on every answer and `Retry-After` on a 429. A 404 means the record is not in this tenant. `/api/v1` is a mount, not a promise of a `/v2`: changes are additive, and a client ignores what it does not know."
  },
  "servers": [
    {
      "url": "/api/v1"
    }
  ],
  "security": [
    {
      "bearer": []
    }
  ],
  "tags": [
    {
      "name": "access_tokens",
      "description": "Credentials acting as a seat, narrowed to their scopes"
    },
    {
      "name": "account_settings",
      "description": "How the account works: what billing, tax and buying do by default, its business day and the address it is reached at"
    },
    {
      "name": "account_terms",
      "description": "The account terms an owner accepts once on the account's behalf, which bind it in every tenant it has: the latest version"
    },
    {
      "name": "accounting_transactions",
      "description": "Balanced postings of our invoices, vouchers and inventory movements, sent to the connected books"
    },
    {
      "name": "agreement_acceptances",
      "description": "An owner's answer to the account terms on the account's behalf: accepting records it for the account and lets the owner in, declining signs the browser out"
    },
    {
      "name": "allocations",
      "description": "Inventory reserved for an order line's demand, from reservation through shipping or issue"
    },
    {
      "name": "alternates",
      "description": "Other part numbers that can stand in for a part, or that supersede or are superseded by it"
    },
    {
      "name": "applicabilities",
      "description": "The aircraft and engine types parts fit, such as the 737NG or the CFM56-7B"
    },
    {
      "name": "ata_chapters",
      "description": "The ATA iSpec 2200 chapters, by the number a part's `ata_chapter` takes, and the system each names"
    },
    {
      "name": "ata_zones",
      "description": "The ATA-100 zones, by the three-digit code a publication's `ata_zone` takes, each named by its major zone"
    },
    {
      "name": "attachments",
      "description": "Files attached to a record, each joining one upload to the record it belongs to"
    },
    {
      "name": "autoquote_settings",
      "description": "How autoquote fills each organization's draft quotes: which units it picks, what price history it trusts, and where it stops for a person"
    },
    {
      "name": "billing_addresses",
      "description": "Our organization's own addresses for billing, the primary one printed on its letterhead and billed from by default"
    },
    {
      "name": "bins",
      "description": "The bins at a facility that inventory is put away to, shared by every warehouse there"
    },
    {
      "name": "bots",
      "description": "Agents and integrations acting here under their own name, and the tokens they hold"
    },
    {
      "name": "calendar_events",
      "description": "Time someone is away, busy or free: a person's own, such as a vacation or a visit, or an event on a shared or closures calendar. Of a private event, everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free. `/calendar_items` reads a range of days across them"
    },
    {
      "name": "calendar_items",
      "description": "The calendar over one range of days: each event touching it, and each day a record falls due in it. Of a private event, everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free. `show_as[]=away` is who is out. A record date is read from its record each time, and only where the seat reads that kind of record"
    },
    {
      "name": "calendars",
      "description": "Calendars the tenant shares, such as trade shows or audits, and closures calendars, whose events put everyone in their organization away"
    },
    {
      "name": "calibrations",
      "description": "Calibration checks on a tool, with the result, the certificate and when the next is due"
    },
    {
      "name": "carrier_accounts",
      "description": "Accounts with carriers that shipments are billed to: one of our organizations', or a company's for shipping on their account"
    },
    {
      "name": "carriers",
      "description": "The freight carriers and couriers we ship with, such as FedEx, UPS or DHL"
    },
    {
      "name": "certificate_standards",
      "description": "The standards and authorities a vendor's certificates are issued under, such as FAA Part 145, ASA-100 or AS9120"
    },
    {
      "name": "certificates",
      "description": "A statement we issued about units leaving on a release, drafted over its verified part lines and signed by an employee holding its form's skill; once signed it stands as signed, and a correction voids it and issues another"
    },
    {
      "name": "charges",
      "description": "Fees billed or paid beside parts, such as freight, handling, AOG and certification fees"
    },
    {
      "name": "clauses",
      "description": "Reusable terms and conditions printed on quotes, orders and other documents, as text or a link"
    },
    {
      "name": "combined_tax_rates",
      "description": "The tax codes a line is taxed under, each summing the jurisdiction rates it is made of"
    },
    {
      "name": "companies",
      "description": "The businesses we trade with, as a customer, a vendor or both"
    },
    {
      "name": "company_addresses",
      "description": "A company's shipping and billing addresses, with the primary one for each"
    },
    {
      "name": "company_segments",
      "description": "The kinds of business a company is, such as airline, broker, OEM or repair station"
    },
    {
      "name": "condition_answers",
      "description": "Which of our conditions satisfy an RFQ asking for a marketplace's condition"
    },
    {
      "name": "condition_listings",
      "description": "Which of a marketplace's conditions each of ours lists, and quotes, as there; a condition with none there is not listed"
    },
    {
      "name": "conditions",
      "description": "The condition codes parts are bought and sold in, such as NE, OH, SV and AR"
    },
    {
      "name": "consignor_statements",
      "description": "What we owe a consignor for the consigned parts we sold, settled on a statement"
    },
    {
      "name": "contact_roles",
      "description": "What a contact does for their company, such as purchasing, quality or accounts payable"
    },
    {
      "name": "contacts",
      "description": "People at the companies we trade with, and how to reach them"
    },
    {
      "name": "conversations",
      "description": "The threads an organization's messages are grouped into, each an email thread or the calls and chats logged on it"
    },
    {
      "name": "corepilot_legacy_migration",
      "description": "Each file CorePilot legacy filed on a record, and how its copy into CorePilot stands: still arriving, copied as an upload, or kept in CorePilot legacy and why"
    },
    {
      "name": "countries",
      "description": "The world's countries, by the ISO 3166 code an address's `country_code` takes"
    },
    {
      "name": "currencies",
      "description": "The world's currencies, by the ISO 4217 code a record's `currency_code` takes, and the minor units its cents count in"
    },
    {
      "name": "customer_exchanges",
      "description": "The core a customer owes us after an exchange sale, until it is returned, billed or written off"
    },
    {
      "name": "customer_leases",
      "description": "One of our units lent to a customer for a period, from the shipment that sends it out until it comes back"
    },
    {
      "name": "customer_no_quote_reasons",
      "description": "Why we did not quote a part a customer asked for, as printed on the quote"
    },
    {
      "name": "customer_part_prices",
      "description": "Part prices: what a part sells for to a customer segment or one customer, or its list price, and the most specific price in effect wins"
    },
    {
      "name": "customer_payments",
      "description": "Payments a customer has made: against an invoice, or on a sales order before it is invoiced"
    },
    {
      "name": "customer_quote_archive_reasons",
      "description": "Why a customer quote was archived unquoted, such as spam or not a request for quote"
    },
    {
      "name": "customer_quote_lines",
      "description": "Customer quote lines across every quote: what a part was quoted at, to whom and in what condition"
    },
    {
      "name": "customer_quote_lost_reasons",
      "description": "Why a customer quote was lost, such as price, lead time or none on hand"
    },
    {
      "name": "customer_quotes",
      "description": "Quotes we send customers for parts, repairs and charges, from their RFQ through won or lost"
    },
    {
      "name": "customer_repair_prices",
      "description": "Repair prices: what one repair service on a part costs a customer segment or one customer, or its list price"
    },
    {
      "name": "customer_return_lines",
      "description": "Customer return lines across every return: what came back against which order line, why, and how far it got"
    },
    {
      "name": "customer_return_reasons",
      "description": "Why a customer sent parts back, such as a defective unit or shipping damage"
    },
    {
      "name": "customer_returns",
      "description": "Parts a customer is authorized to send back against a sales order, received and credited"
    },
    {
      "name": "customer_rfq_lines",
      "description": "RFQ lines across every customer quote: each part a customer asked for, how many, and on which request"
    },
    {
      "name": "customer_tax_exemptions",
      "description": "A customer's sales tax exemptions, with the reason, certificate number and dates they hold"
    },
    {
      "name": "dashboard_opening",
      "description": "The dashboard Home opens a tab on for you, given to you, a team of yours or everyone to open first; a bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "dashboards",
      "description": "A dashboard is a named page of tiles (`/dashboards/{dashboard_uuid}/tiles`, MCP `dashboard_tile`), each a number or chart summarizing a list over the dashboard's `period`. Each tile serves the figures it last read as the dashboard's creator (`expand[]=result`) until `refresh_tiles` reads them again, and a tile reading a view or a list you can't read serves you no figures. A dashboard is yours alone until you give it to everyone, a team or a person at `/dashboards/{dashboard_uuid}/audiences` (MCP `dashboard_audience`), which can also make it the one that opens first for them, as a tab on Home (`/dashboard_opening`). `arrange` moves and resizes many tiles in one call. A bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "default_issue_parts",
      "description": "The piece parts a repair or purchase order line for a part issues by default, and how many per unit"
    },
    {
      "name": "demands",
      "description": "Needs for parts not yet allocated, the soonest needed first, each with the stock and inbound that could fill it"
    },
    {
      "name": "direct_rfq_condition_answers",
      "description": "Which of our conditions satisfy an RFQ sent to us directly asking for one of the direct RFQ conditions"
    },
    {
      "name": "direct_rfq_conditions",
      "description": "The conditions a customer may name on an RFQ sent to us directly, not through a marketplace, with which of ours answer each"
    },
    {
      "name": "direct_rfq_repair_service_answers",
      "description": "Which of our repair services satisfy an RFQ sent to us directly asking for one of the direct RFQ repair services"
    },
    {
      "name": "direct_rfq_repair_services",
      "description": "The repair services a customer may name on an RFQ sent to us directly, not through a marketplace, with which of ours answer each"
    },
    {
      "name": "direct_rfq_tag_types",
      "description": "The tag types a customer may name on an RFQ sent to us directly, not through a marketplace, with which of ours answer each"
    },
    {
      "name": "document_template_versions",
      "description": "The published versions of a form's look, newest first, each restorable into the form's draft"
    },
    {
      "name": "document_templates",
      "description": "How each form prints: its page size, its dates, its accent, the text around its lines, which fields it shows, and optionally a Typst layout of its own (`layout_source`). Every change lands on the form's draft, an update (`PATCH`) opening one off what prints; `preview` renders the draft against a record, as a PDF or as page images; `publish` compiles the draft's own layout on the newest records the form prints off, refusing it if one fails, and makes the draft what prints; `check` runs the same compile and answers what it found, publishing nothing; `discard_draft` drops it. Each publish keeps a version, a `document_template_version`, listed newest first; `restore` puts one back into the draft, once there is none, to publish again. A layout reads `json(sys.inputs.data)`: `record`, the record as its `get` answers it with every expansion and its lines whole, `letterhead`, `settings` (the look) and `page`, what our standard layout prints, and imports `@corepilot/frame`, our page frame, which exports `sheet` (the page: its size, margins, type and footer), `letterhead` (the organization's name, logo, address and contacts), `masthead` (the title, an optional notice, the meta rows and an accent rule), `parties` (the parties side by side), `lead` (an opening paragraph), `ledger` (the line table), `summary` (the totals), `callout` (one label and value in an accent box), `inspections` (each unit's inspection checklist), `notes` (a labelled paragraph), `shaded` (a labelled paragraph in a shaded box, as every form prints its notes), `bullets` (a labelled bulleted list), `clauses` (the terms), `eyebrow` (a small bold capitalized label), and `stack` (lines joined with line breaks). The skill at /.well-known/agent-skills/document-layouts/SKILL.md teaches writing one, with each function's arguments"
    },
    {
      "name": "documents",
      "description": "A document printed off a record, such as a packing list or an invoice, each generation with its render status and its file"
    },
    {
      "name": "due_in_lines",
      "description": "Due-in lines across every order that receives: what each purchase order, repair order, return, exchange, lease and work order still owes us"
    },
    {
      "name": "due_in_orders",
      "description": "Due-in orders: each purchase order, repair order, return, exchange, lease and work order still owed goods, with where its receipt stands"
    },
    {
      "name": "email_banners",
      "description": "A promotion an organization runs under the signature of its emails for a span of days, to the audiences and kinds of email it names"
    },
    {
      "name": "email_kinds",
      "description": "Each kind of email the app sends: who it goes to, the fields its words may hold, and the words it goes out in where no template words it"
    },
    {
      "name": "email_layouts",
      "description": "How each organization's emails to its customers and vendors look: the accent color, font and alignment its layout wraps every message in"
    },
    {
      "name": "email_sender_rules",
      "description": "The rules administrators made about email from one address or one domain: a blocked sender's email is held unread until the rule is deleted, and an allowed sender's isn't held when the mail scan marks it as spam"
    },
    {
      "name": "email_sending_settings",
      "description": "How each organization emails its customers and vendors: from Terminal's own address or a verified domain, where replies go, and whether the sender is copied"
    },
    {
      "name": "email_suppressions",
      "description": "The addresses the mail service won't send the account's email to, each because an email to it bounced for good or its recipient reported one as spam"
    },
    {
      "name": "email_template_preferences",
      "description": "Which template each kind of email you send opens in, your own choice ahead of the organization's Default; a bot's token gets a 404, since a bot sends no email of its own"
    },
    {
      "name": "email_templates",
      "description": "An organization's own wording for one kind of email, its subject, message and Cc; at most one of each kind is its Default"
    },
    {
      "name": "employee_skills",
      "description": "Every employee's skills, each with the hours of open tasks assigned to them that it takes, narrowed by employee or skill"
    },
    {
      "name": "employees",
      "description": "The people on the repair station's roster who do, inspect, sign off or supervise its work, with the skills they hold, their certificate number and their hourly cost. A login is access to the software, not part of being an employee: one with a login is called by its name, one without by their own"
    },
    {
      "name": "events",
      "description": "Everything that happened to our records, in order: who did what, and when"
    },
    {
      "name": "exports",
      "description": "Runs of a report: files built on request and downloaded when ready, and each report downloaded straight from its list"
    },
    {
      "name": "external_streams",
      "description": "The kinds of record an outside system offers (Salesforce's objects), which of them a pull reads, and how far it has"
    },
    {
      "name": "external_systems",
      "description": "Outside systems (a marketplace, a warehouse system) that know our records by keys of their own"
    },
    {
      "name": "facilities",
      "description": "Our own buildings, the places we ship from, each with its bins and printers, the tax origin it sells from and the bins its arrivals land in"
    },
    {
      "name": "freight_terms",
      "description": "Incoterms and FOB terms, saying where freight cost and risk pass from seller to buyer"
    },
    {
      "name": "fx_rates",
      "description": "Exchange rates into our home currency by day, which records convert at"
    },
    {
      "name": "identity",
      "description": "Who the caller acts as: its seat, its login, its tenant and account, what it may do there and, for a token, its scopes"
    },
    {
      "name": "import_types",
      "description": "The spreadsheets we can import, with the columns each reads and which are required"
    },
    {
      "name": "imports",
      "description": "Spreadsheets of parts, companies, inventory and more, checked row by row and then applied"
    },
    {
      "name": "inspection_checklist_items",
      "description": "What a checklist asks, in order: a pass or fail check, a measurement, a choice, a note, a date or photos, and whether a failing answer warns or blocks"
    },
    {
      "name": "inspection_checklists",
      "description": "What an organization's inspectors check at one step, receiving inspection or outbound QC; one checklist runs per step"
    },
    {
      "name": "inspection_items",
      "description": "One item an inspection asks, copied from its checklist when the inspection started, with its answer and who gave it"
    },
    {
      "name": "inspections",
      "description": "One run of a checklist on one unit, or on a receipt line before Receive, its items copied when it started; a receiving inspection holds the unit's release until it passes, and an outbound QC one verifies its release line when it passes"
    },
    {
      "name": "inventory_codes",
      "description": "Inventory codes saying who owns inventory and how it is costed: our own, consigned, pooled or held for others"
    },
    {
      "name": "inventory_entries",
      "description": "The inventory ledger: each receipt, issue, adjustment, transfer and settlement that moved stock or cost"
    },
    {
      "name": "inventory_lines",
      "description": "Units in stock by part, condition and location, with the quantity on hand and what they cost"
    },
    {
      "name": "inventory_participations",
      "description": "A company's share of what an inventory's sales earn, as its consignor or an investor"
    },
    {
      "name": "investor_statements",
      "description": "What we owe an investor for their share of an inventory's sales, settled on a statement"
    },
    {
      "name": "invoices",
      "description": "Invoices and credit memos we bill customers, from draft through sent and paid"
    },
    {
      "name": "issued_parts",
      "description": "Parts from our inventory sent to a vendor to be used on a purchase or repair order line"
    },
    {
      "name": "items",
      "description": "Everything a line can carry, each part and each charge in one list"
    },
    {
      "name": "labor_entries",
      "description": "The labor ledger: each stretch of time one employee worked on one task with one of its skills, at the rates in force when it started"
    },
    {
      "name": "lead_times",
      "description": "How soon a part can ship, such as in stock or two weeks, quoted on quote lines"
    },
    {
      "name": "ledger_account_activities",
      "description": "Each general ledger account's movement over a span of posting days, and what it holds through the span's end"
    },
    {
      "name": "ledger_accounts",
      "description": "Our chart of accounts: the general ledger accounts postings land in"
    },
    {
      "name": "ledger_defaults",
      "description": "The GL account each purpose posts to, unless an inventory code sets its own"
    },
    {
      "name": "manifests",
      "description": "What a cost pool expects from a package or a teardown, line by line, until each part is received or written off"
    },
    {
      "name": "manufacturers",
      "description": "The makers of parts and publications, with their CAGE code"
    },
    {
      "name": "marketplace_catalogs",
      "description": "The catalogs an organization keeps on a marketplace, of its inventory or its repair capabilities: the general one every buyer sees, and one per buyer group"
    },
    {
      "name": "marketplace_conditions",
      "description": "The conditions a marketplace defines, with which of ours list as each and which answer an RFQ for it"
    },
    {
      "name": "marketplace_integrations",
      "description": "How each organization's listings reach each marketplace: by hand or on a schedule, and the credentials its API asks for"
    },
    {
      "name": "marketplace_measurement_units",
      "description": "The units of measure a marketplace takes, with which of ours list as each"
    },
    {
      "name": "marketplace_repair_services",
      "description": "The repair services a marketplace names, with which of ours list as each and which answer an RFQ for it"
    },
    {
      "name": "marketplace_tag_types",
      "description": "The tag types a marketplace names, with which of ours list as each and which answer an RFQ for it"
    },
    {
      "name": "marketplaces",
      "description": "The parts marketplaces we list on and answer RFQs from, such as ILS or PartsBase, or one of our own"
    },
    {
      "name": "measurement_unit_listings",
      "description": "Which of a marketplace's units each of ours lists as there; a unit with none there lists under its own code"
    },
    {
      "name": "measurement_units",
      "description": "The units parts are counted, weighed and measured in, such as each, pounds or inches"
    },
    {
      "name": "memberships",
      "description": "The people's and bots' seats in the tenant, by name; a read by uuid also answers a staff member's support seat, an event's actor"
    },
    {
      "name": "message_files",
      "description": "The files that came inside an email, each fetched by the uuid its message lists"
    },
    {
      "name": "message_recipients",
      "description": "What can be done for one recipient of an email we sent that went to their junk folder, read by the uuid its message lists"
    },
    {
      "name": "messages",
      "description": "Emails, calls and chats between one of our organizations and the companies it trades with: email received at its intake addresses or sent from the app, and calls and chats a person logged, each with its files"
    },
    {
      "name": "migrations",
      "description": "Each system's records migrating in through imports: held as that system keeps them until CorePilot becomes the system of record in its place"
    },
    {
      "name": "my_work",
      "description": "What needs you: the records you hold or have worked on that are overdue, due today or waiting on you, and why"
    },
    {
      "name": "notification_preferences",
      "description": "Which kinds of email you get from this business, each yours alone to stop or resume; a bot's token gets a 404, since a bot is emailed nothing"
    },
    {
      "name": "notifications",
      "description": "Your notifications: approvals waiting on you, and what other people change on records you hold or have worked on; a bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "oauth_authorizations",
      "description": "Apps a member approved to act as them here: a member reads their own, an administrator everyone's"
    },
    {
      "name": "onboarding",
      "description": "How far the account has got setting itself up, the steps Get started lists, and whether the asking seat put it away"
    },
    {
      "name": "onboarding_steps",
      "description": "One step Get started lists, in its order: what it asks, and whether the data or a person says it is done or skipped"
    },
    {
      "name": "organizations",
      "description": "The businesses the account trades as, each with its own name, logo and letterhead, its billing addresses under `/billing_addresses`"
    },
    {
      "name": "part_classifications",
      "description": "The classes parts are grouped under, such as rotable, expendable or consumable"
    },
    {
      "name": "parts",
      "description": "Parts we buy, sell, stock or repair, identified by part number"
    },
    {
      "name": "password_confirmations",
      "description": "Confirming the signed-in browser's password again, before minting a token"
    },
    {
      "name": "payment_terms",
      "description": "When payment is due, such as Net 30 or prepayment, set on customers, vendors and records"
    },
    {
      "name": "print_node_integration",
      "description": "The tenant's one PrintNode account, which the computers beside its printers sign in to and every print goes out through"
    },
    {
      "name": "print_requests",
      "description": "Sends of documents, in order, or of a printer's test page, to a printer as one job, each followed until it reaches the computer's print queue, fails or expires"
    },
    {
      "name": "printers",
      "description": "The printers at our facilities, each on a computer signed in to the tenant's PrintNode account, that documents print to"
    },
    {
      "name": "profile",
      "description": "Your own seat as you see it, and your login's time zone"
    },
    {
      "name": "protection_reasons",
      "description": "Why inventory is protected from sale, such as an inspection hold, missing documents or tooling"
    },
    {
      "name": "publication_categories",
      "description": "The kinds of technical publication, such as maintenance manuals, service bulletins and ADs"
    },
    {
      "name": "publication_revisions",
      "description": "The revisions of a technical publication, marking the one in force today"
    },
    {
      "name": "publications",
      "description": "The technical data we work to, such as component maintenance manuals and service bulletins"
    },
    {
      "name": "purchase_order_lines",
      "description": "Purchase order lines across every order: what a part cost, from whom and in what condition"
    },
    {
      "name": "purchase_orders",
      "description": "Orders we place with vendors to buy parts, from draft through receiving and billing"
    },
    {
      "name": "quickbooks_assignments",
      "description": "Which records are linked to their twins in the account's QuickBooks company, and how each link was made"
    },
    {
      "name": "quickbooks_integration",
      "description": "The account's one connection to QuickBooks Online: the company it posts into, and the date posting starts from"
    },
    {
      "name": "receipt_lines",
      "description": "Receipt lines across every receipt: what arrived, into which inventory code, and whether it is checked in"
    },
    {
      "name": "receipts",
      "description": "Parts arriving from a vendor, a customer or an import, checked in line by line to inventory"
    },
    {
      "name": "rejection_reasons",
      "description": "Why received units were rejected, such as the wrong part number, condition or certification"
    },
    {
      "name": "rejections",
      "description": "Received units held back for a problem, until they are put back, scrapped, returned or repaired"
    },
    {
      "name": "release_lines",
      "description": "Release lines across every release: the part lines waiting to be picked, checked and shipped, and what shipped today"
    },
    {
      "name": "releases",
      "description": "Shipments of our parts to a customer or vendor, picked, verified and shipped against an order"
    },
    {
      "name": "repair_capabilities",
      "description": "Every part's repair capabilities: the repair services each part can be sent out for, each listed until it is retired"
    },
    {
      "name": "repair_order_lines",
      "description": "Repair order lines across every order: what a part cost to repair, and at which shop"
    },
    {
      "name": "repair_order_stages",
      "description": "The statuses an organization's repair orders move through, one per lifecycle status, each with the time tracking the shop sets"
    },
    {
      "name": "repair_orders",
      "description": "Orders sending units to a vendor for repair, overhaul or test, through their return"
    },
    {
      "name": "repair_service_answers",
      "description": "Which of our repair services satisfy an RFQ asking for a marketplace's repair service"
    },
    {
      "name": "repair_service_listings",
      "description": "Which of a marketplace's repair services each of ours lists, and quotes, as there; a service with none there is not listed"
    },
    {
      "name": "repair_services",
      "description": "The kinds of repair work, such as overhaul, repair, test or calibration"
    },
    {
      "name": "requirements",
      "description": "What a sales order needs before it opens, releases or ships, or a unit received on a purchase or repair order before it is released into inventory: a document of one upload category, or a fact the system checks"
    },
    {
      "name": "roles",
      "description": "Bundles of grants a member holds, the standard ones the product seeds and the account's own"
    },
    {
      "name": "sales_order_lines",
      "description": "Sales order lines across every order: what a part sold for, to whom and in what condition"
    },
    {
      "name": "sales_orders",
      "description": "Orders a customer has placed with us, open from the moment they exist through shipping and billing"
    },
    {
      "name": "sales_reports",
      "description": "Requests by the channel they arrived through"
    },
    {
      "name": "salesforce_integration",
      "description": "The tenant's one connection to its Salesforce org: the org's address, the External Client App it signs in as, and what it reached"
    },
    {
      "name": "salespeople",
      "description": "Members who sell, credited on the quotes and sales orders they own"
    },
    {
      "name": "search_results",
      "description": "Records matching a name, part number or identifier, across every kind of record"
    },
    {
      "name": "sending_addresses",
      "description": "The shared mailboxes each organization may send its email as, such as sales@acme.com, each confirmed by a code mailed to it"
    },
    {
      "name": "sending_domains",
      "description": "The domains the account sends its customers and vendors email as, each with the DNS records that verify it"
    },
    {
      "name": "sessions",
      "description": "The browsers signed in as you. A token is none of them, so signing out elsewhere with one signs out every browser; a bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "share_files",
      "description": "The files a share sent, each pinned to the exact version or printed document that went out"
    },
    {
      "name": "share_recipients",
      "description": "The people files were shared with, each with a link of their own, how it stands, and when they last opened it"
    },
    {
      "name": "share_views",
      "description": "Each time someone a share is for opened it, or viewed or downloaded one of its files"
    },
    {
      "name": "shares",
      "description": "Files from a record, or picked on the Uploads page, made visible to named people outside the business, each with a link of their own, until their links expire"
    },
    {
      "name": "ship_vias",
      "description": "The services a carrier offers, such as priority overnight or LTL freight, each with its mode"
    },
    {
      "name": "shortcuts",
      "description": "Your shortcuts: the pages and links pinned to your sidebar, in your order; a bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "skills",
      "description": "Trade skills our staff hold, with the labor rates each costs and bills at"
    },
    {
      "name": "smart_listing",
      "description": "Smart Listing, the module keeping marketplaces' listings up to date: whether this account has it"
    },
    {
      "name": "smart_quoting",
      "description": "Smart Quoting, the module reading the RFQs customers email: whether this account has it, where its email goes, and this month's use"
    },
    {
      "name": "sourcing_requests",
      "description": "Parts we need to find, from the first ask to vendors through the purchase order that buys them"
    },
    {
      "name": "support_access",
      "description": "Whether CorePilot staff may open support sessions on any of the account's tenants, which its owners turn off and on from production"
    },
    {
      "name": "support_messenger",
      "description": "The support messenger, booted as the signed-in browser's own seat"
    },
    {
      "name": "support_sessions",
      "description": "Every visit CorePilot staff made to this tenant on its support seat, newest first, for the seats that manage settings; each of the account's other tenants lists its own"
    },
    {
      "name": "tax_categories",
      "description": "The tax classes parts and charges fall into, one of the three things that pick a tax code"
    },
    {
      "name": "tax_destinations",
      "description": "Where we ship to for tax. An address with none set takes the active one its country and region match, a region's before its country's"
    },
    {
      "name": "tax_origins",
      "description": "Where we ship from for tax, set on warehouses to pick a tax code"
    },
    {
      "name": "teams",
      "description": "Named groups of the tenant's people, such as a shop's inspectors, that work is routed to as one; a team grants nothing"
    },
    {
      "name": "time_zones",
      "description": "The world's time zones, by the IANA name a tenant's or a person's `time_zone` takes, and the friendlier names it is also called by"
    },
    {
      "name": "tools",
      "description": "Tools on hand: the never-calibrated first, then the soonest due for calibration, the exempt last"
    },
    {
      "name": "triage_rules",
      "description": "How an organization's drafted requests for quote are routed as they land: the first active rule, in order, whose conditions all hold assigns, holds, archives or answers the quote no quote"
    },
    {
      "name": "upload_categories",
      "description": "The kinds of file we keep, such as 8130-3 tags, certificates of conformance and test reports"
    },
    {
      "name": "uploads",
      "description": "Files we keep, such as certificates and photos, with every version and the records they attach to"
    },
    {
      "name": "vendor_capabilities",
      "description": "The parts a vendor is approved for, each for one repair service or any"
    },
    {
      "name": "vendor_certificates",
      "description": "A vendor's certificates and accreditations, with their numbers, the dates they run and which approvals lapse with them"
    },
    {
      "name": "vendor_exchanges",
      "description": "The core we owe a vendor after an exchange purchase, until it ships back or is settled"
    },
    {
      "name": "vendor_inventory_lines",
      "description": "Vendor inventory: the parts a vendor says it holds, each at a quantity and price between two dates, to source, quote and buy from"
    },
    {
      "name": "vendor_leases",
      "description": "A vendor's unit we lease in for a period, from the receipt that brings it in until it goes back or we buy it"
    },
    {
      "name": "vendor_part_prices",
      "description": "Vendor part prices: what one vendor has agreed to charge us for a part, from a minimum quantity, between two dates"
    },
    {
      "name": "vendor_payments",
      "description": "Payments we made: against a voucher or a consignor or investor statement, or on a purchase order before its voucher"
    },
    {
      "name": "vendor_quote_lines",
      "description": "Vendor quote lines across every RFQ: what vendors offered a part at, and in what condition"
    },
    {
      "name": "vendor_repair_prices",
      "description": "Vendor repair prices: what one vendor has agreed to charge us for one repair service on a part, from a minimum quantity, between two dates"
    },
    {
      "name": "vendor_returns",
      "description": "Parts we send back to the vendor we bought them from, and the credit we take for them"
    },
    {
      "name": "vendor_rfq_lines",
      "description": "The parts we ask vendors to quote, each held on a vendor RFQ"
    },
    {
      "name": "vendor_rfqs",
      "description": "Requests for quote we send vendors, and the quotes they send back"
    },
    {
      "name": "view_openings",
      "description": "The view each place opens on for you, read whole: a view of your own you open by default (`opens_by_default`), else a view given to you to open first; a bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "views",
      "description": "A view is a named arrangement of one API path (`resource`) for one place a client draws it (`context`): its fields, sections and sort, and on a filtered list the filters that narrow its rows. A view is yours alone until you give it to everyone, a team or a person at `/views/{view_uuid}/audiences` (MCP `view_audience`), which can also make it the view that place opens first. Each person who sees a view may personalize it at `/views/{view_uuid}/personalization` (MCP `view_personalization`): their own fields, sections and sort stand in for the view's, for them alone. Each place opens on the view a person chose to open by default, else the one given to them to open first; `/view_openings` (MCP `view_openings`) says which. A list reads through a view with `?view={view_uuid}` (MCP `list`'s `view`). A bot's token gets a 404, since a bot signs in as no one"
    },
    {
      "name": "vouchers",
      "description": "Vendor bills and credits for what we bought or repaired, approved before they are paid"
    },
    {
      "name": "warehouse_work",
      "description": "What the warehouse has to do, read across Shipping and Receiving: each open release at each step its lines stand at, and each order owed goods by today"
    },
    {
      "name": "warehouses",
      "description": "The groups of inventory we keep at each facility, with the marketplaces each is hidden from"
    },
    {
      "name": "webhook_endpoints",
      "description": "Where we send events as they happen, signed so the receiver can trust them"
    },
    {
      "name": "work_centers",
      "description": "Where an organization's shop does its work, set on a work order"
    },
    {
      "name": "work_instructions",
      "description": "One step of a work order task, in order, with who does it and the skill it asks; completed, carried forward with a note, cancelled or reopened through its own verbs, and a humidity and temperature check completed only with its reading"
    },
    {
      "name": "work_order_gates",
      "description": "The steps of an organization's repair process its work orders pass in order, each holding the tasks set behind it"
    },
    {
      "name": "work_order_material_dispositions",
      "description": "What becomes of a work order material's part after inspection, from a list the shop keeps"
    },
    {
      "name": "work_order_material_inspection_compliances",
      "description": "The kind of inspection a work order material's part has complied with, from a list the shop keeps"
    },
    {
      "name": "work_order_material_ndt_quantity_statuses",
      "description": "Where non-destructive testing of a work order material's quantity stands, from a list the shop keeps"
    },
    {
      "name": "work_order_material_pick_statuses",
      "description": "Where a work order material's pick stands, such as Pulled or Staged, from a list the shop keeps"
    },
    {
      "name": "work_order_material_removal_priorities",
      "description": "How soon a work order material's part comes off the unit, from a list the shop keeps"
    },
    {
      "name": "work_order_material_supply_statuses",
      "description": "Where getting a work order material's part stands, from a list the shop keeps"
    },
    {
      "name": "work_order_materials",
      "description": "The parts a work order's task calls for, each a part in a least condition, how many and what kind of use; each but a visual check, a removal or the customer's unit sent out is a demand on inventory"
    },
    {
      "name": "work_order_settings",
      "description": "How each organization's work orders weigh the customer's credit, where the customer's unit lands, and the publications they are worked to"
    },
    {
      "name": "work_order_shop_supplies",
      "description": "The non-inventory supplies a work order's task records using, such as grease, oil or solvent: each a part, where it came from, how much in which unit and its batch or lot; never allocated or issued"
    },
    {
      "name": "work_order_stages",
      "description": "The statuses an organization's work orders move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a working one"
    },
    {
      "name": "work_order_task_stages",
      "description": "The statuses an organization's work order tasks move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a status a task moves to"
    },
    {
      "name": "work_order_tasks",
      "description": "Every work order's tasks in one list, each with its work order, to find a task by its number or name"
    },
    {
      "name": "work_order_template_categories",
      "description": "What work order templates are filed under, such as Landing gear, and its subcategories one level beneath"
    },
    {
      "name": "work_order_template_instructions",
      "description": "One step of a work order template's task, in order, with the skill it asks, copied onto the work order's task as an open work instruction"
    },
    {
      "name": "work_order_template_materials",
      "description": "The parts a work order template's task calls for, each copied onto the work order's task as a material when the template applies"
    },
    {
      "name": "work_order_template_tasks",
      "description": "Every template's tasks in one list, each with its template, the template's customer and the task's prices, to reprice them together"
    },
    {
      "name": "work_order_templates",
      "description": "A scope of work an organization keeps for a kind of job, filed under a category and copied onto a work order"
    },
    {
      "name": "work_orders",
      "description": "A customer's unit repaired, overhauled or tested in our own shop, from its arrival until it goes home"
    },
    {
      "name": "work_stations",
      "description": "A bench, bay or cell in an organization's shop"
    }
  ],
  "paths": {
    "/access_tokens": {
      "get": {
        "operationId": "list_access_tokens",
        "summary": "List access tokens",
        "tags": [
          "access_tokens"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "live",
                  "revoked",
                  "expired"
                ],
                "description": "`live`: Works until it is revoked or expires; `revoked`: Refused since someone revoked it; `expired`: Refused since the day it was set to expire",
                "x-enum-descriptions": [
                  "Works until it is revoked or expires",
                  "Refused since someone revoked it",
                  "Refused since the day it was set to expire"
                ],
                "x-enum-labels": [
                  "Live",
                  "Revoked",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "description",
                "-description",
                "last_used_at",
                "-last_used_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccessTokenListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessTokenList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "live",
                "label": "Live"
              },
              {
                "value": "revoked",
                "label": "Revoked"
              },
              {
                "value": "expired",
                "label": "Expired"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "held_by",
            "label": "Held by",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "token",
            "label": "Token",
            "field": "token_prefix",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "may",
            "label": "May",
            "field": "scopes",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "read": "Read",
              "write": "Write",
              "admin": "Admin",
              "sales:write": "Sales:write",
              "sales:manage": "Sales:manage",
              "purchasing:write": "Purchasing:write",
              "purchasing:manage": "Purchasing:manage",
              "repairs:write": "Repairs:write",
              "repairs:manage": "Repairs:manage",
              "operations:write": "Operations:write",
              "operations:manage": "Operations:manage",
              "inventory:write": "Inventory:write",
              "inventory:manage": "Inventory:manage",
              "accounting:write": "Accounting:write",
              "accounting:manage": "Accounting:manage",
              "catalog:write": "Catalog:write",
              "catalog:manage": "Catalog:manage",
              "settings:write": "Settings:write",
              "settings:manage": "Settings:manage",
              "sales:release_hold": "Sales:release hold",
              "inventory:adjust": "Inventory:adjust",
              "repairs:labor": "Repairs:labor",
              "catalog:approve": "Catalog:approve",
              "accounting:approve": "Accounting:approve",
              "accounting:void": "Accounting:void",
              "data:import": "Data:import",
              "data:migrate": "Data:migrate",
              "settings:requirements": "Settings:requirements",
              "settings:checklists": "Settings:checklists",
              "settings:views": "Settings:views",
              "settings:everyones_views": "Settings:everyones views",
              "settings:everyones_dashboards": "Settings:everyones dashboards"
            }
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "live": "Live",
              "revoked": "Revoked",
              "expired": "Expired"
            }
          },
          {
            "key": "since",
            "label": "Since",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_used",
            "label": "Last used",
            "field": "last_used_at",
            "sort": "last_used_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "expires",
            "label": "Expires",
            "field": "expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_access_token",
        "summary": "Create an access token",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "access_tokens"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccessTokenField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessTokenCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The access token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessToken"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "password_confirmation_required",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/access_tokens/{uuid}/revoke": {
      "post": {
        "operationId": "revoke_access_token",
        "summary": "Revoke an access token",
        "tags": [
          "access_tokens"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccessTokenField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The access token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessToken"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revoke",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/account_settings": {
      "get": {
        "operationId": "get_account_settings",
        "summary": "Retrieve the account settings",
        "tags": [
          "account_settings"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "default_spec_inventory"
                ]
              }
            },
            "description": "Inline `default_spec_inventory` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The account settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_account_settings",
        "summary": "Update the account settings",
        "tags": [
          "account_settings"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "default_spec_inventory"
                ]
              }
            },
            "description": "Inline `default_spec_inventory` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The account settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/account_settings/apply_warehouse_defaults": {
      "post": {
        "operationId": "apply_warehouse_defaults_account_settings",
        "summary": "Add the recommended warehouse setup",
        "description": "Adds the RECV, INSP, QUAR and SHIP bins to the main warehouse, the Incoming inspection and Outbound QC checklists, and three requirements that warn on every new order, and on sales orders not yet shipped and purchase and repair orders not yet sent. One already there by name is left as it is, and so is a checklist step another active checklist runs. Offered once: refused once the setup was added or dismissed, or with no active warehouse",
        "tags": [
          "account_settings"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "default_spec_inventory"
                ]
              }
            },
            "description": "Inline `default_spec_inventory` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The account settings, with `warehouse_defaults` applied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply_warehouse_defaults",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/account_settings/dismiss_warehouse_defaults": {
      "post": {
        "operationId": "dismiss_warehouse_defaults_account_settings",
        "summary": "Dismiss the recommended warehouse setup",
        "description": "Records that the account doesn't want the recommended warehouse setup, so it is no longer offered. Refused once the setup was added or dismissed",
        "tags": [
          "account_settings"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "default_spec_inventory"
                ]
              }
            },
            "description": "Inline `default_spec_inventory` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The account settings, with `warehouse_defaults` dismissed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "dismiss_warehouse_defaults",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/account_terms": {
      "get": {
        "operationId": "get_account_terms",
        "summary": "Retrieve the account terms",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "account_terms"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AgreementVersionField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The agreement version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgreementVersion"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/account_terms/versions/{version}": {
      "get": {
        "operationId": "get_account_terms_version",
        "summary": "Retrieve an account terms version",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "account_terms"
        ],
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "description": "The version's number"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AgreementVersionField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The agreement version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgreementVersion"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/accounting_transactions": {
      "get": {
        "operationId": "list_accounting_transactions",
        "summary": "List accounting transactions",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "posted",
                  "failed",
                  "skipped"
                ],
                "description": "`pending`: Balanced and waiting to post to the books; `posted`: Posted to the connected books; `failed`: Could not post: a purpose has no account, the day's books are closed, or QuickBooks refused it; `skipped`: Set aside by hand, dated before the QuickBooks cut-over, or brought over by a migration whose system's books already hold it; it will not post",
                "x-enum-descriptions": [
                  "Balanced and waiting to post to the books",
                  "Posted to the connected books",
                  "Could not post: a purpose has no account, the day's books are closed, or QuickBooks refused it",
                  "Set aside by hand, dated before the QuickBooks cut-over, or brought over by a migration whose system's books already hold it; it will not post"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Posted",
                  "Failed",
                  "Skipped"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "activity[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt",
                  "issue",
                  "scrap",
                  "value_adjustment",
                  "quantity_adjustment",
                  "acquisition",
                  "chargeout",
                  "accrual",
                  "settlement",
                  "transfer_out",
                  "transfer_in",
                  "write_off",
                  "return_release",
                  "core_charge",
                  "lease_writedown",
                  "return_credit",
                  "labor",
                  "invoice",
                  "credit_memo",
                  "correction",
                  "bill",
                  "vendor_credit",
                  "voucher_correction"
                ],
                "description": "`receipt`: Units received into inventory at their cost; `issue`: Units leave inventory, as on a shipment, and their cost is relieved; `scrap`: Units scrapped and their remaining cost written off; `value_adjustment`: A unit's or a pool's carried cost changed; `quantity_adjustment`: Units counted into or out of stock by hand; `acquisition`: Cost bought into a cost pool; `chargeout`: A sale recovers cost out of a cost pool at its chargeout rate; `accrual`: A consignor's or investor's share of a sale, accrued as owed; `settlement`: A statement moves an accrued share to payable; `transfer_out`: Cost moved out, to a sub-pool or from a unit being torn down; `transfer_in`: Cost moved in, from a parent pool or a torn-down unit; `write_off`: Cost written off: what a pool won't recover, or a core or leased unit that never came back; `return_release`: A closed return gives uncredited units' cost back to the sale; `core_charge`: A core billed to the customer: the cost its exchange parked moves to cost of goods sold; `lease_writedown`: A lease period billed to the customer: its share of the leased unit's cost moves to Lease COGS; `return_credit`: A credit memo gives the returned units' cost back from RMA Clearing to the sale; `labor`: Hours charged to a work order's task move their cost into the work order's labor WIP; `invoice`: An invoice sent to a customer; `credit_memo`: A credit memo sent to a customer; `correction`: A correction to a sent invoice, posted as a credit memo; `bill`: A vendor's bill, approved as a voucher; `vendor_credit`: A vendor's credit against what we owe them; `voucher_correction`: A correction to an approved voucher, posted as a vendor credit",
                "x-enum-descriptions": [
                  "Units received into inventory at their cost",
                  "Units leave inventory, as on a shipment, and their cost is relieved",
                  "Units scrapped and their remaining cost written off",
                  "A unit's or a pool's carried cost changed",
                  "Units counted into or out of stock by hand",
                  "Cost bought into a cost pool",
                  "A sale recovers cost out of a cost pool at its chargeout rate",
                  "A consignor's or investor's share of a sale, accrued as owed",
                  "A statement moves an accrued share to payable",
                  "Cost moved out, to a sub-pool or from a unit being torn down",
                  "Cost moved in, from a parent pool or a torn-down unit",
                  "Cost written off: what a pool won't recover, or a core or leased unit that never came back",
                  "A closed return gives uncredited units' cost back to the sale",
                  "A core billed to the customer: the cost its exchange parked moves to cost of goods sold",
                  "A lease period billed to the customer: its share of the leased unit's cost moves to Lease COGS",
                  "A credit memo gives the returned units' cost back from RMA Clearing to the sale",
                  "Hours charged to a work order's task move their cost into the work order's labor WIP",
                  "An invoice sent to a customer",
                  "A credit memo sent to a customer",
                  "A correction to a sent invoice, posted as a credit memo",
                  "A vendor's bill, approved as a voucher",
                  "A vendor's credit against what we owe them",
                  "A correction to an approved voucher, posted as a vendor credit"
                ],
                "x-enum-labels": [
                  "Receipt",
                  "Issue",
                  "Scrap",
                  "Value adjustment",
                  "Quantity adjustment",
                  "Acquisition",
                  "Chargeout",
                  "Accrual",
                  "Settlement",
                  "Transfer out",
                  "Transfer in",
                  "Write off",
                  "Return release",
                  "Core charge",
                  "Lease writedown",
                  "Return credit",
                  "Labor",
                  "Invoice",
                  "Credit memo",
                  "Correction",
                  "Bill",
                  "Vendor credit",
                  "Voucher correction"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "journal",
                  "invoice",
                  "credit_memo",
                  "bill",
                  "vendor_credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "source_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_entry",
                  "invoice",
                  "invoice_line",
                  "voucher",
                  "customer_exchange",
                  "customer_lease",
                  "customer_return",
                  "labor_entry"
                ],
                "description": "`inventory_entry`: Posted from an entry in the inventory cost ledger; `invoice`: Posted from an invoice, a credit memo or a correction; `invoice_line`: Posted from an invoice line: the cost a billed core or a credited return moves; `voucher`: Posted from a voucher: a vendor's bill, credit or correction; `customer_exchange`: Posted from a customer exchange, writing off its core's cost; `customer_lease`: Posted from a customer lease closed with its unit still out, writing off the unit's cost; `customer_return`: Posted from a customer return closed with uncredited units; `labor_entry`: Posted from a labor entry on a work order's task, as it is charged",
                "x-enum-descriptions": [
                  "Posted from an entry in the inventory cost ledger",
                  "Posted from an invoice, a credit memo or a correction",
                  "Posted from an invoice line: the cost a billed core or a credited return moves",
                  "Posted from a voucher: a vendor's bill, credit or correction",
                  "Posted from a customer exchange, writing off its core's cost",
                  "Posted from a customer lease closed with its unit still out, writing off the unit's cost",
                  "Posted from a customer return closed with uncredited units",
                  "Posted from a labor entry on a work order's task, as it is charged"
                ],
                "x-enum-labels": [
                  "Inventory entry",
                  "Invoice",
                  "Invoice line",
                  "Voucher",
                  "Customer exchange",
                  "Customer lease",
                  "Customer return",
                  "Labor entry"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "invoice[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An invoice's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "voucher[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A voucher's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "posted_on",
                "-posted_on",
                "activity",
                "-activity",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransactionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "posted",
                "label": "Posted"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "skipped",
                "label": "Skipped"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "journal",
                "label": "Journal"
              },
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "credit_memo",
                "label": "Credit memo"
              },
              {
                "value": "bill",
                "label": "Bill"
              },
              {
                "value": "vendor_credit",
                "label": "Vendor credit"
              }
            ]
          },
          {
            "key": "activity",
            "label": "Activity",
            "kind": "options",
            "options": [
              {
                "value": "receipt",
                "label": "Receipt"
              },
              {
                "value": "issue",
                "label": "Issue"
              },
              {
                "value": "scrap",
                "label": "Scrap"
              },
              {
                "value": "value_adjustment",
                "label": "Value adjustment"
              },
              {
                "value": "quantity_adjustment",
                "label": "Quantity adjustment"
              },
              {
                "value": "acquisition",
                "label": "Acquisition"
              },
              {
                "value": "chargeout",
                "label": "Chargeout"
              },
              {
                "value": "accrual",
                "label": "Accrual"
              },
              {
                "value": "settlement",
                "label": "Settlement"
              },
              {
                "value": "transfer_out",
                "label": "Transfer out"
              },
              {
                "value": "transfer_in",
                "label": "Transfer in"
              },
              {
                "value": "write_off",
                "label": "Write off"
              },
              {
                "value": "return_release",
                "label": "Return release"
              },
              {
                "value": "core_charge",
                "label": "Core charge"
              },
              {
                "value": "lease_writedown",
                "label": "Lease writedown"
              },
              {
                "value": "return_credit",
                "label": "Return credit"
              },
              {
                "value": "labor",
                "label": "Labor"
              },
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "credit_memo",
                "label": "Credit memo"
              },
              {
                "value": "correction",
                "label": "Correction"
              },
              {
                "value": "bill",
                "label": "Bill"
              },
              {
                "value": "vendor_credit",
                "label": "Vendor credit"
              },
              {
                "value": "voucher_correction",
                "label": "Voucher correction"
              }
            ]
          },
          {
            "key": "source_type",
            "label": "Source type",
            "kind": "options",
            "options": [
              {
                "value": "inventory_entry",
                "label": "Inventory entry"
              },
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "invoice_line",
                "label": "Invoice line"
              },
              {
                "value": "voucher",
                "label": "Voucher"
              },
              {
                "value": "customer_exchange",
                "label": "Customer exchange"
              },
              {
                "value": "customer_lease",
                "label": "Customer lease"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "labor_entry",
                "label": "Labor entry"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "activity",
            "label": "Activity",
            "field": "activity",
            "sort": "activity",
            "kind": "text",
            "currency": null,
            "labels": {
              "receipt": "Receipt",
              "issue": "Issue",
              "scrap": "Scrap",
              "value_adjustment": "Value adjustment",
              "quantity_adjustment": "Quantity adjustment",
              "acquisition": "Acquisition",
              "chargeout": "Chargeout",
              "accrual": "Accrual",
              "settlement": "Settlement",
              "transfer_out": "Transfer out",
              "transfer_in": "Transfer in",
              "write_off": "Write off",
              "return_release": "Return release",
              "core_charge": "Core charge",
              "lease_writedown": "Lease writedown",
              "return_credit": "Return credit",
              "labor": "Labor",
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "correction": "Correction",
              "bill": "Bill",
              "vendor_credit": "Vendor credit",
              "voucher_correction": "Voucher correction"
            }
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "posted": "Posted",
              "failed": "Failed",
              "skipped": "Skipped"
            }
          },
          {
            "key": "posted_on",
            "label": "Date",
            "field": "posted_on",
            "sort": "posted_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "memo",
            "label": "Memo",
            "field": "memo",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "attempts",
            "label": "Attempts",
            "field": "attempts",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Transaction",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "last_attempted_at",
            "label": "Last attempted",
            "field": "last_attempted_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "posted_at",
            "label": "Posted",
            "field": "posted_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "inventory",
            "label": "Inventory",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_name",
            "label": "Inventory name",
            "field": "inventory_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reversal_of",
            "label": "Reversal of",
            "field": "reversal_of.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "journal": "Journal",
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "bill": "Bill",
              "vendor_credit": "Vendor credit"
            }
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "home_debit",
            "label": "Debit",
            "field": "home_debit_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "home_credit",
            "label": "Credit",
            "field": "home_credit_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          }
        ]
      }
    },
    "/accounting_transactions/{uuid}": {
      "get": {
        "operationId": "get_accounting_transaction",
        "summary": "Retrieve an accounting transaction",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines"
                ]
              }
            },
            "description": "Inline `lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The accounting transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransaction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/accounting_transactions/{accounting_transaction_uuid}/lines": {
      "get": {
        "operationId": "list_accounting_transaction_lines",
        "summary": "List accounting transaction lines",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "accounting_transaction_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "purpose[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_acquisition",
                  "inventory_repair",
                  "cogs_acquisition",
                  "cogs_repair",
                  "revenue",
                  "freight_revenue",
                  "non_inventory_expense",
                  "freight_expense",
                  "rounding",
                  "inventory_adjustment",
                  "opening_balance_equity",
                  "capitalized_cost",
                  "unbilled_expense",
                  "credit_card_fee_revenue",
                  "wire_transfer_fee_revenue",
                  "core_charge_revenue",
                  "sales_tax_payable",
                  "accounts_receivable",
                  "accounts_payable",
                  "vouchers_payable",
                  "voucher_variance",
                  "fx_gain_loss",
                  "customer_deposits",
                  "consignor_accrual",
                  "consignor_payable",
                  "investor_expense",
                  "investor_accrual",
                  "investor_payable",
                  "repair_expense",
                  "exchange_core_repair",
                  "exchange_core_awaiting",
                  "rma_clearing",
                  "repair_inventory_accrual",
                  "wo_wip_parts",
                  "wo_wip_labor",
                  "wo_wip_misc_charge",
                  "teardown_wip",
                  "wo_revenue",
                  "wo_revenue_labor",
                  "wo_revenue_parts",
                  "wo_cogs",
                  "wo_cogs_labor",
                  "wo_cogs_parts",
                  "wo_cogs_misc_charge",
                  "wo_labor",
                  "wo_warranty_expense",
                  "inventory_on_lease",
                  "lease_revenue",
                  "lease_cogs",
                  "lease_expense"
                ],
                "description": "`inventory_acquisition`: What a unit cost to buy, held while it is on the shelf.; `inventory_repair`: Repair spend capitalised into a unit we own.; `cogs_acquisition`: Acquisition cost relieved from inventory when a unit ships.; `cogs_repair`: Capitalised repair cost relieved from inventory when a unit ships.; `revenue`: Parts invoiced to a customer.; `freight_revenue`: Freight billed to a customer.; `non_inventory_expense`: Purchases expensed on receipt rather than held as inventory.; `freight_expense`: Freight a vendor bills us on a purchase or repair.; `rounding`: Sub-cent remainders left over when an amount is split across lines.; `inventory_adjustment`: Quantity or value corrections made outside a sale or a receipt.; `opening_balance_equity`: Inventory brought in from another system, as it stood on the day these books took it over.; `capitalized_cost`: Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.; `unbilled_expense`: Costs booked to a record that will never be billed on.; `credit_card_fee_revenue`: Card surcharges billed to a customer.; `wire_transfer_fee_revenue`: Wire-transfer fees billed to a customer.; `core_charge_revenue`: Core charges billed when a customer's core never comes back.; `sales_tax_payable`: Tax collected on an invoice and owed to the authority.; `accounts_receivable`: Owed to us on invoices we have sent.; `accounts_payable`: Owed by us on vouchers we have approved.; `vouchers_payable`: Received but not yet invoiced by the vendor.; `voucher_variance`: Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.; `fx_gain_loss`: What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.; `customer_deposits`: Money taken from a customer before anything ships.; `consignor_accrual`: The consignor's share, accrued as their inventory sells.; `consignor_payable`: The accrued share once a statement makes it payable.; `investor_expense`: An investor's share of the margin on inventory we own, expensed as it sells.; `investor_accrual`: An investor's share, accrued as the inventory they hold a claim on sells.; `investor_payable`: An investor's accrued share once a statement makes it payable.; `repair_expense`: Repair charges expensed rather than capitalised into a unit.; `exchange_core_repair`: Repair spent on a core coming back from an exchange.; `exchange_core_awaiting`: Cost parked on an exchange sale until the customer's core comes back.; `rma_clearing`: Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.; `repair_inventory_accrual`: Repair work received but not yet invoiced by the shop.; `wo_wip_parts`: Parts issued to an open work order.; `wo_wip_labor`: Labor booked to an open work order.; `wo_wip_misc_charge`: Other charges booked to an open work order.; `teardown_wip`: Cost carried while a unit is being torn down.; `wo_revenue`: Work orders invoiced to a customer.; `wo_revenue_labor`: The labor share of an invoiced work order.; `wo_revenue_parts`: The parts share of an invoiced work order.; `wo_cogs`: Work-order cost relieved from WIP at invoice.; `wo_cogs_labor`: The labor share of work-order cost.; `wo_cogs_parts`: The parts share of work-order cost.; `wo_cogs_misc_charge`: The other-charges share of work-order cost.; `wo_labor`: Labor spent on work orders that never reaches WIP.; `wo_warranty_expense`: Rework done under warranty, at our cost.; `inventory_on_lease`: Cost of our units out on lease, parked on each lease until the unit comes back.; `lease_revenue`: Lease and rental billing.; `lease_cogs`: Cost of the asset earning that lease revenue.; `lease_expense`: Rent paid to vendors for units we lease in, as their bills are vouchered.",
                "x-enum-descriptions": [
                  "What a unit cost to buy, held while it is on the shelf.",
                  "Repair spend capitalised into a unit we own.",
                  "Acquisition cost relieved from inventory when a unit ships.",
                  "Capitalised repair cost relieved from inventory when a unit ships.",
                  "Parts invoiced to a customer.",
                  "Freight billed to a customer.",
                  "Purchases expensed on receipt rather than held as inventory.",
                  "Freight a vendor bills us on a purchase or repair.",
                  "Sub-cent remainders left over when an amount is split across lines.",
                  "Quantity or value corrections made outside a sale or a receipt.",
                  "Inventory brought in from another system, as it stood on the day these books took it over.",
                  "Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.",
                  "Costs booked to a record that will never be billed on.",
                  "Card surcharges billed to a customer.",
                  "Wire-transfer fees billed to a customer.",
                  "Core charges billed when a customer's core never comes back.",
                  "Tax collected on an invoice and owed to the authority.",
                  "Owed to us on invoices we have sent.",
                  "Owed by us on vouchers we have approved.",
                  "Received but not yet invoiced by the vendor.",
                  "Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.",
                  "What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.",
                  "Money taken from a customer before anything ships.",
                  "The consignor's share, accrued as their inventory sells.",
                  "The accrued share once a statement makes it payable.",
                  "An investor's share of the margin on inventory we own, expensed as it sells.",
                  "An investor's share, accrued as the inventory they hold a claim on sells.",
                  "An investor's accrued share once a statement makes it payable.",
                  "Repair charges expensed rather than capitalised into a unit.",
                  "Repair spent on a core coming back from an exchange.",
                  "Cost parked on an exchange sale until the customer's core comes back.",
                  "Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.",
                  "Repair work received but not yet invoiced by the shop.",
                  "Parts issued to an open work order.",
                  "Labor booked to an open work order.",
                  "Other charges booked to an open work order.",
                  "Cost carried while a unit is being torn down.",
                  "Work orders invoiced to a customer.",
                  "The labor share of an invoiced work order.",
                  "The parts share of an invoiced work order.",
                  "Work-order cost relieved from WIP at invoice.",
                  "The labor share of work-order cost.",
                  "The parts share of work-order cost.",
                  "The other-charges share of work-order cost.",
                  "Labor spent on work orders that never reaches WIP.",
                  "Rework done under warranty, at our cost.",
                  "Cost of our units out on lease, parked on each lease until the unit comes back.",
                  "Lease and rental billing.",
                  "Cost of the asset earning that lease revenue.",
                  "Rent paid to vendors for units we lease in, as their bills are vouchered."
                ],
                "x-enum-labels": [
                  "Inventory – Acquisition",
                  "Inventory – Repair",
                  "COGS – Acquisition",
                  "COGS – Repair",
                  "Sales Revenue",
                  "Freight Revenue",
                  "Non-Inventory Expense",
                  "Freight Expense",
                  "Rounding Allowance",
                  "Inventory Adjustment",
                  "Opening Balance Equity",
                  "Capitalized Cost",
                  "Unbilled Expense",
                  "Credit Card Fee Revenue",
                  "Wire Transfer Fee Revenue",
                  "Core Charge Revenue",
                  "Sales Tax Payable",
                  "Accounts Receivable",
                  "Accounts Payable",
                  "Vouchers Payable",
                  "Voucher Variance",
                  "Exchange Gain/Loss",
                  "Customer Deposits",
                  "Consignor Accrual",
                  "Consignor Payable",
                  "Investor Expense",
                  "Investor Accrual",
                  "Investor Payable",
                  "Repair Expense",
                  "Exchange Core Repair",
                  "Exchange Cores Awaiting Return",
                  "RMA Clearing",
                  "Repair Inventory Accrual",
                  "Work Order WIP – Parts",
                  "Work Order WIP – Labor",
                  "Work Order WIP – Misc Charges",
                  "Teardown WIP",
                  "Work Order Revenue",
                  "Work Order Revenue – Labor",
                  "Work Order Revenue – Parts",
                  "Work Order COGS",
                  "Work Order COGS – Labor",
                  "Work Order COGS – Parts",
                  "Work Order COGS – Misc Charges",
                  "Work Order Labor",
                  "Work Order Warranty Expense",
                  "Inventory on Lease",
                  "Lease Revenue",
                  "Lease COGS",
                  "Lease Expense"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "ledger_account[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A ledger account's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "ledger_account_code",
                "-ledger_account_code",
                "home_debit_cents",
                "-home_debit_cents",
                "home_credit_cents",
                "-home_credit_cents",
                "document_debit_cents",
                "-document_debit_cents",
                "document_credit_cents",
                "-document_credit_cents",
                "description",
                "-description",
                "purpose",
                "-purpose",
                "inventory_code",
                "-inventory_code",
                "entity_name",
                "-entity_name",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `purpose` sorts in its own order, accounts_payable, accounts_receivable, cogs_acquisition, cogs_repair, capitalized_cost, consignor_accrual, consignor_payable, core_charge_revenue, credit_card_fee_revenue, customer_deposits, exchange_core_repair, exchange_core_awaiting, fx_gain_loss, freight_expense, freight_revenue, inventory_adjustment, inventory_on_lease, inventory_acquisition, inventory_repair, investor_accrual, investor_expense, investor_payable, lease_cogs, lease_expense, lease_revenue, non_inventory_expense, opening_balance_equity, rma_clearing, repair_expense, repair_inventory_accrual, rounding, revenue, sales_tax_payable, teardown_wip, unbilled_expense, voucher_variance, vouchers_payable, wire_transfer_fee_revenue, wo_cogs, wo_cogs_labor, wo_cogs_misc_charge, wo_cogs_parts, wo_labor, wo_revenue, wo_revenue_labor, wo_revenue_parts, wo_wip_labor, wo_wip_misc_charge, wo_wip_parts, wo_warranty_expense, not the alphabet. Rows equal under the sort follow by `position`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransactionLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "purpose",
            "label": "Purpose",
            "kind": "options",
            "options": [
              {
                "value": "inventory_acquisition",
                "label": "Inventory – Acquisition"
              },
              {
                "value": "inventory_repair",
                "label": "Inventory – Repair"
              },
              {
                "value": "cogs_acquisition",
                "label": "COGS – Acquisition"
              },
              {
                "value": "cogs_repair",
                "label": "COGS – Repair"
              },
              {
                "value": "revenue",
                "label": "Sales Revenue"
              },
              {
                "value": "freight_revenue",
                "label": "Freight Revenue"
              },
              {
                "value": "non_inventory_expense",
                "label": "Non-Inventory Expense"
              },
              {
                "value": "freight_expense",
                "label": "Freight Expense"
              },
              {
                "value": "rounding",
                "label": "Rounding Allowance"
              },
              {
                "value": "inventory_adjustment",
                "label": "Inventory Adjustment"
              },
              {
                "value": "opening_balance_equity",
                "label": "Opening Balance Equity"
              },
              {
                "value": "capitalized_cost",
                "label": "Capitalized Cost"
              },
              {
                "value": "unbilled_expense",
                "label": "Unbilled Expense"
              },
              {
                "value": "credit_card_fee_revenue",
                "label": "Credit Card Fee Revenue"
              },
              {
                "value": "wire_transfer_fee_revenue",
                "label": "Wire Transfer Fee Revenue"
              },
              {
                "value": "core_charge_revenue",
                "label": "Core Charge Revenue"
              },
              {
                "value": "sales_tax_payable",
                "label": "Sales Tax Payable"
              },
              {
                "value": "accounts_receivable",
                "label": "Accounts Receivable"
              },
              {
                "value": "accounts_payable",
                "label": "Accounts Payable"
              },
              {
                "value": "vouchers_payable",
                "label": "Vouchers Payable"
              },
              {
                "value": "voucher_variance",
                "label": "Voucher Variance"
              },
              {
                "value": "fx_gain_loss",
                "label": "Exchange Gain/Loss"
              },
              {
                "value": "customer_deposits",
                "label": "Customer Deposits"
              },
              {
                "value": "consignor_accrual",
                "label": "Consignor Accrual"
              },
              {
                "value": "consignor_payable",
                "label": "Consignor Payable"
              },
              {
                "value": "investor_expense",
                "label": "Investor Expense"
              },
              {
                "value": "investor_accrual",
                "label": "Investor Accrual"
              },
              {
                "value": "investor_payable",
                "label": "Investor Payable"
              },
              {
                "value": "repair_expense",
                "label": "Repair Expense"
              },
              {
                "value": "exchange_core_repair",
                "label": "Exchange Core Repair"
              },
              {
                "value": "exchange_core_awaiting",
                "label": "Exchange Cores Awaiting Return"
              },
              {
                "value": "rma_clearing",
                "label": "RMA Clearing"
              },
              {
                "value": "repair_inventory_accrual",
                "label": "Repair Inventory Accrual"
              },
              {
                "value": "wo_wip_parts",
                "label": "Work Order WIP – Parts"
              },
              {
                "value": "wo_wip_labor",
                "label": "Work Order WIP – Labor"
              },
              {
                "value": "wo_wip_misc_charge",
                "label": "Work Order WIP – Misc Charges"
              },
              {
                "value": "teardown_wip",
                "label": "Teardown WIP"
              },
              {
                "value": "wo_revenue",
                "label": "Work Order Revenue"
              },
              {
                "value": "wo_revenue_labor",
                "label": "Work Order Revenue – Labor"
              },
              {
                "value": "wo_revenue_parts",
                "label": "Work Order Revenue – Parts"
              },
              {
                "value": "wo_cogs",
                "label": "Work Order COGS"
              },
              {
                "value": "wo_cogs_labor",
                "label": "Work Order COGS – Labor"
              },
              {
                "value": "wo_cogs_parts",
                "label": "Work Order COGS – Parts"
              },
              {
                "value": "wo_cogs_misc_charge",
                "label": "Work Order COGS – Misc Charges"
              },
              {
                "value": "wo_labor",
                "label": "Work Order Labor"
              },
              {
                "value": "wo_warranty_expense",
                "label": "Work Order Warranty Expense"
              },
              {
                "value": "inventory_on_lease",
                "label": "Inventory on Lease"
              },
              {
                "value": "lease_revenue",
                "label": "Lease Revenue"
              },
              {
                "value": "lease_cogs",
                "label": "Lease COGS"
              },
              {
                "value": "lease_expense",
                "label": "Lease Expense"
              }
            ]
          },
          {
            "key": "ledger_account",
            "label": "Account",
            "kind": "options",
            "references": [
              "ledger_account"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "purpose",
            "label": "Purpose",
            "field": "purpose_label",
            "sort": "purpose",
            "kind": "text",
            "currency": null
          },
          {
            "key": "ledger_account",
            "label": "Account",
            "field": "ledger_account_code",
            "sort": "ledger_account_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "home_debit",
            "label": "Debit",
            "field": "home_debit_cents",
            "sort": "home_debit_cents",
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "home_credit",
            "label": "Credit",
            "field": "home_credit_cents",
            "sort": "home_credit_cents",
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "document_debit",
            "label": "Document debit",
            "field": "document_debit_cents",
            "sort": "document_debit_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "document_credit",
            "label": "Document credit",
            "field": "document_credit_cents",
            "sort": "document_credit_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": "inventory_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "entity",
            "label": "Entity",
            "field": "entity.name",
            "sort": "entity_name",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/accounting_transactions/{accounting_transaction_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_accounting_transaction_line",
        "summary": "Retrieve an accounting transaction line",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "accounting_transaction_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The accounting transaction line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransactionLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/accounting_transactions/{uuid}/repost": {
      "post": {
        "operationId": "repost_accounting_transaction",
        "summary": "Repost an accounting transaction",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccountingTransactionRepost"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The accounting transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransaction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "repost",
        "x-risk": "reversible",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/accounting_transactions/{uuid}/skip": {
      "post": {
        "operationId": "skip_accounting_transaction",
        "summary": "Skip an accounting transaction",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The accounting transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransaction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "skip",
        "x-risk": "reversible",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/accounting_transactions/{uuid}/unskip": {
      "post": {
        "operationId": "unskip_accounting_transaction",
        "summary": "Unskip an accounting transaction",
        "tags": [
          "accounting_transactions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccountingTransactionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The accounting transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountingTransaction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unskip",
        "x-risk": "reversible",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/agreement_acceptances": {
      "post": {
        "operationId": "create_agreement_acceptance",
        "summary": "Create an agreement acceptance",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "agreement_acceptances"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AgreementAnswerField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgreementAcceptanceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The agreement answer it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgreementAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "validation_failed",
          "sign_in_refused",
          "too_many_requests"
        ]
      }
    },
    "/allocations": {
      "get": {
        "operationId": "list_allocations",
        "summary": "List allocations",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "live",
                  "staged",
                  "consumed",
                  "returned"
                ],
                "description": "`live`: Reserved for the demand and not yet on a release; `staged`: Reserved and placed on a release that has not shipped; `consumed`: Shipped or issued; the reservation is used up; `returned`: Put back into inventory after it shipped; the release keeps what went out",
                "x-enum-descriptions": [
                  "Reserved for the demand and not yet on a release",
                  "Reserved and placed on a release that has not shipped",
                  "Shipped or issued; the reservation is used up",
                  "Put back into inventory after it shipped; the release keeps what went out"
                ],
                "x-enum-labels": [
                  "Allocated",
                  "Staged",
                  "Shipped",
                  "Returned to inventory"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "awaiting_release",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units on hand, reserved on an open sales order, that no release carries yet"
          },
          {
            "name": "supply_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_line",
                  "purchase_order_line",
                  "repair_order_line"
                ],
                "x-enum-labels": [
                  "Inventory",
                  "On order",
                  "At repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "demand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sales order line, a customer repair line, a repair order line, a vendor exchange, a vendor lease, a vendor return line, an issued part, a work order or a work order material"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "demand_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sales_order_line",
                  "customer_repair_line",
                  "repair_order_line",
                  "vendor_exchange",
                  "vendor_lease",
                  "vendor_return_line",
                  "issued_part",
                  "work_order",
                  "work_order_material"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "supply[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of an inventory line, a purchase order line or a repair order line"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "inventory_line",
                      "purchase_order_line",
                      "repair_order_line"
                    ],
                    "description": "Every row of that family"
                  }
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sales order, a purchase order or a repair order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "supply_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a purchase order or a repair order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "unit_cost_cents",
                "-unit_cost_cents",
                "priority",
                "-priority",
                "line_position",
                "-line_position",
                "purchase_order_line_position",
                "-purchase_order_line_position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` Its sales order's priority, then its line's promise date, the earliest first. `line_position` sorts only beside a single sales order or repair order's `order[]`. `purchase_order_line_position` sorts only beside a single purchase order's `supply_order[]`. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AllocationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AllocationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "live",
                "label": "Allocated"
              },
              {
                "value": "staged",
                "label": "Staged"
              },
              {
                "value": "consumed",
                "label": "Shipped"
              },
              {
                "value": "returned",
                "label": "Returned to inventory"
              }
            ]
          },
          {
            "key": "supply_type",
            "label": "Supply",
            "kind": "options",
            "options": [
              {
                "value": "inventory_line",
                "label": "Inventory"
              },
              {
                "value": "purchase_order_line",
                "label": "On order"
              },
              {
                "value": "repair_order_line",
                "label": "At repair"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": "unit_cost_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "created_at",
            "label": "Allocated",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "live": "Allocated",
              "staged": "Staged",
              "consumed": "Shipped",
              "returned": "Returned to inventory"
            }
          },
          {
            "key": "demand_part_number",
            "label": "Demand part number",
            "field": "ordered_part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "supply",
            "label": "Supply",
            "field": "supply",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "release",
            "label": "Release",
            "field": "release.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "consumed_at",
            "label": "Shipped",
            "field": "consumed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "trace",
            "label": "Trace",
            "field": "trace_type",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tag_types",
            "label": "Tag types",
            "field": "tag_types",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "faa_8130_3": "FAA 8130-3",
              "easa_form_1": "EASA Form 1",
              "uk_caa_form_1": "UK CAA Form 1",
              "tcca_form_one": "TCCA Form One",
              "casa_form_1": "CASA Form 1",
              "caac_release": "CAAC Form AAC",
              "coc": "Certificate of Conformance",
              "other": "Other"
            }
          },
          {
            "key": "tag_number",
            "label": "Tag number",
            "field": "tag_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_by",
            "label": "Tagged by",
            "field": "tagged_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "certificate_number",
            "label": "Certificate number",
            "field": "certificate_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_on",
            "label": "Tagged on",
            "field": "tagged_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "line_position",
            "label": "Line",
            "field": "line_position",
            "sort": "line_position",
            "kind": "number",
            "currency": null,
            "beside": [
              "order"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "demand_order",
            "label": "Order",
            "field": "demand_order",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "counterparty.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_po_number",
            "label": "Customer PO",
            "field": "customer_po_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Allocated by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "order_line_position",
            "label": "Supply line",
            "field": "order_line_position",
            "sort": "purchase_order_line_position",
            "kind": "number",
            "currency": null,
            "beside": [
              "supply_order"
            ]
          },
          {
            "key": "issued_unit_cost",
            "label": "Issued cost",
            "field": "issued_unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          }
        ]
      },
      "post": {
        "operationId": "create_allocation",
        "summary": "Create an allocation",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AllocationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AllocationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The allocation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Allocation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/allocations/{uuid}": {
      "get": {
        "operationId": "get_allocation",
        "summary": "Retrieve an allocation",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AllocationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The allocation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Allocation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_allocation",
        "summary": "Delete an allocation",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/allocations/{uuid}/move": {
      "post": {
        "operationId": "move_allocation",
        "summary": "Move an allocation",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AllocationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AllocationMove"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The allocation it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Allocation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The allocation, moved whole",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Allocation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "move",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/allocations/{uuid}/pick": {
      "post": {
        "operationId": "pick_allocation",
        "summary": "Pick an allocation",
        "tags": [
          "allocations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AllocationPick"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The release it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "pick",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/alternates": {
      "get": {
        "operationId": "list_alternates",
        "summary": "List alternates",
        "tags": [
          "alternates"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "alternate",
                  "supersession"
                ],
                "description": "`alternate`: Another part number for a part that does the same job; `supersession`: The part has a newer number: the alternate part supersedes it",
                "x-enum-descriptions": [
                  "Another part number for a part that does the same job",
                  "The part has a newer number: the alternate part supersedes it"
                ],
                "x-enum-labels": [
                  "Alternate",
                  "Supersession"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "interchangeability[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "two_way",
                  "one_way",
                  "none"
                ],
                "description": "`two_way`: Either part can be used in place of the other; `one_way`: The newer or replacement part can be used in place of the other, never the reverse; `none`: Neither part is a substitute for the other",
                "x-enum-descriptions": [
                  "Either part can be used in place of the other",
                  "The newer or replacement part can be used in place of the other, never the reverse",
                  "Neither part is a substitute for the other"
                ],
                "x-enum-labels": [
                  "Both ways",
                  "One way",
                  "Not interchangeable"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "kind",
                "-kind",
                "interchangeability",
                "-interchangeability",
                "authority",
                "-authority",
                "part_number",
                "-part_number",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `part_number` sorts only beside a single `part[]`. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AlternateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlternateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Relationship",
            "kind": "options",
            "options": [
              {
                "value": "alternate",
                "label": "Alternate"
              },
              {
                "value": "supersession",
                "label": "Supersession"
              }
            ]
          },
          {
            "key": "interchangeability",
            "label": "Interchangeable",
            "kind": "options",
            "options": [
              {
                "value": "two_way",
                "label": "Both ways"
              },
              {
                "value": "one_way",
                "label": "One way"
              },
              {
                "value": "none",
                "label": "Not interchangeable"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "kind",
            "label": "Relationship",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "alternate": "Alternate",
              "supersession": "Supersession"
            }
          },
          {
            "key": "interchangeability",
            "label": "Interchangeable",
            "field": "interchangeability",
            "sort": "interchangeability",
            "kind": "text",
            "currency": null,
            "labels": {
              "two_way": "Both ways",
              "one_way": "One way",
              "none": "Not interchangeable"
            }
          },
          {
            "key": "authority",
            "label": "Authority",
            "field": "authority",
            "sort": "authority",
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "alternate_part.part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null,
            "beside": [
              "part"
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_alternate",
        "summary": "Create an alternate",
        "tags": [
          "alternates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AlternateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlternateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The alternate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Alternate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/alternates/{uuid}": {
      "get": {
        "operationId": "get_alternate",
        "summary": "Retrieve an alternate",
        "tags": [
          "alternates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AlternateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The alternate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Alternate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_alternate",
        "summary": "Delete an alternate",
        "tags": [
          "alternates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/applicabilities": {
      "get": {
        "operationId": "list_applicabilities",
        "summary": "List applicabilities",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "category",
                "-category",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApplicabilityList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "category",
            "label": "Category",
            "field": "category",
            "sort": "category",
            "kind": "text",
            "currency": null,
            "labels": {
              "airframe": "Airframe",
              "engine": "Engine"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_applicability",
        "summary": "Create an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicabilityCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The applicability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Applicability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/applicabilities/{uuid}": {
      "get": {
        "operationId": "get_applicability",
        "summary": "Retrieve an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The applicability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Applicability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_applicability",
        "summary": "Update an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicabilityUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The applicability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Applicability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_applicability",
        "summary": "Delete an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/applicabilities/{uuid}/activate": {
      "post": {
        "operationId": "activate_applicability",
        "summary": "Activate an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The applicability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Applicability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/applicabilities/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_applicability",
        "summary": "Deactivate an applicability",
        "tags": [
          "applicabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ApplicabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The applicability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Applicability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ata_chapters": {
      "get": {
        "operationId": "list_ata_chapters",
        "summary": "List ATA chapters",
        "tags": [
          "ata_chapters"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AtaChapterListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtaChapterList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/ata_zones": {
      "get": {
        "operationId": "list_ata_zones",
        "summary": "List ATA zones",
        "tags": [
          "ata_zones"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AtaZoneListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AtaZoneList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/attachments": {
      "get": {
        "operationId": "list_attachments",
        "summary": "List attachments",
        "tags": [
          "attachments"
        ],
        "parameters": [
          {
            "name": "category[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "upload[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An upload's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A record's uuid"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "within[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "A record's files and its lines' by its uuid: a receipt's lines, and on a purchase or repair order the lines of its receipts not in the trash, those received off its lot's or teardown's manifest included. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "name",
                "-name",
                "description",
                "-description",
                "generated",
                "-generated",
                "byte_size",
                "-byte_size",
                "content_type",
                "-content_type",
                "file_filename",
                "-file_filename",
                "version",
                "-version",
                "attachments_count",
                "-attachments_count",
                "category",
                "-category",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `name` sorts only beside a single `record[]` or `within[]`. `description` sorts only beside a single `record[]` or `within[]`. `generated` sorts only beside a single `record[]` or `within[]`. `byte_size` sorts only beside a single `record[]` or `within[]`. `content_type` sorts only beside a single `record[]` or `within[]`. `file_filename` sorts only beside a single `record[]` or `within[]`. `version` sorts only beside a single `record[]` or `within[]`. `attachments_count` sorts only beside a single `record[]` or `within[]`. `category` sorts only beside a single `record[]` or `within[]`. `creator` sorts only beside a single `record[]` or `within[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "upload"
                ]
              }
            },
            "description": "Inline `upload` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AttachmentListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count",
                  "avsight_file_count",
                  "corepilot_legacy_file_count"
                ]
              }
            },
            "description": "Add `total_count`, `avsight_file_count`, and `corepilot_legacy_file_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttachmentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "category",
            "label": "Category",
            "kind": "options",
            "references": [
              "upload_category"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "upload.name",
            "sort": "name",
            "kind": "text",
            "currency": null,
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "description",
            "label": "Description",
            "field": "upload.description",
            "sort": "description",
            "kind": "text",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "generated",
            "label": "Generated",
            "field": "upload.generated",
            "sort": "generated",
            "kind": "boolean",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "byte_size",
            "label": "Size",
            "field": "upload.byte_size",
            "sort": "byte_size",
            "kind": "number",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "attachments",
            "label": "Used on",
            "field": "upload.attachments_count",
            "sort": "attachments_count",
            "kind": "number",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "content_type",
            "label": "Content type",
            "field": "upload.content_type",
            "sort": "content_type",
            "kind": "text",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "version",
            "label": "Version",
            "field": "upload.version",
            "sort": "version",
            "kind": "number",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "category",
            "label": "Category",
            "field": "upload.category.name",
            "sort": "category",
            "kind": "text",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "creator",
            "label": "Uploaded by",
            "field": "upload.creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "file_filename",
            "label": "Filename",
            "field": "upload.file_filename",
            "sort": "file_filename",
            "kind": "text",
            "currency": null,
            "expand": "upload",
            "beside": [
              "record",
              "within"
            ]
          },
          {
            "key": "created_at",
            "label": "Attached",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "record",
            "label": "Attached to",
            "field": "record",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_attachment",
        "summary": "Create an attachment",
        "tags": [
          "attachments"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "upload"
                ]
              }
            },
            "description": "Inline `upload` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AttachmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachmentCreate"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AttachmentCreateMultipart"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The attachment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The attachment already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/attachments/{uuid}": {
      "get": {
        "operationId": "get_attachment",
        "summary": "Retrieve an attachment",
        "tags": [
          "attachments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "upload"
                ]
              }
            },
            "description": "Inline `upload` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AttachmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The attachment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Attachment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_attachment",
        "summary": "Delete an attachment",
        "tags": [
          "attachments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/autoquote_settings": {
      "get": {
        "operationId": "list_autoquote_settings",
        "summary": "List autoquote settings",
        "tags": [
          "autoquote_settings"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteSettingsListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteSettingsList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/autoquote_settings/{organization_uuid}": {
      "get": {
        "operationId": "get_autoquote_settings",
        "summary": "Retrieve an autoquote settings",
        "tags": [
          "autoquote_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The autoquote settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_autoquote_settings",
        "summary": "Update an autoquote settings",
        "tags": [
          "autoquote_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutoquoteSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The autoquote settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/billing_addresses": {
      "get": {
        "operationId": "list_billing_addresses",
        "summary": "List billing addresses",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list. Only beside a single `organization[]`, since it reads each address rather than an index"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "label",
                "-label",
                "city",
                "-city",
                "country_code",
                "-country_code",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "primary",
                "-primary",
                "updated_at",
                "-updated_at"
              ],
              "default": "label"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `label`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddressList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Label",
            "field": "label",
            "sort": "label",
            "kind": "text",
            "currency": null
          },
          {
            "key": "attn",
            "label": "Attn",
            "field": "attn",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Address",
            "field": "lines",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "city",
            "label": "City",
            "field": "city",
            "sort": "city",
            "kind": "text",
            "currency": null
          },
          {
            "key": "country",
            "label": "Country",
            "field": "country_name",
            "sort": "country_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "primary",
            "label": "Primary",
            "field": "primary",
            "sort": "primary",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_billing_address",
        "summary": "Create a billing address",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingAddressCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/billing_addresses/{uuid}": {
      "get": {
        "operationId": "get_billing_address",
        "summary": "Retrieve a billing address",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_billing_address",
        "summary": "Update a billing address",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingAddressUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/billing_addresses/{uuid}/activate": {
      "post": {
        "operationId": "activate_billing_address",
        "summary": "Activate a billing address",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/billing_addresses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_billing_address",
        "summary": "Deactivate a billing address",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/billing_addresses/{uuid}/make_primary": {
      "post": {
        "operationId": "make_primary_billing_address",
        "summary": "Make a billing address the primary one",
        "tags": [
          "billing_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The billing address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "make_primary",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/bins": {
      "get": {
        "operationId": "list_bins",
        "summary": "List bins",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "facility[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A facility's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "held_from_sale",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only bins held back from sale"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "name",
                "-name",
                "description",
                "-description",
                "held_from_sale",
                "-held_from_sale",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BinList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "held_from_sale",
            "label": "Held back from sale",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "held_from_sale",
            "label": "Held back from sale",
            "field": "held_from_sale",
            "sort": "held_from_sale",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "facility_label",
            "label": "Facility label",
            "field": "facility.label",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_bin",
        "summary": "Create a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BinCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The bin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/bins/{uuid}": {
      "get": {
        "operationId": "get_bin",
        "summary": "Retrieve a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The bin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_bin",
        "summary": "Update a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BinUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_bin",
        "summary": "Delete a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/bins/{uuid}/activate": {
      "post": {
        "operationId": "activate_bin",
        "summary": "Activate a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The bin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/bins/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_bin",
        "summary": "Deactivate a bin",
        "tags": [
          "bins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BinField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The bin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/bots": {
      "get": {
        "operationId": "list_bots",
        "summary": "List bots",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "away_today",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the people away at some time today, the business's day, by an away event they attend or a closure of their organization; `false` everyone else"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BotList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "added",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_bot",
        "summary": "Create a bot",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BotCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The bot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bot"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/bots/{uuid}": {
      "get": {
        "operationId": "get_bot",
        "summary": "Retrieve a bot",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The bot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bot"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_bot",
        "summary": "Update a bot",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BotUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The bot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bot"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/bots/{bot_uuid}/access_tokens": {
      "get": {
        "operationId": "list_bot_access_tokens",
        "summary": "List access tokens",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "bot_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "live",
                  "revoked",
                  "expired"
                ],
                "description": "`live`: Works until it is revoked or expires; `revoked`: Refused since someone revoked it; `expired`: Refused since the day it was set to expire",
                "x-enum-descriptions": [
                  "Works until it is revoked or expires",
                  "Refused since someone revoked it",
                  "Refused since the day it was set to expire"
                ],
                "x-enum-labels": [
                  "Live",
                  "Revoked",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "description",
                "-description",
                "last_used_at",
                "-last_used_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccessTokenListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessTokenList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "live",
                "label": "Live"
              },
              {
                "value": "revoked",
                "label": "Revoked"
              },
              {
                "value": "expired",
                "label": "Expired"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "held_by",
            "label": "Held by",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "token",
            "label": "Token",
            "field": "token_prefix",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "may",
            "label": "May",
            "field": "scopes",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "read": "Read",
              "write": "Write",
              "admin": "Admin",
              "sales:write": "Sales:write",
              "sales:manage": "Sales:manage",
              "purchasing:write": "Purchasing:write",
              "purchasing:manage": "Purchasing:manage",
              "repairs:write": "Repairs:write",
              "repairs:manage": "Repairs:manage",
              "operations:write": "Operations:write",
              "operations:manage": "Operations:manage",
              "inventory:write": "Inventory:write",
              "inventory:manage": "Inventory:manage",
              "accounting:write": "Accounting:write",
              "accounting:manage": "Accounting:manage",
              "catalog:write": "Catalog:write",
              "catalog:manage": "Catalog:manage",
              "settings:write": "Settings:write",
              "settings:manage": "Settings:manage",
              "sales:release_hold": "Sales:release hold",
              "inventory:adjust": "Inventory:adjust",
              "repairs:labor": "Repairs:labor",
              "catalog:approve": "Catalog:approve",
              "accounting:approve": "Accounting:approve",
              "accounting:void": "Accounting:void",
              "data:import": "Data:import",
              "data:migrate": "Data:migrate",
              "settings:requirements": "Settings:requirements",
              "settings:checklists": "Settings:checklists",
              "settings:views": "Settings:views",
              "settings:everyones_views": "Settings:everyones views",
              "settings:everyones_dashboards": "Settings:everyones dashboards"
            }
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "live": "Live",
              "revoked": "Revoked",
              "expired": "Expired"
            }
          },
          {
            "key": "since",
            "label": "Since",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_used",
            "label": "Last used",
            "field": "last_used_at",
            "sort": "last_used_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "expires",
            "label": "Expires",
            "field": "expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_bot_access_token",
        "summary": "Create an access token",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "bot_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AccessTokenField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AccessTokenCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The access token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccessToken"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "password_confirmation_required",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/bots/{uuid}/activate": {
      "post": {
        "operationId": "activate_bot",
        "summary": "Activate a bot",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The bot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bot"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/bots/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_bot",
        "summary": "Deactivate a bot",
        "tags": [
          "bots"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BotField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The bot",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Bot"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_events": {
      "get": {
        "operationId": "list_calendar_events",
        "summary": "List calendar events",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "calendar[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A calendar's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "external_system[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An external system's uuid"
              }
            },
            "description": "Events that came over from these systems, each keyed there",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEventList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_calendar_event",
        "summary": "Create a calendar event",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The calendar event",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_events/{uuid}": {
      "get": {
        "operationId": "get_calendar_event",
        "summary": "Retrieve a calendar event",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The calendar event",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_calendar_event",
        "summary": "Update a calendar event",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The calendar event",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_calendar_event",
        "summary": "Delete a calendar event",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_events/{uuid}/cancel_occurrence": {
      "post": {
        "operationId": "cancel_occurrence_calendar_event",
        "summary": "Cancel one occurrence of a repeating event",
        "description": "Takes the occurrence `occurrence` names off the calendar, leaving the rest of the series as it is. It stays cancelled through any later change to the series, and is narrated `occurrence_cancelled` on the series",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventCancelOccurrence"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The series",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel_occurrence",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_events/{uuid}/revise_following": {
      "post": {
        "operationId": "revise_following_calendar_event",
        "summary": "Change this and every later occurrence",
        "description": "Ends the series the day before the occurrence `occurrence` names and starts a new one there, changed as asked. A later occurrence changed alone takes the new series' facts; one cancelled stays cancelled",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventReviseFollowing"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new series, from this occurrence on",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The series itself, changed whole, when the occurrence named is its first",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_following",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_events/{uuid}/revise_occurrence": {
      "post": {
        "operationId": "revise_occurrence_calendar_event",
        "summary": "Change one occurrence of a repeating event",
        "description": "Changes the occurrence `occurrence` names alone, leaving the rest of the series as it is. A later change to the whole series' title, notes and the like reaches it too; one to its times or rule keeps it as changed here while the rule still gives it",
        "tags": [
          "calendar_events"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarEventField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarEventReviseOccurrence"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The series",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarEvent"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_occurrence",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendar_items": {
      "get": {
        "operationId": "list_calendar_items",
        "summary": "List calendar items",
        "tags": [
          "calendar_items"
        ],
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date",
              "minLength": 1
            },
            "description": "The range's first day, in the business's time zone: for events, 2 years ahead at most",
            "required": true
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date",
              "minLength": 1
            },
            "description": "The range's last day, included: 92 days at most from `from`",
            "required": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "event",
                  "record_date"
                ],
                "description": "`event`: An event: time someone is away, busy or free; `record_date`: A day a record still open falls due: a promise, a quote's valid-until, a core or a unit due back, a payment due or an expiry",
                "x-enum-descriptions": [
                  "An event: time someone is away, busy or free",
                  "A day a record still open falls due: a promise, a quote's valid-until, a core or a unit due back, a payment due or an expiry"
                ],
                "x-enum-labels": [
                  "Events",
                  "Record dates"
                ]
              }
            },
            "description": "Only these kinds of item",
            "explode": true
          },
          {
            "name": "attendee[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a membership"
              }
            },
            "description": "Time these seats are taken: the events they attend, and the closures of their organization",
            "explode": true
          },
          {
            "name": "team[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A team's uuid"
              }
            },
            "description": "Time anyone on these teams is taken, as `attendee[]` reads it",
            "explode": true
          },
          {
            "name": "calendar[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A calendar's uuid"
              }
            },
            "description": "Events on these calendars; a private one only for its organizer and attendees, the only ones who see its calendar",
            "explode": true
          },
          {
            "name": "external_system[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An external system's uuid"
              }
            },
            "description": "Events that came over from these systems, such as AvSight, each keyed there",
            "explode": true
          },
          {
            "name": "show_as[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "away",
                  "busy",
                  "free"
                ],
                "description": "`away`: Out: a vacation or a trip; round robin passes them by; `busy`: In, but taken, such as at a visit or an audit; `free`: Noted, taking no one's time",
                "x-enum-descriptions": [
                  "Out: a vacation or a trip; round robin passes them by",
                  "In, but taken, such as at a visit or an audit",
                  "Noted, taking no one's time"
                ],
                "x-enum-labels": [
                  "Away",
                  "Busy",
                  "Free"
                ]
              }
            },
            "description": "Events showing so, a closures event as `away`: `show_as[]=away` is who is out",
            "explode": true
          },
          {
            "name": "source[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "promise",
                  "valid_until",
                  "core_due",
                  "due_back",
                  "payment_due",
                  "expiry"
                ],
                "description": "`promise`: The day promised: to the customer on a sales order's lines and a work order, by the vendor on a purchase order's lines and a repair order; `valid_until`: The last day a customer quote, or a vendor's quote on an RFQ, holds its prices; `core_due`: The day an exchange's core is due back: from the customer, or to the vendor; `due_back`: The day a leased unit is due back: from the customer, or to the vendor; `payment_due`: The day an invoice's payment is due from the customer, or a voucher's to the vendor; `expiry`: The day a tool's calibration falls due, or an active vendor certificate expires",
                "x-enum-descriptions": [
                  "The day promised: to the customer on a sales order's lines and a work order, by the vendor on a purchase order's lines and a repair order",
                  "The last day a customer quote, or a vendor's quote on an RFQ, holds its prices",
                  "The day an exchange's core is due back: from the customer, or to the vendor",
                  "The day a leased unit is due back: from the customer, or to the vendor",
                  "The day an invoice's payment is due from the customer, or a voucher's to the vendor",
                  "The day a tool's calibration falls due, or an active vendor certificate expires"
                ],
                "x-enum-labels": [
                  "Promises",
                  "Valid until",
                  "Core due",
                  "Due back",
                  "Payment due",
                  "Expiries"
                ]
              }
            },
            "description": "Record dates from these sources",
            "explode": true
          },
          {
            "name": "owner[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a membership"
              }
            },
            "description": "Record dates on these seats' records, each seat's as My work counts its own",
            "explode": true
          },
          {
            "name": "mine",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the events you organized or attend, your organization's closures, and the record dates on your records as My work counts them"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "starts",
                "-starts"
              ],
              "default": "starts"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Items starting together keep one order, the same either way. An all-day item starts at the beginning of its first day."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarItemListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/calendars": {
      "get": {
        "operationId": "list_calendars",
        "summary": "List calendars",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "shared",
                  "closures"
                ],
                "description": "`shared`: Events the whole business sees, such as trade shows or audits; `closures`: Days the business is closed: on its events, everyone in its organization counts as away, or everyone when it has no organization",
                "x-enum-descriptions": [
                  "Events the whole business sees, such as trade shows or audits",
                  "Days the business is closed: on its events, everyone in its organization counts as away, or everyone when it has no organization"
                ],
                "x-enum-labels": [
                  "Shared",
                  "Closures"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalendarList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "shared",
                "label": "Shared"
              },
              {
                "value": "closures",
                "label": "Closures"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "shared": "Shared",
              "closures": "Closures"
            }
          },
          {
            "key": "color",
            "label": "Color",
            "field": "color",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_calendar",
        "summary": "Create a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The calendar",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calendar"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendars/{uuid}": {
      "get": {
        "operationId": "get_calendar",
        "summary": "Retrieve a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The calendar",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calendar"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_calendar",
        "summary": "Update a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalendarUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The calendar",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calendar"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_calendar",
        "summary": "Delete a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendars/{uuid}/activate": {
      "post": {
        "operationId": "activate_calendar",
        "summary": "Activate a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The calendar",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calendar"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/calendars/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_calendar",
        "summary": "Deactivate a calendar",
        "tags": [
          "calendars"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalendarField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The calendar",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calendar"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/calibrations": {
      "get": {
        "operationId": "list_calibrations",
        "summary": "List calibrations",
        "tags": [
          "calibrations"
        ],
        "parameters": [
          {
            "name": "inventory_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "result[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "passed",
                  "out_of_tolerance",
                  "failed"
                ],
                "description": "`passed`: Found within tolerance; the tool is fit for use; `out_of_tolerance`: Found outside its tolerance when checked; `failed`: Failed calibration; the tool is not fit for use",
                "x-enum-descriptions": [
                  "Found within tolerance; the tool is fit for use",
                  "Found outside its tolerance when checked",
                  "Failed calibration; the tool is not fit for use"
                ],
                "x-enum-labels": [
                  "Passed",
                  "Out of tolerance",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "performed_on",
                "-performed_on",
                "due_on",
                "-due_on",
                "certificate_number",
                "-certificate_number",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-performed_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalibrationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CalibrationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "result",
            "label": "Result",
            "kind": "options",
            "options": [
              {
                "value": "passed",
                "label": "Passed"
              },
              {
                "value": "out_of_tolerance",
                "label": "Out of tolerance"
              },
              {
                "value": "failed",
                "label": "Failed"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "performed_on",
            "label": "Performed",
            "field": "performed_on",
            "sort": "performed_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "result",
            "label": "Result",
            "field": "result",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "passed": "Passed",
              "out_of_tolerance": "Out of tolerance",
              "failed": "Failed"
            }
          },
          {
            "key": "certificate_number",
            "label": "Certificate",
            "field": "certificate_number",
            "sort": "certificate_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line_identifier",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "calibrated_by",
            "label": "By",
            "field": "calibrated_by",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_order_line",
            "label": "Repair order line",
            "field": "repair_order_line",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_calibration",
        "summary": "Create a calibration",
        "tags": [
          "calibrations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalibrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CalibrationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The calibration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calibration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/calibrations/{uuid}": {
      "get": {
        "operationId": "get_calibration",
        "summary": "Retrieve a calibration",
        "tags": [
          "calibrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CalibrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The calibration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Calibration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/carrier_accounts": {
      "get": {
        "operationId": "list_carrier_accounts",
        "summary": "List carrier accounts",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "owner[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "organization",
                  "company"
                ],
                "description": "`organization`: One of our organizations, which bills its freight to it; `company`: A company we trade with, whose freight ships on it",
                "x-enum-descriptions": [
                  "One of our organizations, which bills its freight to it",
                  "A company we trade with, whose freight ships on it"
                ],
                "x-enum-labels": [
                  "Organization",
                  "Company"
                ]
              }
            },
            "description": "Who holds the account",
            "explode": true
          },
          {
            "name": "company_or_any_organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Any of these companies' accounts, and every one of our organizations'",
            "explode": true
          },
          {
            "name": "carrier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A carrier's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "nickname",
                "-nickname",
                "account_number",
                "-account_number",
                "active",
                "-active",
                "carrier",
                "-carrier",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `carrier_name`, `account_number`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccountList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "carrier",
            "label": "Carrier",
            "kind": "options",
            "references": [
              "carrier"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "account_number",
            "label": "Account number",
            "field": "account_number",
            "sort": "account_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "nickname",
            "label": "Nickname",
            "field": "nickname",
            "sort": "nickname",
            "kind": "text",
            "currency": null
          },
          {
            "key": "billing",
            "label": "Billing",
            "field": "billing_postal_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "carrier",
            "label": "Carrier",
            "field": "carrier.name",
            "sort": "carrier",
            "kind": "text",
            "currency": null
          },
          {
            "key": "display_name",
            "label": "Display name",
            "field": "display_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_carrier_account",
        "summary": "Create a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierAccountCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The carrier account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-grant-company": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/carrier_accounts/{uuid}": {
      "get": {
        "operationId": "get_carrier_account",
        "summary": "Retrieve a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_carrier_account",
        "summary": "Update a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierAccountUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The carrier account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-grant-company": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_carrier_account",
        "summary": "Delete a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-grant-company": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/carrier_accounts/{uuid}/activate": {
      "post": {
        "operationId": "activate_carrier_account",
        "summary": "Activate a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-grant-company": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/carrier_accounts/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_carrier_account",
        "summary": "Deactivate a carrier account",
        "tags": [
          "carrier_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-grant-company": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/carriers": {
      "get": {
        "operationId": "list_carriers",
        "summary": "List carriers",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarrierList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "ship_vias",
            "label": "Ship vias",
            "field": "ship_vias",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_carrier",
        "summary": "Create a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/carriers/{uuid}": {
      "get": {
        "operationId": "get_carrier",
        "summary": "Retrieve a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_carrier",
        "summary": "Update a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CarrierUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_carrier",
        "summary": "Delete a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/carriers/{uuid}/activate": {
      "post": {
        "operationId": "activate_carrier",
        "summary": "Activate a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/carriers/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_carrier",
        "summary": "Deactivate a carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CarrierField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificate_standards": {
      "get": {
        "operationId": "list_certificate_standards",
        "summary": "List certificate standards",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandardList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_certificate_standard",
        "summary": "Create a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateStandardCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The certificate standard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificate_standards/{uuid}": {
      "get": {
        "operationId": "get_certificate_standard",
        "summary": "Retrieve a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The certificate standard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_certificate_standard",
        "summary": "Update a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateStandardUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate standard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_certificate_standard",
        "summary": "Delete a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificate_standards/{uuid}/activate": {
      "post": {
        "operationId": "activate_certificate_standard",
        "summary": "Activate a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The certificate standard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificate_standards/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_certificate_standard",
        "summary": "Deactivate a certificate standard",
        "tags": [
          "certificate_standards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateStandardField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The certificate standard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateStandard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates": {
      "get": {
        "operationId": "list_certificates",
        "summary": "List certificates",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "release[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A release's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "form[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "conformance",
                  "material_certification",
                  "true_copy",
                  "split_statement"
                ],
                "description": "`conformance`: A Certificate of Conformance: the units it lists conform to their order; `material_certification`: An ATA Spec 106 material certification: the box-numbered form attesting to units sharing one order line, one trace and one new-or-used status; `true_copy`: A certified true copy: our statement that the attached copy of a unit's received 8130-3 or Form 1 is true to the original on file, for a unit shipping the whole quantity the tag was received for; `split_statement`: A split shipment statement: part of a unit's received 8130-3 or Form 1 quantity ships under a copy of the tag, with this certificate's identifier as its new form tracking number",
                "x-enum-descriptions": [
                  "A Certificate of Conformance: the units it lists conform to their order",
                  "An ATA Spec 106 material certification: the box-numbered form attesting to units sharing one order line, one trace and one new-or-used status",
                  "A certified true copy: our statement that the attached copy of a unit's received 8130-3 or Form 1 is true to the original on file, for a unit shipping the whole quantity the tag was received for",
                  "A split shipment statement: part of a unit's received 8130-3 or Form 1 quantity ships under a copy of the tag, with this certificate's identifier as its new form tracking number"
                ],
                "x-enum-labels": [
                  "Certificate of Conformance",
                  "Material Certification (ATA Spec 106)",
                  "Certified True Copy",
                  "Split Shipment Statement"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "signed",
                  "voided"
                ],
                "description": "`draft`: Drafted and awaiting its signer's signature; it can still change or be deleted; `signed`: Signed, and frozen as signed: a correction voids it and issues another; `voided`: Signed, then voided with a reason; it stays on file",
                "x-enum-descriptions": [
                  "Drafted and awaiting its signer's signature; it can still change or be deleted",
                  "Signed, and frozen as signed: a correction voids it and issues another",
                  "Signed, then voided with a reason; it stays on file"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Signed",
                  "Voided"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_certificate",
        "summary": "Create a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates/{uuid}": {
      "get": {
        "operationId": "get_certificate",
        "summary": "Retrieve a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_certificate",
        "summary": "Update a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_certificate",
        "summary": "Delete a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates/{uuid}/mark_signed_by_hand": {
      "post": {
        "operationId": "mark_signed_by_hand_certificate",
        "summary": "Mark a certificate signed by hand",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateMarkSignedByHand"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "mark_signed_by_hand",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates/{uuid}/reissue": {
      "post": {
        "operationId": "reissue_certificate",
        "summary": "Reissue a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The certificate it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reissue",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates/{uuid}/sign": {
      "post": {
        "operationId": "sign_certificate",
        "summary": "Sign a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "sign",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/certificates/{uuid}/void": {
      "post": {
        "operationId": "void_certificate",
        "summary": "Void a certificate",
        "tags": [
          "certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateVoid"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Certificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "void",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/charges": {
      "get": {
        "operationId": "list_charges",
        "summary": "List charges",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "core",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the core charges an exchange bills by its own verbs, `false` every other charge"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "description",
                "-description",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "tax_category_code",
                "-tax_category_code",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChargeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Notes",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "revenue_purpose",
            "label": "Bills to",
            "field": "revenue_purpose",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "inventory_acquisition": "Inventory – Acquisition",
              "inventory_repair": "Inventory – Repair",
              "cogs_acquisition": "COGS – Acquisition",
              "cogs_repair": "COGS – Repair",
              "revenue": "Sales Revenue",
              "freight_revenue": "Freight Revenue",
              "non_inventory_expense": "Non-Inventory Expense",
              "freight_expense": "Freight Expense",
              "rounding": "Rounding Allowance",
              "inventory_adjustment": "Inventory Adjustment",
              "opening_balance_equity": "Opening Balance Equity",
              "capitalized_cost": "Capitalized Cost",
              "unbilled_expense": "Unbilled Expense",
              "credit_card_fee_revenue": "Credit Card Fee Revenue",
              "wire_transfer_fee_revenue": "Wire Transfer Fee Revenue",
              "core_charge_revenue": "Core Charge Revenue",
              "sales_tax_payable": "Sales Tax Payable",
              "accounts_receivable": "Accounts Receivable",
              "accounts_payable": "Accounts Payable",
              "vouchers_payable": "Vouchers Payable",
              "voucher_variance": "Voucher Variance",
              "fx_gain_loss": "Exchange Gain/Loss",
              "customer_deposits": "Customer Deposits",
              "consignor_accrual": "Consignor Accrual",
              "consignor_payable": "Consignor Payable",
              "investor_expense": "Investor Expense",
              "investor_accrual": "Investor Accrual",
              "investor_payable": "Investor Payable",
              "repair_expense": "Repair Expense",
              "exchange_core_repair": "Exchange Core Repair",
              "exchange_core_awaiting": "Exchange Cores Awaiting Return",
              "rma_clearing": "RMA Clearing",
              "repair_inventory_accrual": "Repair Inventory Accrual",
              "wo_wip_parts": "Work Order WIP – Parts",
              "wo_wip_labor": "Work Order WIP – Labor",
              "wo_wip_misc_charge": "Work Order WIP – Misc Charges",
              "teardown_wip": "Teardown WIP",
              "wo_revenue": "Work Order Revenue",
              "wo_revenue_labor": "Work Order Revenue – Labor",
              "wo_revenue_parts": "Work Order Revenue – Parts",
              "wo_cogs": "Work Order COGS",
              "wo_cogs_labor": "Work Order COGS – Labor",
              "wo_cogs_parts": "Work Order COGS – Parts",
              "wo_cogs_misc_charge": "Work Order COGS – Misc Charges",
              "wo_labor": "Work Order Labor",
              "wo_warranty_expense": "Work Order Warranty Expense",
              "inventory_on_lease": "Inventory on Lease",
              "lease_revenue": "Lease Revenue",
              "lease_cogs": "Lease COGS",
              "lease_expense": "Lease Expense"
            }
          },
          {
            "key": "expense_purpose",
            "label": "Costs to",
            "field": "expense_purpose",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "inventory_acquisition": "Inventory – Acquisition",
              "inventory_repair": "Inventory – Repair",
              "cogs_acquisition": "COGS – Acquisition",
              "cogs_repair": "COGS – Repair",
              "revenue": "Sales Revenue",
              "freight_revenue": "Freight Revenue",
              "non_inventory_expense": "Non-Inventory Expense",
              "freight_expense": "Freight Expense",
              "rounding": "Rounding Allowance",
              "inventory_adjustment": "Inventory Adjustment",
              "opening_balance_equity": "Opening Balance Equity",
              "capitalized_cost": "Capitalized Cost",
              "unbilled_expense": "Unbilled Expense",
              "credit_card_fee_revenue": "Credit Card Fee Revenue",
              "wire_transfer_fee_revenue": "Wire Transfer Fee Revenue",
              "core_charge_revenue": "Core Charge Revenue",
              "sales_tax_payable": "Sales Tax Payable",
              "accounts_receivable": "Accounts Receivable",
              "accounts_payable": "Accounts Payable",
              "vouchers_payable": "Vouchers Payable",
              "voucher_variance": "Voucher Variance",
              "fx_gain_loss": "Exchange Gain/Loss",
              "customer_deposits": "Customer Deposits",
              "consignor_accrual": "Consignor Accrual",
              "consignor_payable": "Consignor Payable",
              "investor_expense": "Investor Expense",
              "investor_accrual": "Investor Accrual",
              "investor_payable": "Investor Payable",
              "repair_expense": "Repair Expense",
              "exchange_core_repair": "Exchange Core Repair",
              "exchange_core_awaiting": "Exchange Cores Awaiting Return",
              "rma_clearing": "RMA Clearing",
              "repair_inventory_accrual": "Repair Inventory Accrual",
              "wo_wip_parts": "Work Order WIP – Parts",
              "wo_wip_labor": "Work Order WIP – Labor",
              "wo_wip_misc_charge": "Work Order WIP – Misc Charges",
              "teardown_wip": "Teardown WIP",
              "wo_revenue": "Work Order Revenue",
              "wo_revenue_labor": "Work Order Revenue – Labor",
              "wo_revenue_parts": "Work Order Revenue – Parts",
              "wo_cogs": "Work Order COGS",
              "wo_cogs_labor": "Work Order COGS – Labor",
              "wo_cogs_parts": "Work Order COGS – Parts",
              "wo_cogs_misc_charge": "Work Order COGS – Misc Charges",
              "wo_labor": "Work Order Labor",
              "wo_warranty_expense": "Work Order Warranty Expense",
              "inventory_on_lease": "Inventory on Lease",
              "lease_revenue": "Lease Revenue",
              "lease_cogs": "Lease COGS",
              "lease_expense": "Lease Expense"
            }
          },
          {
            "key": "default",
            "label": "Default",
            "field": "default_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "tax_category_code",
            "label": "Tax category",
            "field": "tax_category.code",
            "sort": "tax_category_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "cost_treatment",
            "label": "Cost treatment",
            "field": "cost_treatment",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "expense": "Expense"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_charge",
        "summary": "Create a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChargeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The charge",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charge"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/charges/{uuid}": {
      "get": {
        "operationId": "get_charge",
        "summary": "Retrieve a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The charge",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charge"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_charge",
        "summary": "Update a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChargeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The charge",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charge"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_charge",
        "summary": "Delete a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/charges/{uuid}/activate": {
      "post": {
        "operationId": "activate_charge",
        "summary": "Activate a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The charge",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charge"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/charges/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_charge",
        "summary": "Deactivate a charge",
        "tags": [
          "charges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChargeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The charge",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Charge"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/clauses": {
      "get": {
        "operationId": "list_clauses",
        "summary": "List clauses",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "body",
                "-body",
                "url",
                "-url",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClauseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "body",
            "label": "Text",
            "field": "body",
            "sort": "body",
            "kind": "text",
            "currency": null
          },
          {
            "key": "url",
            "label": "Link",
            "field": "url",
            "sort": "url",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "default_record_types",
            "label": "Default for",
            "field": "default_record_types",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "certificate": "Certificate",
              "consignor_statement": "Consignor statement",
              "customer_exchange": "Customer exchange",
              "customer_lease": "Customer lease",
              "customer_quote": "Customer quote",
              "customer_return": "Customer return",
              "inventory_line": "Inventory line",
              "investor_statement": "Investor statement",
              "invoice": "Invoice",
              "manifest": "Manifest",
              "purchase_order": "Purchase order",
              "receipt": "Receipt",
              "rejection": "Rejection",
              "release": "Release",
              "repair_order": "Repair order",
              "sales_order": "Sales order",
              "vendor_exchange": "Vendor exchange",
              "vendor_lease": "Vendor lease",
              "vendor_return": "Vendor return",
              "vendor_rfq": "Vendor RFQ",
              "bin": "Bin",
              "work_order": "Work order",
              "work_order_task": "Work order task"
            }
          }
        ]
      },
      "post": {
        "operationId": "create_clause",
        "summary": "Create a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClauseCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The clause",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clause"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/clauses/{uuid}": {
      "get": {
        "operationId": "get_clause",
        "summary": "Retrieve a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The clause",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clause"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_clause",
        "summary": "Update a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClauseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The clause",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clause"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_clause",
        "summary": "Delete a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/clauses/{uuid}/activate": {
      "post": {
        "operationId": "activate_clause",
        "summary": "Activate a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The clause",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clause"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/clauses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_clause",
        "summary": "Deactivate a clause",
        "tags": [
          "clauses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ClauseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The clause",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Clause"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/combined_tax_rates": {
      "get": {
        "operationId": "list_combined_tax_rates",
        "summary": "List combined tax rates",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sales_tax",
                  "vat",
                  "gst",
                  "municipal",
                  "exempt"
                ],
                "x-enum-labels": [
                  "Sales tax",
                  "VAT",
                  "GST",
                  "Municipal",
                  "Exempt"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "statement",
                "-statement",
                "print_detail",
                "-print_detail",
                "kind",
                "-kind",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "quickbooks",
                "-quickbooks",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "sales_tax",
                "label": "Sales tax"
              },
              {
                "value": "vat",
                "label": "VAT"
              },
              {
                "value": "gst",
                "label": "GST"
              },
              {
                "value": "municipal",
                "label": "Municipal"
              },
              {
                "value": "exempt",
                "label": "Exempt"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "statement",
            "label": "Statement",
            "field": "statement",
            "sort": "statement",
            "kind": "text",
            "currency": null
          },
          {
            "key": "print_detail",
            "label": "Print detail",
            "field": "print_detail",
            "sort": "print_detail",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "applies_to",
            "label": "Applies to",
            "field": "applies_to_quotes",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "sales_tax": "Sales tax",
              "vat": "VAT",
              "gst": "GST",
              "municipal": "Municipal",
              "exempt": "Exempt"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "matches",
            "label": "Matches",
            "field": "tax_origin.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "percentage",
            "label": "Rate",
            "field": "percentage",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quickbooks",
            "label": "QuickBooks",
            "field": "quickbooks_assignment",
            "sort": "quickbooks",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_combined_tax_rate",
        "summary": "Create a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rates_in_use"
                ]
              }
            },
            "description": "Inline `rates_in_use` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CombinedTaxRateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The combined tax rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/combined_tax_rates/{uuid}": {
      "get": {
        "operationId": "get_combined_tax_rate",
        "summary": "Retrieve a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rates_in_use"
                ]
              }
            },
            "description": "Inline `rates_in_use` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The combined tax rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_combined_tax_rate",
        "summary": "Update a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rates_in_use"
                ]
              }
            },
            "description": "Inline `rates_in_use` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CombinedTaxRateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The combined tax rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_combined_tax_rate",
        "summary": "Delete a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/combined_tax_rates/{uuid}/activate": {
      "post": {
        "operationId": "activate_combined_tax_rate",
        "summary": "Activate a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rates_in_use"
                ]
              }
            },
            "description": "Inline `rates_in_use` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The combined tax rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/combined_tax_rates/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_combined_tax_rate",
        "summary": "Deactivate a combined tax rate",
        "tags": [
          "combined_tax_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rates_in_use"
                ]
              }
            },
            "description": "Inline `rates_in_use` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CombinedTaxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The combined tax rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CombinedTaxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies": {
      "get": {
        "operationId": "list_companies",
        "summary": "List companies",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "segment[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company segment's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "role[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "customer",
                  "vendor"
                ],
                "description": "`customer`: A company we sell to; `vendor`: A company we buy from or send repairs to",
                "x-enum-descriptions": [
                  "A company we sell to",
                  "A company we buy from or send repairs to"
                ],
                "x-enum-labels": [
                  "Customer",
                  "Vendor"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "exclude_exact_name",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` leaves out the company named exactly what `q` says, in any case and spacing"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at",
                "relevance"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `relevance` needs `q`; it finds the companies named closest to `q`, past case, punctuation and legal suffixes such as Inc. or LLC, and ranks the closest first, on one page of at most 20 with no next cursor, equal ranks by uuid. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `primary_billing_address` or `primary_shipping_address` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "role",
            "label": "Role",
            "kind": "options",
            "options": [
              {
                "value": "customer",
                "label": "Customer"
              },
              {
                "value": "vendor",
                "label": "Vendor"
              }
            ]
          },
          {
            "key": "segment",
            "label": "Segment",
            "kind": "options",
            "references": [
              "company_segment"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Company",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "trading_name",
            "label": "Name on documents",
            "field": "trading_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "legal_name",
            "label": "Legal name",
            "field": "legal_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "cage_code",
            "label": "CAGE",
            "field": "cage_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_id",
            "label": "Tax ID",
            "field": "tax_id",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "website",
            "label": "Website",
            "field": "website",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "phone",
            "label": "Phone",
            "field": "phone",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fax",
            "label": "Fax",
            "field": "fax",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "email_address",
            "label": "Email address",
            "field": "email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "roles",
            "label": "Roles",
            "field": "roles",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customer": "Customer",
              "vendor": "Vendor"
            }
          },
          {
            "key": "account_owner",
            "label": "Owner",
            "field": "account_owner.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "segments",
            "label": "Segments",
            "field": "segments.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_company",
        "summary": "Create a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "external_keys",
                  "customer",
                  "vendor",
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `contacts`, `external_keys`, `customer`, `vendor`, `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_company_by_external_key",
        "summary": "Retrieve a company by its external key",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "external_keys",
                  "customer",
                  "vendor",
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `contacts`, `external_keys`, `customer`, `vendor`, `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "put": {
        "operationId": "upsert_company_by_external_key",
        "summary": "Create or update a company by its external key",
        "description": "Updates the company the key names, as `PATCH` would: absent fields are untouched, and the required ones are required only to create. When no company holds the key, creates one from the body and links the key to it (its `origin` is `created`). Upserts of one key run one at a time, so two at once never make two records",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "external_keys",
                  "customer",
                  "vendor",
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `contacts`, `external_keys`, `customer`, `vendor`, `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The company the key named, updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{uuid}": {
      "get": {
        "operationId": "get_company",
        "summary": "Retrieve a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "external_keys",
                  "customer",
                  "vendor",
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `contacts`, `external_keys`, `customer`, `vendor`, `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_company",
        "summary": "Update a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "contacts",
                  "external_keys",
                  "customer",
                  "vendor",
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `contacts`, `external_keys`, `customer`, `vendor`, `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_company",
        "summary": "Delete a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{uuid}/activate": {
      "post": {
        "operationId": "activate_company",
        "summary": "Activate a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/customer": {
      "get": {
        "operationId": "get_customer",
        "summary": "Retrieve a customer",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer",
        "summary": "Update a customer",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Customer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/customer/email_template_preferences": {
      "get": {
        "operationId": "get_customer_email_template_preferences",
        "summary": "Retrieve a customer email template preferences",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerEmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_email_template_preferences",
        "summary": "Update a customer email template preferences",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerEmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerEmailTemplatePreferencesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerEmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_company",
        "summary": "Deactivate a company",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "primary_billing_address",
                  "primary_shipping_address"
                ]
              }
            },
            "description": "Inline `overview_counts`, `primary_billing_address`, or `primary_shipping_address` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/external_keys": {
      "get": {
        "operationId": "list_company_external_keys",
        "summary": "List a company's external keys",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_company_external_key",
        "summary": "Retrieve a company by its external key",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_company_external_key",
        "summary": "Link a company's external key",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_company_external_key",
        "summary": "Unlink a company's external key",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/vendor": {
      "get": {
        "operationId": "get_vendor",
        "summary": "Retrieve a vendor",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vendor"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor",
        "summary": "Update a vendor",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vendor"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/companies/{company_uuid}/vendor/email_template_preferences": {
      "get": {
        "operationId": "get_vendor_email_template_preferences",
        "summary": "Retrieve a vendor email template preferences",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorEmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorEmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_email_template_preferences",
        "summary": "Update a vendor email template preferences",
        "tags": [
          "companies"
        ],
        "parameters": [
          {
            "name": "company_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorEmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorEmailTemplatePreferencesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorEmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_addresses": {
      "get": {
        "operationId": "list_company_addresses",
        "summary": "List company addresses",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "role[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "shipping",
                  "billing"
                ],
                "description": "`shipping`: An address goods ship to or from; `billing`: An address invoices and bills are sent to",
                "x-enum-descriptions": [
                  "An address goods ship to or from",
                  "An address invoices and bills are sent to"
                ],
                "x-enum-labels": [
                  "Shipping",
                  "Billing"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list. Only beside a single `company[]`, since it reads each address rather than an index"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "label",
                "-label",
                "city",
                "-city",
                "country_code",
                "-country_code",
                "primary",
                "-primary",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `primary` sorts only beside a single company's `company[]`. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddressList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "role",
            "label": "Used for",
            "kind": "options",
            "options": [
              {
                "value": "shipping",
                "label": "Shipping"
              },
              {
                "value": "billing",
                "label": "Billing"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Label",
            "field": "label",
            "sort": "label",
            "kind": "text",
            "currency": null
          },
          {
            "key": "attn",
            "label": "Attn",
            "field": "attn",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "address",
            "label": "Address",
            "field": "street",
            "sort": "city",
            "kind": "text",
            "currency": null
          },
          {
            "key": "used_for",
            "label": "Used for",
            "field": "shipping",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "tax_destination_label",
            "label": "Tax destination label",
            "field": "tax_destination.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "company",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "country",
            "label": "Country",
            "field": "country_name",
            "sort": "country_code",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_company_address",
        "summary": "Create a company address",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAddressCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_addresses/{uuid}": {
      "get": {
        "operationId": "get_company_address",
        "summary": "Retrieve a company address",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_company_address",
        "summary": "Update a company address",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAddressUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_addresses/{uuid}/activate": {
      "post": {
        "operationId": "activate_company_address",
        "summary": "Activate a company address",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_addresses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_company_address",
        "summary": "Deactivate a company address",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_addresses/{uuid}/make_primary": {
      "post": {
        "operationId": "make_primary_company_address",
        "summary": "Make a company address the primary one",
        "tags": [
          "company_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanyAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyAddressMakePrimary"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The company address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "make_primary",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_segments": {
      "get": {
        "operationId": "list_company_segments",
        "summary": "List company segments",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegmentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_company_segment",
        "summary": "Create a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanySegmentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The company segment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_segments/{uuid}": {
      "get": {
        "operationId": "get_company_segment",
        "summary": "Retrieve a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The company segment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_company_segment",
        "summary": "Update a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanySegmentUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The company segment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_company_segment",
        "summary": "Delete a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_segments/{uuid}/activate": {
      "post": {
        "operationId": "activate_company_segment",
        "summary": "Activate a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company segment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/company_segments/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_company_segment",
        "summary": "Deactivate a company segment",
        "tags": [
          "company_segments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CompanySegmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The company segment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanySegment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/condition_answers": {
      "get": {
        "operationId": "list_condition_answers",
        "summary": "List condition answers",
        "tags": [
          "condition_answers"
        ],
        "parameters": [
          {
            "name": "marketplace_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionAnswerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionAnswerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_condition_answer",
        "summary": "Create a condition answer",
        "tags": [
          "condition_answers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionAnswerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The condition answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/condition_answers/{uuid}": {
      "get": {
        "operationId": "get_condition_answer",
        "summary": "Retrieve a condition answer",
        "tags": [
          "condition_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The condition answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_condition_answer",
        "summary": "Delete a condition answer",
        "tags": [
          "condition_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/condition_listings": {
      "get": {
        "operationId": "list_condition_listings",
        "summary": "List condition listings",
        "tags": [
          "condition_listings"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionListingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionListingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_condition_listing",
        "summary": "Create a condition listing",
        "tags": [
          "condition_listings"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionListingCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The condition listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/condition_listings/{uuid}": {
      "get": {
        "operationId": "get_condition_listing",
        "summary": "Retrieve a condition listing",
        "tags": [
          "condition_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The condition listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_condition_listing",
        "summary": "Update a condition listing",
        "tags": [
          "condition_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionListingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The condition listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_condition_listing",
        "summary": "Delete a condition listing",
        "tags": [
          "condition_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/conditions": {
      "get": {
        "operationId": "list_conditions",
        "summary": "List conditions",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "name",
                "-name",
                "standard_code",
                "-standard_code",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConditionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "field": "standard_code",
            "sort": "standard_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "warranty_days",
            "label": "Our warranty (days)",
            "field": "warranty_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "requirements",
            "label": "Requirements",
            "field": "requirements.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_condition",
        "summary": "Create a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/conditions/{uuid}": {
      "get": {
        "operationId": "get_condition",
        "summary": "Retrieve a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_condition",
        "summary": "Update a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_condition",
        "summary": "Delete a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/conditions/{uuid}/activate": {
      "post": {
        "operationId": "activate_condition",
        "summary": "Activate a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/conditions/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_condition",
        "summary": "Deactivate a condition",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/conditions/{uuid}/map_direct_rfqs": {
      "post": {
        "operationId": "map_direct_rfqs_condition",
        "summary": "Set the direct RFQ conditions a condition answers",
        "tags": [
          "conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConditionMapDirectRfqs"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Condition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_direct_rfqs",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements": {
      "get": {
        "operationId": "list_consignor_statements",
        "summary": "List consignor statements",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "settlement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpaid",
                  "partially_paid",
                  "paid",
                  "overpaid",
                  "credited",
                  "corrected"
                ],
                "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
                "x-enum-descriptions": [
                  "Owed in full: nothing paid yet",
                  "Some of it paid, a balance left",
                  "Payments cleared the balance",
                  "Payments came to more than was owed",
                  "Credits cleared the balance with no payment",
                  "Corrections cleared the balance with no payment or credit"
                ],
                "x-enum-labels": [
                  "Unpaid",
                  "Partially paid",
                  "Paid",
                  "Overpaid",
                  "Credited",
                  "Corrected"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; its lines can still change; `sent`: Sent to the payee and final; what it nets is payable; `cancelled`: Called off; nothing on it is payable",
                "x-enum-descriptions": [
                  "Being prepared; its lines can still change",
                  "Sent to the payee and final; what it nets is payable",
                  "Called off; nothing on it is payable"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "consignor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "statement_date",
                "-statement_date",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "settlement",
                "-settlement",
                "updated_at",
                "-updated_at"
              ],
              "default": "-statement_date"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, sent, cancelled, not the alphabet. `settlement` sorts in its own order, unpaid, partially_paid, paid, overpaid, credited, corrected, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "consignor",
            "label": "Consignor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "kind": "options",
            "options": [
              {
                "value": "unpaid",
                "label": "Unpaid"
              },
              {
                "value": "partially_paid",
                "label": "Partially paid"
              },
              {
                "value": "paid",
                "label": "Paid"
              },
              {
                "value": "overpaid",
                "label": "Overpaid"
              },
              {
                "value": "credited",
                "label": "Credited"
              },
              {
                "value": "corrected",
                "label": "Corrected"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "statement_date",
            "label": "Date",
            "field": "statement_date",
            "sort": "statement_date",
            "kind": "date",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Consignment code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory",
            "label": "Consignment",
            "field": "inventory_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "consignor",
            "label": "Consignor",
            "field": "consignor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "rate",
            "label": "Consignor share",
            "field": "rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "net",
            "label": "Net due",
            "field": "net_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "paid",
            "label": "Paid",
            "field": "paid_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "balance",
            "label": "Balance",
            "field": "balance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "field": "settlement",
            "sort": "settlement",
            "kind": "text",
            "currency": null,
            "labels": {
              "unpaid": "Unpaid",
              "partially_paid": "Partially paid",
              "paid": "Paid",
              "overpaid": "Overpaid",
              "credited": "Credited",
              "corrected": "Corrected"
            }
          }
        ]
      },
      "post": {
        "operationId": "create_consignor_statement",
        "summary": "Create a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsignorStatementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{uuid}": {
      "get": {
        "operationId": "get_consignor_statement",
        "summary": "Retrieve a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_consignor_statement",
        "summary": "Update a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsignorStatementUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{consignor_statement_uuid}/applications": {
      "get": {
        "operationId": "list_consignor_statement_applications",
        "summary": "List payable applications",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/consignor_statements/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_consignor_statement",
        "summary": "Cancel a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{uuid}/email": {
      "post": {
        "operationId": "email_consignor_statement",
        "summary": "Email a consignor statement",
        "description": "Emails the statement's form as a PDF from the organization's sending address, tied to the statement's conversation and narrated `emailed`. A draft is marked sent first, as `POST /consignor_statements/{uuid}/send` would, settling its entries; a failure after that leaves it sent, and the refusal says so. A sent one goes out again unchanged",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsignorStatementEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/consignor_statements/{consignor_statement_uuid}/lines": {
      "get": {
        "operationId": "list_consignor_statement_lines",
        "summary": "List consignor statement lines",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "accrual",
                  "value_adjustment"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "settled_on",
                "-settled_on",
                "sale_cents",
                "-sale_cents",
                "cost_cents",
                "-cost_cents",
                "amount_cents",
                "-amount_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "settled_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatementLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Entry",
            "kind": "options",
            "options": [
              {
                "value": "accrual",
                "label": "Accrual"
              },
              {
                "value": "value_adjustment",
                "label": "Value adjustment"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "accrual": "Accrual",
              "value_adjustment": "Value adjustment"
            }
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reference_label",
            "label": "Reference label",
            "field": "reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "settled_on",
            "label": "Settled",
            "field": "settled_on",
            "sort": "settled_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "sale",
            "label": "Sale",
            "field": "sale_cents",
            "sort": "sale_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "cost",
            "label": "Cost",
            "field": "cost_cents",
            "sort": "cost_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          }
        ]
      }
    },
    "/consignor_statements/{consignor_statement_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_consignor_statement_line",
        "summary": "Retrieve a consignor statement line",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatementLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_consignor_statement_line",
        "summary": "Delete a consignor statement line",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_consignor_statement",
        "summary": "Preview a consignor statement's email",
        "description": "Renders the email `POST /consignor_statements/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and a draft stays a draft",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsignorStatementPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{uuid}/send": {
      "post": {
        "operationId": "send_consignor_statement",
        "summary": "Send a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/consignor_statements/{consignor_statement_uuid}/trash": {
      "post": {
        "operationId": "trash_consignor_statement",
        "summary": "Trash a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_consignor_statement",
        "summary": "Restore a consignor statement",
        "tags": [
          "consignor_statements"
        ],
        "parameters": [
          {
            "name": "consignor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConsignorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The consignor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsignorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contact_roles": {
      "get": {
        "operationId": "list_contact_roles",
        "summary": "List contact roles",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRoleList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_contact_role",
        "summary": "Create a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRoleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The contact role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRole"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/contact_roles/{uuid}": {
      "get": {
        "operationId": "get_contact_role",
        "summary": "Retrieve a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRole"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_contact_role",
        "summary": "Update a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRoleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The contact role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRole"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_contact_role",
        "summary": "Delete a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contact_roles/{uuid}/activate": {
      "post": {
        "operationId": "activate_contact_role",
        "summary": "Activate a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRole"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contact_roles/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_contact_role",
        "summary": "Deactivate a contact role",
        "tags": [
          "contact_roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactRoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactRole"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts": {
      "get": {
        "operationId": "list_contacts",
        "summary": "List contacts",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "home_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "The contacts who work for a company, leaving out those only linked to it",
            "explode": true
          },
          {
            "name": "not_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Leaves out the contacts `company[]` would list: the people a company could take on, without its own and its linked ones",
            "explode": true
          },
          {
            "name": "contact_role[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A contact role's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "last_name",
                "-last_name",
                "created_at",
                "-created_at",
                "email_address",
                "-email_address",
                "primary",
                "-primary",
                "updated_at",
                "-updated_at"
              ],
              "default": "last_name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `primary` sorts only beside a single company's `company[]`. Rows equal under the sort follow by `last_name`, `first_name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "contact_role",
            "label": "Role",
            "kind": "options",
            "references": [
              "contact_role"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "salutation",
            "label": "Salutation",
            "field": "salutation",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "email_address",
            "label": "Email address",
            "field": "email_address",
            "sort": "email_address",
            "kind": "text",
            "currency": null
          },
          {
            "key": "title",
            "label": "Title",
            "field": "title",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "department",
            "label": "Department",
            "field": "department",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "phone",
            "label": "Phone",
            "field": "phone",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "mobile",
            "label": "Mobile",
            "field": "mobile",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fax",
            "label": "Fax",
            "field": "fax",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "birthdate",
            "label": "Birthdate",
            "field": "birthdate",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "receives_invoices",
            "label": "Receives invoices",
            "field": "receives_invoices",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "receives_statements",
            "label": "Receives statements",
            "field": "receives_statements",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "last_name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "company",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_roles",
            "label": "Roles",
            "field": "contact_roles.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "linked_company_names",
            "label": "Also works with",
            "field": "linked_companies.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_contact",
        "summary": "Create a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys"
                ]
              }
            },
            "description": "Inline `external_keys` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_contact_by_external_key",
        "summary": "Retrieve a contact by its external key",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys"
                ]
              }
            },
            "description": "Inline `external_keys` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "put": {
        "operationId": "upsert_contact_by_external_key",
        "summary": "Create or update a contact by its external key",
        "description": "Updates the contact the key names, as `PATCH` would: absent fields are untouched, and the required ones are required only to create. When no contact holds the key, creates one from the body and links the key to it (its `origin` is `created`). Upserts of one key run one at a time, so two at once never make two records",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys"
                ]
              }
            },
            "description": "Inline `external_keys` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The contact the key named, updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{uuid}": {
      "get": {
        "operationId": "get_contact",
        "summary": "Retrieve a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys"
                ]
              }
            },
            "description": "Inline `external_keys` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_contact",
        "summary": "Update a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys"
                ]
              }
            },
            "description": "Inline `external_keys` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_contact",
        "summary": "Delete a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{uuid}/activate": {
      "post": {
        "operationId": "activate_contact",
        "summary": "Activate a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_contact",
        "summary": "Deactivate a contact",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{contact_uuid}/external_keys": {
      "get": {
        "operationId": "list_contact_external_keys",
        "summary": "List a contact's external keys",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "contact_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{contact_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_contact_external_key",
        "summary": "Retrieve a contact by its external key",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "contact_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_contact_external_key",
        "summary": "Link a contact's external key",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "contact_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_contact_external_key",
        "summary": "Unlink a contact's external key",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "contact_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/contacts/{uuid}/make_primary": {
      "post": {
        "operationId": "make_primary_contact",
        "summary": "Make a contact the primary one",
        "tags": [
          "contacts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ContactField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The contact",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Contact"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "make_primary",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/conversations": {
      "get": {
        "operationId": "list_conversations",
        "summary": "List conversations",
        "tags": [
          "conversations"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "destination_for[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a message"
              }
            },
            "description": "The conversations a message could be moved to: its organization's, leaving out the one it is in",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConversationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConversationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "organization",
            "label": "Organization",
            "kind": "options",
            "references": [
              "organization"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Subject",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Last activity",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/conversations/{uuid}": {
      "get": {
        "operationId": "get_conversation",
        "summary": "Retrieve a conversation",
        "tags": [
          "conversations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ConversationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The conversation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Conversation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/corepilot_legacy_migration/files": {
      "get": {
        "operationId": "list_corepilot_legacy_migration_files",
        "summary": "List CorePilot legacy migration files",
        "tags": [
          "corepilot_legacy_migration"
        ],
        "parameters": [
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type. Without it the list needs the `data:import` grant, and is refused 403",
            "explode": true
          },
          {
            "name": "include_placed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Include the files already attached to the record they're filed on, which its attachments list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationFileListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CorepilotLegacyMigrationFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/countries": {
      "get": {
        "operationId": "list_countries",
        "summary": "List countries",
        "tags": [
          "countries"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CountryListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/currencies": {
      "get": {
        "operationId": "list_currencies",
        "summary": "List currencies",
        "tags": [
          "currencies"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CurrencyListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CurrencyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges": {
      "get": {
        "operationId": "list_customer_exchanges",
        "summary": "List customer exchanges",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "core_received",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: The customer owes us a core that has not arrived; `core_received`: The customer's core has arrived; `closed`: Finished: the core came back, was billed, or was written off; `cancelled`: Called off before any core arrived",
                "x-enum-descriptions": [
                  "The customer owes us a core that has not arrived",
                  "The customer's core has arrived",
                  "Finished: the core came back, was billed, or was written off",
                  "Called off before any core arrived"
                ],
                "x-enum-labels": [
                  "Open",
                  "Core received",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "core_due[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: The core is past its due date and still owed",
                "x-enum-descriptions": [
                  "The core is past its due date and still owed"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "core_due_on",
                "-core_due_on",
                "shipped_at",
                "-shipped_at",
                "status",
                "-status",
                "expected_core_condition",
                "-expected_core_condition",
                "updated_at",
                "-updated_at"
              ],
              "default": "core_due_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, core_received, closed, cancelled, not the alphabet. `expected_core_condition` sorts only beside a single `sales_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchangeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "core_received",
                "label": "Core received"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "core_due",
            "label": "Core due",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "core_received": "Core received",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_due_days",
            "label": "Core due days",
            "field": "core_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "expected_core",
            "label": "Expected core",
            "field": "expected_core_part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_core_serial",
            "label": "Expected serial",
            "field": "expected_core_serial",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "exchange_type",
            "label": "Exchange type",
            "field": "exchange_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "cost_plus": "Cost plus",
              "flat_rate": "Flat rate"
            }
          },
          {
            "key": "core_disposition",
            "label": "Core disposition",
            "field": "core_disposition",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "overhaul": "Overhaul",
              "serviceable": "Repair to serviceable",
              "as_is": "Receive as-is"
            }
          },
          {
            "key": "return_disposition",
            "label": "Return disposition",
            "field": "return_disposition",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "return_to_inventory": "Return to inventory",
              "return_to_exchange_vendor": "Return to exchange vendor"
            }
          },
          {
            "key": "core_repair_nte",
            "label": "Repair NTE",
            "field": "core_repair_nte_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_core_basis",
            "label": "Parked core cost",
            "field": "home_core_basis_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "shipped_at",
            "label": "Shipped",
            "field": "shipped_at",
            "sort": "shipped_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "core_due_on",
            "label": "Core due",
            "field": "core_due_on",
            "sort": "core_due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "quantity_owed",
            "label": "Quantity owed",
            "field": "quantity_owed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "received_quantity",
            "label": "Received quantity",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "cores",
            "label": "Cores",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "billed_core_quantity",
            "label": "Cores billed",
            "field": "quantity_billed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding quantity",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "expected_core_condition",
            "label": "Expected condition",
            "field": "expected_core_condition",
            "sort": "expected_core_condition",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "sales_order",
            "label": "Order",
            "field": "sales_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/customer_exchanges/{uuid}": {
      "get": {
        "operationId": "get_customer_exchange",
        "summary": "Retrieve a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "cores",
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `cores` or `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_exchange",
        "summary": "Update a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "cores",
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `cores` or `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/add_to_repair_order": {
      "post": {
        "operationId": "add_to_repair_order_customer_exchange",
        "summary": "Add a customer exchange to a repair order",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeAddToRepairOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open repair order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_to_repair_order",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/bill_charge": {
      "post": {
        "operationId": "bill_charge_customer_exchange",
        "summary": "Bill a charge on a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeBillCharge"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open invoice it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_charge",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/bill_core": {
      "post": {
        "operationId": "bill_core_customer_exchange",
        "summary": "Bill the core of a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeBillCore"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open invoice it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_core",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/bill_core_repair": {
      "post": {
        "operationId": "bill_core_repair_customer_exchange",
        "summary": "Bill the core repair of a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeBillCoreRepair"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open invoice it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_core_repair",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/close": {
      "post": {
        "operationId": "close_customer_exchange",
        "summary": "Close a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_customer_exchange",
        "summary": "Create a receipt for a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/put_back": {
      "post": {
        "operationId": "put_back_customer_exchange",
        "summary": "Put a received core of a customer exchange back in inventory",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangePutBack"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "put_back",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{uuid}/scrap": {
      "post": {
        "operationId": "scrap_customer_exchange",
        "summary": "Scrap a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerExchangeScrap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "scrap",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_exchanges/{customer_exchange_uuid}/trash": {
      "post": {
        "operationId": "trash_customer_exchange",
        "summary": "Trash a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "customer_exchange_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_customer_exchange",
        "summary": "Restore a customer exchange",
        "tags": [
          "customer_exchanges"
        ],
        "parameters": [
          {
            "name": "customer_exchange_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billable_repairs"
                ]
              }
            },
            "description": "Inline `billable_repairs` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases": {
      "get": {
        "operationId": "list_customer_leases",
        "summary": "List customer leases",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "returned",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: The leased unit is out at the customer; `returned`: Every unit is back: close the lease when you are done with it; `closed`: Finished: the unit came back or its cost was written off; `cancelled`: Called off before the unit stayed out: its shipment was cancelled",
                "x-enum-descriptions": [
                  "The leased unit is out at the customer",
                  "Every unit is back: close the lease when you are done with it",
                  "Finished: the unit came back or its cost was written off",
                  "Called off before the unit stayed out: its shipment was cancelled"
                ],
                "x-enum-labels": [
                  "Open",
                  "Returned",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "billing[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "to_bill"
                ],
                "description": "`to_bill`: Out, or back, with days no bill covers yet",
                "x-enum-descriptions": [
                  "Out, or back, with days no bill covers yet"
                ],
                "x-enum-labels": [
                  "To bill"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "due_back[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: A unit is past its due-back day and still out at the customer",
                "x-enum-descriptions": [
                  "A unit is past its due-back day and still out at the customer"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "started_on",
                "-started_on",
                "due_back_on",
                "-due_back_on",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "due_back_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, returned, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLeaseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "returned",
                "label": "Returned"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "billing",
            "label": "Billing",
            "kind": "options",
            "options": [
              {
                "value": "to_bill",
                "label": "To bill"
              }
            ]
          },
          {
            "key": "due_back",
            "label": "Due back",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "returned": "Returned",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "rate",
            "label": "Rate",
            "field": "rate_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_rate_unit",
            "label": "Rate per",
            "field": "lease_rate_unit",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "day": "Day",
              "week": "Week",
              "month": "Month"
            }
          },
          {
            "key": "lease_minimum_days",
            "label": "Minimum days",
            "field": "lease_minimum_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_hours",
            "label": "Included hours",
            "field": "lease_included_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_cycles",
            "label": "Included cycles",
            "field": "lease_included_cycles",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_hour_fee",
            "label": "Hour fee",
            "field": "lease_hour_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_cycle_fee",
            "label": "Cycle fee",
            "field": "lease_cycle_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_outright_price",
            "label": "Outright price",
            "field": "lease_outright_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_due_days",
            "label": "Due back in (days)",
            "field": "lease_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "home_unit_basis",
            "label": "Unit cost on lease",
            "field": "home_unit_basis_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "shipped_part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "started_on",
            "label": "Started",
            "field": "started_on",
            "sort": "started_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_back_on",
            "label": "Due back",
            "field": "due_back_on",
            "sort": "due_back_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "billed_through_on",
            "label": "Billed through",
            "field": "billed_through_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "unbilled_days",
            "label": "Unbilled days",
            "field": "unbilled_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_owed",
            "label": "Units sent out",
            "field": "quantity_owed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "received_quantity",
            "label": "Returned",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Still out",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sales_order",
            "label": "Order",
            "field": "sales_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/customer_leases/{uuid}": {
      "get": {
        "operationId": "get_customer_lease",
        "summary": "Retrieve a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "units"
                ]
              }
            },
            "description": "Inline `units` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_lease",
        "summary": "Update a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "units"
                ]
              }
            },
            "description": "Inline `units` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerLeaseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/add_to_repair_order": {
      "post": {
        "operationId": "add_to_repair_order_customer_lease",
        "summary": "Add a customer lease to a repair order",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerLeaseAddToRepairOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open repair order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_to_repair_order",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/bill_charge": {
      "post": {
        "operationId": "bill_charge_customer_lease",
        "summary": "Bill a charge on a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerLeaseBillCharge"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open invoice it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_charge",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/bill_period": {
      "post": {
        "operationId": "bill_period_customer_lease",
        "summary": "Bill a period of a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerLeaseBillPeriod"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_period",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/close": {
      "post": {
        "operationId": "close_customer_lease",
        "summary": "Close a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_customer_lease",
        "summary": "Create a receipt for a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{uuid}/sell_outright": {
      "post": {
        "operationId": "sell_outright_customer_lease",
        "summary": "Sell a customer lease outright",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerLeaseSellOutright"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "sell_outright",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_leases/{customer_lease_uuid}/trash": {
      "post": {
        "operationId": "trash_customer_lease",
        "summary": "Trash a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "customer_lease_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_customer_lease",
        "summary": "Restore a customer lease",
        "tags": [
          "customer_leases"
        ],
        "parameters": [
          {
            "name": "customer_lease_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_no_quote_reasons": {
      "get": {
        "operationId": "list_customer_no_quote_reasons",
        "summary": "List customer no quote reasons",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "description",
                "-description",
                "printed_text",
                "-printed_text",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "printed_text",
            "label": "Printed text",
            "field": "printed_text",
            "sort": "printed_text",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_no_quote_reason",
        "summary": "Create a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer no quote reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_no_quote_reasons/{uuid}": {
      "get": {
        "operationId": "get_customer_no_quote_reason",
        "summary": "Retrieve a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer no quote reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_no_quote_reason",
        "summary": "Update a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer no quote reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_no_quote_reason",
        "summary": "Delete a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_no_quote_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_no_quote_reason",
        "summary": "Activate a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer no quote reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_no_quote_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_no_quote_reason",
        "summary": "Deactivate a customer no quote reason",
        "tags": [
          "customer_no_quote_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerNoQuoteReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer no quote reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerNoQuoteReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_part_prices": {
      "get": {
        "operationId": "list_customer_part_prices",
        "summary": "List customer part prices",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "supply[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an inventory line or a vendor inventory line"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "lease"
                ],
                "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back; `lease`: Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance",
                "x-enum-descriptions": [
                  "An outright sale: the unit changes hands for its price, with no core owed",
                  "An exchange: a serviceable unit now, with a core unit owed back",
                  "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
                ],
                "x-enum-labels": [
                  "Outright",
                  "Exchange",
                  "Lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company_segment[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company segment's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at",
                "created_at",
                "-created_at"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "company_segment",
            "label": "Segment",
            "kind": "options",
            "references": [
              "company_segment"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "lease": "Lease"
            }
          },
          {
            "key": "minimum_quantity",
            "label": "Min qty",
            "field": "minimum_quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "exchange.core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lead_time",
            "label": "Lead time",
            "field": "lead_time.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_from",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "audience",
            "label": "Priced for",
            "field": "audience",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_part_price",
        "summary": "Create a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerPartPriceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_part_prices/{uuid}": {
      "get": {
        "operationId": "get_customer_part_price",
        "summary": "Retrieve a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_part_price",
        "summary": "Update a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerPartPriceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_part_price",
        "summary": "Delete a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_part_prices/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_part_price",
        "summary": "Activate a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_part_prices/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_part_price",
        "summary": "Deactivate a customer part price",
        "tags": [
          "customer_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_payments": {
      "get": {
        "operationId": "list_customer_payments",
        "summary": "List customer payments",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "invoice[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An invoice's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "unapplied",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only live payments with money left to apply to an invoice"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "paid_on",
                "-paid_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "-paid_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "unapplied",
            "label": "Unapplied",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "paid_on",
            "sort": "paid_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "deposit": "Deposit",
              "payment": "Payment"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "applied",
            "label": "Applied",
            "field": "applied_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "applied_to",
            "label": "Applied to",
            "field": "applied_to",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "unapplied",
            "label": "Unapplied",
            "field": "unapplied_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "voided_at",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_payment",
        "summary": "Create a customer payment",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerPaymentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_payments/{uuid}": {
      "get": {
        "operationId": "get_customer_payment",
        "summary": "Retrieve a customer payment",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_payments/{customer_payment_uuid}/applications": {
      "get": {
        "operationId": "list_customer_payment_applications",
        "summary": "List receivable applications",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "customer_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceivableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceivableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_payment_application",
        "summary": "Create a receivable application",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "customer_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceivableApplicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceivableApplicationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The receivable application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceivableApplication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_payments/{customer_payment_uuid}/applications/{uuid}": {
      "get": {
        "operationId": "get_customer_payment_application",
        "summary": "Retrieve a receivable application",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "customer_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceivableApplicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The receivable application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceivableApplication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_payments/{uuid}/void": {
      "post": {
        "operationId": "void_customer_payment",
        "summary": "Void a customer payment",
        "tags": [
          "customer_payments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "void",
        "x-risk": "destructive",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_archive_reasons": {
      "get": {
        "operationId": "list_customer_quote_archive_reasons",
        "summary": "List customer quote archive reasons",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_quote_archive_reason",
        "summary": "Create a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer quote archive reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_archive_reasons/{uuid}": {
      "get": {
        "operationId": "get_customer_quote_archive_reason",
        "summary": "Retrieve a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote archive reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_quote_archive_reason",
        "summary": "Update a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote archive reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_quote_archive_reason",
        "summary": "Delete a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_archive_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_quote_archive_reason",
        "summary": "Activate a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote archive reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_archive_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_quote_archive_reason",
        "summary": "Deactivate a customer quote archive reason",
        "tags": [
          "customer_quote_archive_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteArchiveReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote archive reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_lines": {
      "get": {
        "operationId": "list_customer_quote_lines_across_documents",
        "summary": "List customer quote lines across every document",
        "tags": [
          "customer_quote_lines"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "repair",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_orderable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only priced repair lines naming a catalog part, priced from no template since marked inactive nor one with a DER repair task where they allow no DER repairs, that no sales order, work order or order in another system holds yet, which `POST /customer_quotes/{uuid}/open_work_orders` takes"
          },
          {
            "name": "unrequested",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines answering no RFQ line, beside whatever `response[]` asks"
          },
          {
            "name": "customer_rfq_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer RFQ line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpriced",
                  "priced",
                  "no_quote",
                  "not_requested"
                ],
                "description": "`unpriced`: Offered with neither a price nor a no-quote reason yet; `priced`: Offered at a unit price; `no_quote`: Declined, with a no-quote reason; `not_requested`: Offered unasked; it answers no line of the customer's RFQ",
                "x-enum-descriptions": [
                  "Offered with neither a price nor a no-quote reason yet",
                  "Offered at a unit price",
                  "Declined, with a no-quote reason",
                  "Offered unasked; it answers no line of the customer's RFQ"
                ],
                "x-enum-labels": [
                  "Unpriced",
                  "Priced",
                  "No quote",
                  "Not requested"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "unit_price_cents",
                "-unit_price_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "customer",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "dated",
            "label": "Dated",
            "kind": "range"
          },
          {
            "key": "priced",
            "label": "Priced only",
            "kind": "toggle"
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "Record",
            "field": "customer_quote.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "repair": "Repair",
              "lease": "Lease"
            }
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": "unit_price_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "valid_until",
            "label": "Valid until",
            "field": "valid_until",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/customer_quote_lost_reasons": {
      "get": {
        "operationId": "list_customer_quote_lost_reasons",
        "summary": "List customer quote lost reasons",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_quote_lost_reason",
        "summary": "Create a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer quote lost reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_lost_reasons/{uuid}": {
      "get": {
        "operationId": "get_customer_quote_lost_reason",
        "summary": "Retrieve a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote lost reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_quote_lost_reason",
        "summary": "Update a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote lost reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_quote_lost_reason",
        "summary": "Delete a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_lost_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_quote_lost_reason",
        "summary": "Activate a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote lost reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quote_lost_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_quote_lost_reason",
        "summary": "Deactivate a customer quote lost reason",
        "tags": [
          "customer_quote_lost_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLostReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote lost reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLostReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes": {
      "get": {
        "operationId": "list_customer_quotes",
        "summary": "List customer quotes",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "triage_rule[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A triage rule's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "won",
                  "lost",
                  "expired"
                ],
                "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Has gone out to the customer, whatever came of it since; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order; `expired`: Past its valid-until date",
                "x-enum-descriptions": [
                  "Being written; nothing has gone to the customer",
                  "Has gone out to the customer, whatever came of it since",
                  "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
                  "Marked lost, with a reason: the customer did not order",
                  "Past its valid-until date"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Won",
                  "Lost",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "lost_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer quote lost reason's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "each_request_once",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "One quote for each request: a repeat of a request is left out, unless its original is trashed and the trash is left out"
          },
          {
            "name": "customer_replied",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Quotes whose customer replied after they were sent, with no one yet marking the reply handled"
          },
          {
            "name": "archive_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer quote archive reason's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "won",
                  "lost"
                ],
                "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Sent to the customer, with no order or loss recorded yet; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order",
                "x-enum-descriptions": [
                  "Being written; nothing has gone to the customer",
                  "Sent to the customer, with no order or loss recorded yet",
                  "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
                  "Marked lost, with a reason: the customer did not order"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Won",
                  "Lost"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A salesperson's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "needs_review",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only drafts with something for a person to check before they go out, each named in `review_reasons`"
          },
          {
            "name": "unanswered[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of a salesperson"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "unassigned"
                    ],
                    "description": "`unassigned`: Drafts no salesperson holds",
                    "x-enum-descriptions": [
                      "Drafts no salesperson holds"
                    ],
                    "x-enum-labels": [
                      "Unassigned"
                    ]
                  }
                ]
              }
            },
            "description": "Only drafts the customer is still waiting on: not yet sent, won or lost, however many of their lines are priced or no-quoted, that the salespeople named hold, or with `unassigned` that no one holds",
            "explode": true
          },
          {
            "name": "autoquoting",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only quotes an autoquote attempt is working on now, which refuse changes to their lines until it ends"
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "sent_at",
                "-sent_at",
                "valid_until",
                "-valid_until",
                "priority",
                "-priority",
                "reply",
                "-reply",
                "updated_at",
                "-updated_at"
              ],
              "default": "-priority"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` sorts in its own order, routine, expedite, critical, aog, not the alphabet. `reply` puts the quotes a customer reply waits on first, by when they replied, then the rest by when they went out. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "state",
            "label": "State",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "won",
                "label": "Won"
              },
              {
                "value": "lost",
                "label": "Lost"
              },
              {
                "value": "expired",
                "label": "Expired"
              }
            ]
          },
          {
            "key": "status",
            "label": "Outcome",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "won",
                "label": "Won"
              },
              {
                "value": "lost",
                "label": "Lost"
              }
            ]
          },
          {
            "key": "needs_review",
            "label": "Needs review",
            "kind": "toggle"
          },
          {
            "key": "customer_replied",
            "label": "Customer replied",
            "kind": "toggle"
          },
          {
            "key": "autoquoting",
            "label": "Autoquoting",
            "kind": "toggle"
          },
          {
            "key": "each_request_once",
            "label": "Each request once",
            "kind": "toggle"
          },
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              },
              {
                "value": "ils",
                "label": "ILS"
              },
              {
                "value": "partsbase",
                "label": "PartsBase"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          },
          {
            "key": "lost_reason",
            "label": "Lost reason",
            "kind": "options",
            "references": [
              "customer_quote_lost_reason"
            ]
          },
          {
            "key": "archive_reason",
            "label": "Archive reason",
            "kind": "options",
            "references": [
              "customer_quote_archive_reason"
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "triage_rule",
            "label": "Triage rule",
            "kind": "options",
            "references": [
              "triage_rule"
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "channel",
            "label": "Channel",
            "field": "channel",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "manual": "Manual",
              "email": "Email",
              "phone": "Phone",
              "chat": "Chat",
              "ils": "ILS",
              "partsbase": "PartsBase",
              "marketplace": "Marketplace"
            }
          },
          {
            "key": "customer_email_address",
            "label": "Customer email address",
            "field": "customer_email_address_raw",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_reference",
            "label": "Customer reference",
            "field": "customer_reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fob",
            "label": "FOB",
            "field": "fob",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_notes",
            "label": "Customer notes",
            "field": "customer_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": "priority",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "valid_until",
            "label": "Valid until",
            "field": "valid_until",
            "sort": "valid_until",
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": "sent_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "won_at",
            "label": "Won",
            "field": "won_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "lost_at",
            "label": "Lost",
            "field": "lost_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "customer_replied_at",
            "label": "Customer replied",
            "field": "customer_replied_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "reply_handled_at",
            "label": "Reply handled",
            "field": "reply_handled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "states",
            "label": "State",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "won": "Won",
              "lost": "Lost"
            }
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Subtotal",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home subtotal",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_tax",
            "label": "Home tax",
            "field": "home_tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "grand_total",
            "label": "Total",
            "field": "grand_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "tax_applies",
            "label": "Taxable",
            "field": "tax_applies",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_destination",
            "label": "Tax destination",
            "field": "tax_destination.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_suppressed",
            "label": "Tax suppressed",
            "field": "tax_suppressed",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_exemption",
            "label": "Tax exemption",
            "field": "tax_exemption",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "field": "salesperson.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_term",
            "label": "Freight terms",
            "field": "freight_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lost_reason",
            "label": "Lost reason",
            "field": "lost_reason.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "priced",
            "label": "Priced",
            "field": "priced",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "orderable",
            "label": "Orderable",
            "field": "orderable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "sourceable",
            "label": "Sourceable",
            "field": "sourceable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "to_price",
            "label": "To price",
            "field": "unanswered_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted_quantity",
            "label": "Quoted qty",
            "field": "quantity_quoted",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "contingent_core_charge",
            "label": "Core charge if unreturned",
            "field": "contingent_core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "parts",
            "label": "Parts",
            "field": "part_summaries",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "duplicate_of",
            "label": "Duplicate of",
            "field": "duplicate_of.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_quote",
        "summary": "Create a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `rfq_lines`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_customer_quote_by_external_key",
        "summary": "Retrieve a customer quote by its external key",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `rfq_lines`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/summary": {
      "get": {
        "operationId": "get_customer_quote_summary",
        "summary": "Retrieve the customer quote summary",
        "description": "The quote list's rows totaled by named measures, grouped by a dimension, over a period of the days requests were received. Each request counts once, as Sales › Reports counts it: every summary narrows by `each_request_once`, so a repeat of a request is left out, unless its original is trashed and the trash is left out, and a trashed quote counts only when `include_trashed` asks for it, as on the list",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "requests",
                  "sent",
                  "won",
                  "lost",
                  "open",
                  "quoted",
                  "no_quote",
                  "win_rate",
                  "decided_win_rate",
                  "median_hours_to_quote",
                  "average_response_hours",
                  "quoted_value",
                  "valued_sent",
                  "average_quote_value",
                  "average_days_to_close"
                ],
                "x-enum-descriptions": [
                  "Requests received, each counted once: a repeat of a request is left out, unless its original is trashed and the trash is left out",
                  "Quotes sent to the customer, those since won or lost among them",
                  "Quotes sent that the customer ordered",
                  "Quotes sent and marked lost",
                  "Quotes sent and not yet won or lost",
                  "Quotes sent with a price on at least one line",
                  "Requests where no line was priced and at least one was answered No quote, counted whether sent or not, so they don't add to `sent`",
                  "Won quotes over quotes sent, as Sales › Reports counts it",
                  "Won quotes over quotes sent and since won or lost",
                  "The middle time from the customer's request to the quote sent, over quotes sent",
                  "The mean time from the customer's request to the quote sent, over quotes sent; a send timestamped earlier than the request counts as zero hours",
                  "The priced lines' totals of quotes sent, charges included, before tax, in the home currency at each quote's rate; a foreign quote with no rate on file is left out",
                  "Quotes sent with a price on a line whose value is counted: those in the home currency, and foreign ones with a rate on file",
                  "Quoted value over quotes sent with a value",
                  "The mean time from the quote sent to the customer's order, in days, over quotes sent and won; a win timestamped before the send counts as zero days"
                ],
                "x-enum-labels": [
                  "Requests",
                  "Sent",
                  "Won",
                  "Lost",
                  "Open",
                  "Quoted",
                  "No quote",
                  "Win rate",
                  "Win rate of decided quotes",
                  "Median hours to quote",
                  "Average response (hours)",
                  "Quoted value",
                  "Sent with a value",
                  "Average quote value",
                  "Average days to close"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "channel",
                "outcome",
                "salesperson",
                "response_time",
                "response_hours",
                "quote_value",
                "region",
                "us_state",
                "customer",
                "received_on",
                "received_on:day",
                "received_on:week",
                "received_on:month",
                "received_on:quarter",
                "received_on:year",
                "sent_on",
                "sent_on:day",
                "sent_on:week",
                "sent_on:month",
                "sent_on:quarter",
                "sent_on:year",
                "won_on",
                "won_on:day",
                "won_on:week",
                "won_on:month",
                "won_on:quarter",
                "won_on:year"
              ],
              "x-enum-descriptions": [
                "How the request arrived",
                "Draft, sent, won or lost",
                "Who holds the quote",
                "How long from the customer's request to the quote's first send; a send timestamped earlier than the request counts as zero hours, so under an hour",
                "How long from the customer's request to the quote's first send, in seven bands: five through the first day, over a day, and never sent; a send timestamped earlier than the request counts as zero hours, so under an hour",
                "The quote's priced lines' total, charges included, before tax, in the home currency's units at the quote's rate; a quote with no line priced, or foreign with no rate on file, is not priced",
                "Where the quote ships to, read from the country on the quote's ship-to address, not the customer's: the USA, Canada, Europe, Asia or the rest of the world",
                "The state a quote shipping to the USA ships to, as its ship-to address writes it; a quote shipping elsewhere, or naming no state, has none",
                "The customer asking",
                "When the customer sent the request",
                "When the customer sent the request, by day",
                "When the customer sent the request, by week",
                "When the customer sent the request, by month",
                "When the customer sent the request, by quarter",
                "When the customer sent the request, by year",
                "When the quote went to the customer",
                "When the quote went to the customer, by day",
                "When the quote went to the customer, by week",
                "When the quote went to the customer, by month",
                "When the quote went to the customer, by quarter",
                "When the quote went to the customer, by year",
                "When the customer ordered",
                "When the customer ordered, by day",
                "When the customer ordered, by week",
                "When the customer ordered, by month",
                "When the customer ordered, by quarter",
                "When the customer ordered, by year"
              ],
              "x-enum-labels": [
                "Channel",
                "Outcome",
                "Salesperson",
                "Response time",
                "Response time through a day",
                "Quote value",
                "Region",
                "US state",
                "Customer",
                "Received",
                "Received, by day",
                "Received, by week",
                "Received, by month",
                "Received, by quarter",
                "Received, by year",
                "Sent",
                "Sent, by day",
                "Sent, by week",
                "Sent, by month",
                "Sent, by quarter",
                "Sent, by year",
                "Won",
                "Won, by day",
                "Won, by week",
                "Won, by month",
                "Won, by quarter",
                "Won, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `received` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "triage_rule[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A triage rule's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "won",
                  "lost",
                  "expired"
                ],
                "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Has gone out to the customer, whatever came of it since; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order; `expired`: Past its valid-until date",
                "x-enum-descriptions": [
                  "Being written; nothing has gone to the customer",
                  "Has gone out to the customer, whatever came of it since",
                  "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
                  "Marked lost, with a reason: the customer did not order",
                  "Past its valid-until date"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Won",
                  "Lost",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "lost_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer quote lost reason's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "each_request_once",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "One quote for each request: a repeat of a request is left out, unless its original is trashed and the trash is left out"
          },
          {
            "name": "customer_replied",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Quotes whose customer replied after they were sent, with no one yet marking the reply handled"
          },
          {
            "name": "archive_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer quote archive reason's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "won",
                  "lost"
                ],
                "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Sent to the customer, with no order or loss recorded yet; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order",
                "x-enum-descriptions": [
                  "Being written; nothing has gone to the customer",
                  "Sent to the customer, with no order or loss recorded yet",
                  "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
                  "Marked lost, with a reason: the customer did not order"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Won",
                  "Lost"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A salesperson's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "needs_review",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only drafts with something for a person to check before they go out, each named in `review_reasons`"
          },
          {
            "name": "unanswered[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of a salesperson"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "unassigned"
                    ],
                    "description": "`unassigned`: Drafts no salesperson holds",
                    "x-enum-descriptions": [
                      "Drafts no salesperson holds"
                    ],
                    "x-enum-labels": [
                      "Unassigned"
                    ]
                  }
                ]
              }
            },
            "description": "Only drafts the customer is still waiting on: not yet sent, won or lost, however many of their lines are priced or no-quoted, that the salespeople named hold, or with `unassigned` that no one holds",
            "explode": true
          },
          {
            "name": "autoquoting",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only quotes an autoquote attempt is working on now, which refuse changes to their lines until it ends"
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}": {
      "get": {
        "operationId": "get_customer_quote",
        "summary": "Retrieve a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `rfq_lines`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_quote",
        "summary": "Update a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `rfq_lines`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/align_lines": {
      "post": {
        "operationId": "align_lines_customer_quote",
        "summary": "Align the lines of a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "align_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/apply_tax": {
      "post": {
        "operationId": "apply_tax_customer_quote",
        "summary": "Apply tax to a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply_tax",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/ask": {
      "post": {
        "operationId": "ask_customer_quote",
        "summary": "Ask a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteAsk"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ask",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/autoquote": {
      "post": {
        "operationId": "autoquote_customer_quote",
        "summary": "Autoquote a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteAttemptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteAutoquote"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The autoquote attempt it made, queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteAttempt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "autoquote",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/autoquote_attempts": {
      "get": {
        "operationId": "list_autoquote_attempts",
        "summary": "List autoquote attempts",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteAttemptListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteAttemptList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/autoquote_attempts/{uuid}": {
      "get": {
        "operationId": "get_autoquote_attempt",
        "summary": "Retrieve an autoquote attempt",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteAttemptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The autoquote attempt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteAttempt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/copy": {
      "post": {
        "operationId": "copy_customer_quote",
        "summary": "Copy a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The customer quote it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "copy",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/email": {
      "post": {
        "operationId": "email_customer_quote",
        "summary": "Email a customer quote",
        "description": "Emails the quote's PDF from the organization's sending address, tied to the quote's conversation and narrated `emailed`. A quote's first email replies on the RFQ email it was asked for in when the customer wrote that to us themselves, in To or Cc, with no forward, marketplace, mailing list or bulk send between, and starts its own conversation otherwise; either way the answer comes back as a reply. A draft is marked sent first, as `send` would; a sent quote goes out again unchanged",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/external_keys": {
      "get": {
        "operationId": "list_customer_quote_external_keys",
        "summary": "List a customer quote's external keys",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_customer_quote_external_key",
        "summary": "Retrieve a customer quote by its external key",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_quote_external_key",
        "summary": "Link a customer quote's external key",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_quote_external_key",
        "summary": "Unlink a customer quote's external key",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/handle_reply": {
      "post": {
        "operationId": "handle_reply_customer_quote",
        "summary": "Handle the reply to a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "handle_reply",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/import_rfq_lines": {
      "post": {
        "operationId": "import_rfq_lines_customer_quote",
        "summary": "Import RFQ lines into a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteImportRfqLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "import_rfq_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/lines": {
      "get": {
        "operationId": "list_customer_quote_lines",
        "summary": "List customer quote lines",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "repair",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourceable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only part lines answering no RFQ line that no open sourcing request covers and no order holds, here or in another system, which `send_to_sourcing` and `ask` take"
          },
          {
            "name": "orderable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only priced lines no sales order, work order or order in another system holds yet, which `POST /customer_quotes/{uuid}/order` takes"
          },
          {
            "name": "work_orderable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only priced repair lines naming a catalog part, priced from no template since marked inactive nor one with a DER repair task where they allow no DER repairs, that no sales order, work order or order in another system holds yet, which `POST /customer_quotes/{uuid}/open_work_orders` takes"
          },
          {
            "name": "unrequested",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines answering no RFQ line, beside whatever `response[]` asks"
          },
          {
            "name": "customer_rfq_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer RFQ line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpriced",
                  "priced",
                  "no_quote",
                  "not_requested"
                ],
                "description": "`unpriced`: Offered with neither a price nor a no-quote reason yet; `priced`: Offered at a unit price; `no_quote`: Declined, with a no-quote reason; `not_requested`: Offered unasked; it answers no line of the customer's RFQ",
                "x-enum-descriptions": [
                  "Offered with neither a price nor a no-quote reason yet",
                  "Offered at a unit price",
                  "Declined, with a no-quote reason",
                  "Offered unasked; it answers no line of the customer's RFQ"
                ],
                "x-enum-labels": [
                  "Unpriced",
                  "Priced",
                  "No quote",
                  "Not requested"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "response",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "unpriced",
                "label": "Unpriced"
              },
              {
                "value": "priced",
                "label": "Priced"
              },
              {
                "value": "no_quote",
                "label": "No quote"
              },
              {
                "value": "not_requested",
                "label": "Not requested"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_customer_quote_line",
        "summary": "Create a customer quote line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_customer_quote_line",
        "summary": "Retrieve a customer quote line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_quote_line",
        "summary": "Update a customer quote line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_quote_line",
        "summary": "Delete a customer quote line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/lose": {
      "post": {
        "operationId": "lose_customer_quote",
        "summary": "Lose a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteLose"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "lose",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/open_work_orders": {
      "post": {
        "operationId": "open_work_orders_customer_quote",
        "summary": "Open work orders from repair lines",
        "description": "Opens a work order for the customer's unit from each repair line picked, and wins the quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteOpenWorkOrders"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work orders it opened, in the lines' order, each saying in `template_caution` a template applying at opening it passed over",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "open_work_orders",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/order": {
      "post": {
        "operationId": "order_customer_quote",
        "summary": "Order a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sales order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "order",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_customer_quote",
        "summary": "Preview a customer quote's email",
        "description": "Renders the email `POST /customer_quotes/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and the quote stays as it is",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuotePreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/prices": {
      "get": {
        "operationId": "list_prices",
        "summary": "List prices",
        "description": "The part price that applies to this quote at the asked quantity and request type, or for a repair the service's repair price, what the part was last quoted and sold at, to this quote's customer and to anyone, and the year's average in the quote's currency",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a part"
              }
            },
            "description": "The part to price; required, and one at a time",
            "explode": true
          },
          {
            "name": "asked_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a condition"
              }
            },
            "description": "The condition being quoted, one at a time, whose prices come first; another's still shows, wearing its own code",
            "explode": true
          },
          {
            "name": "asked_quantity[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "The quantity being quoted, a number greater than 0, one at a time; the price that applies is the highest quantity break it reaches. Left out, 1",
            "explode": true
          },
          {
            "name": "asked_request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "repair",
                  "lease"
                ],
                "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back; `repair`: A repair of the customer's own unit; `lease`: Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance",
                "x-enum-descriptions": [
                  "An outright sale: the unit changes hands for its price, with no core owed",
                  "An exchange: a serviceable unit now, with a core unit owed back",
                  "A repair of the customer's own unit",
                  "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
                ],
                "x-enum-labels": [
                  "Outright",
                  "Exchange",
                  "Repair",
                  "Lease"
                ]
              }
            },
            "description": "The request type being quoted, one at a time: an exchange takes an exchange part price, and a repair the repair price for `asked_repair_service[]`, with no part price. Left out, outright",
            "explode": true
          },
          {
            "name": "asked_repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a repair service"
              }
            },
            "description": "The repair service being quoted, one at a time, whose repair price on the part applies to a repair; a repair naming none has no set price",
            "explode": true
          },
          {
            "name": "asked_supply[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an inventory line or a vendor inventory line"
              }
            },
            "description": "The inventory line or vendor inventory line being quoted, one at a time, whose own part price comes before every other",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/record_requests": {
      "post": {
        "operationId": "record_requests_customer_quote",
        "summary": "Record requests on a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteRecordRequests"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_requests",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/reopen": {
      "post": {
        "operationId": "reopen_customer_quote",
        "summary": "Reopen a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reopen",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/resolve_part_numbers": {
      "post": {
        "operationId": "resolve_part_numbers_customer_quote",
        "summary": "Resolve the part numbers on a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteResolvePartNumbers"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resolve_part_numbers",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_customer_quote",
        "summary": "Revise the lines of a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/revise_rfq_lines": {
      "post": {
        "operationId": "revise_rfq_lines_customer_quote",
        "summary": "Revise the RFQ lines of a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteReviseRfqLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_rfq_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/rfq_lines": {
      "get": {
        "operationId": "list_customer_rfq_lines",
        "summary": "List customer RFQ lines",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourceable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only RFQ lines no open sourcing request covers and no ordered line answers, which `send_to_sourcing` and `ask` take"
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unanswered",
                  "quoted",
                  "declined"
                ],
                "description": "`unanswered`: No answer recorded yet; `quoted`: Answered with a price; `declined`: Answered with no quote",
                "x-enum-descriptions": [
                  "No answer recorded yet",
                  "Answered with a price",
                  "Answered with no quote"
                ],
                "x-enum-labels": [
                  "Unanswered",
                  "Quoted",
                  "No quote"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRfqLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "response",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "unanswered",
                "label": "Unanswered"
              },
              {
                "value": "quoted",
                "label": "Quoted"
              },
              {
                "value": "declined",
                "label": "No quote"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_customer_rfq_line",
        "summary": "Create a customer RFQ line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRfqLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/rfq_lines/{uuid}": {
      "get": {
        "operationId": "get_customer_rfq_line",
        "summary": "Retrieve a customer RFQ line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_rfq_line",
        "summary": "Update a customer RFQ line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRfqLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_rfq_line",
        "summary": "Delete a customer RFQ line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/rfq_lines/{uuid}/quote": {
      "post": {
        "operationId": "quote_customer_rfq_line",
        "summary": "Quote a customer RFQ line",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRfqLineQuote"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer quote line it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "No line was added: the RFQ line's one unpriced quote line, given the no quote reason and notes to customer when sent",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "quote",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/send": {
      "post": {
        "operationId": "send_customer_quote",
        "summary": "Send a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteSend"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/send_to_avsight": {
      "post": {
        "operationId": "send_to_avsight_customer_quote",
        "summary": "Send a customer quote to AvSight",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send_to_avsight",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/send_to_sourcing": {
      "post": {
        "operationId": "send_to_sourcing_customer_quote",
        "summary": "Send a customer quote to sourcing",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteSendToSourcing"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send_to_sourcing",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/shareable_files": {
      "get": {
        "operationId": "list_customer_quote_shareable_files",
        "summary": "List shareable files",
        "description": "The files a quote offers to share, grouped as the people it is shared with read them: its printed form, its own files, then each line's and each unit's",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareableFileListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareableFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/stop_autoquote": {
      "post": {
        "operationId": "stop_autoquote_customer_quote",
        "summary": "Stop autoquoting a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "stop_autoquote",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-module": "autoquote",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/suppress_tax": {
      "post": {
        "operationId": "suppress_tax_customer_quote",
        "summary": "Suppress tax on a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "suppress_tax",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{customer_quote_uuid}/trash": {
      "post": {
        "operationId": "trash_customer_quote",
        "summary": "Trash a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_customer_quote",
        "summary": "Restore a customer quote",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "customer_quote_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_quotes/{uuid}/win_on_external_order": {
      "post": {
        "operationId": "win_on_external_order_customer_quote",
        "summary": "Win a customer quote on an external order",
        "tags": [
          "customer_quotes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerQuoteField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerQuoteWinOnExternalOrder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerQuote"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "win_on_external_order",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_repair_prices": {
      "get": {
        "operationId": "list_customer_repair_prices",
        "summary": "List customer repair prices",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company_segment[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company segment's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at",
                "created_at",
                "-created_at"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "repair_service",
            "label": "Service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "company_segment",
            "label": "Segment",
            "kind": "options",
            "references": [
              "company_segment"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "minimum_quantity",
            "label": "Min qty",
            "field": "minimum_quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "lead_time",
            "label": "Lead time",
            "field": "lead_time.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_from",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "audience",
            "label": "Priced for",
            "field": "audience",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_repair_price",
        "summary": "Create a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRepairPriceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_repair_prices/{uuid}": {
      "get": {
        "operationId": "get_customer_repair_price",
        "summary": "Retrieve a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_repair_price",
        "summary": "Update a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRepairPriceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_repair_price",
        "summary": "Delete a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_repair_prices/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_repair_price",
        "summary": "Activate a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_repair_prices/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_repair_price",
        "summary": "Deactivate a customer repair price",
        "tags": [
          "customer_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_return_lines": {
      "get": {
        "operationId": "list_customer_return_lines_across_documents",
        "summary": "List customer return lines across every document",
        "tags": [
          "customer_return_lines"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Authorized; units may still arrive and be credited; `closed`: Finished; what came back uncredited stays with us; `cancelled`: Called off before anything arrived",
                "x-enum-descriptions": [
                  "Authorized; units may still arrive and be credited",
                  "Finished; what came back uncredited stays with us",
                  "Called off before anything arrived"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "received"
                ],
                "description": "`outstanding`: Some of the line's quantity has yet to arrive; `received`: The line's whole quantity has arrived",
                "x-enum-descriptions": [
                  "Some of the line's quantity has yet to arrive",
                  "The line's whole quantity has arrived"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "return",
                "-return",
                "line",
                "-line",
                "reason",
                "-reason",
                "customer_return_status",
                "-customer_return_status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `customer_return_status` sorts in its own order, open, closed, cancelled, not the alphabet. `return` sorts only beside a single `sales_order[]`. `line` sorts only beside a single `sales_order[]`. `reason` sorts only beside a single `sales_order[]`. `customer_return_status` sorts only beside a single `sales_order[]`. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "references": [
              "customer_return_reason"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "unit_price",
            "label": "Credit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "received",
            "label": "Received",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding quantity",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Reason",
            "field": "reason",
            "sort": "reason",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "customer_return",
            "label": "Customer return",
            "field": "customer_return.identifier",
            "sort": "return",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "customer_return_status",
            "label": "Customer return status",
            "field": "customer_return_status",
            "sort": "customer_return_status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "closed": "Closed",
              "cancelled": "Cancelled"
            },
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "line_position",
            "label": "Line",
            "field": "line_position",
            "sort": "line",
            "kind": "number",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "release_line",
            "label": "Shipped on",
            "field": "release.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/customer_return_reasons": {
      "get": {
        "operationId": "list_customer_return_reasons",
        "summary": "List customer return reasons",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_return_reason",
        "summary": "Create a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer return reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_return_reasons/{uuid}": {
      "get": {
        "operationId": "get_customer_return_reason",
        "summary": "Retrieve a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_return_reason",
        "summary": "Update a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer return reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_customer_return_reason",
        "summary": "Delete a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_return_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_return_reason",
        "summary": "Activate a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_return_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_return_reason",
        "summary": "Deactivate a customer return reason",
        "tags": [
          "customer_return_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns": {
      "get": {
        "operationId": "list_customer_returns",
        "summary": "List customer returns",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Authorized; units may still arrive and be credited; `closed`: Finished; what came back uncredited stays with us; `cancelled`: Called off before anything arrived",
                "x-enum-descriptions": [
                  "Authorized; units may still arrive and be credited",
                  "Finished; what came back uncredited stays with us",
                  "Called off before anything arrived"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sales_order",
            "label": "Order",
            "field": "sales_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "credit_memo",
            "label": "Credit memo",
            "field": "credit_memo.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "credit_memo_count",
            "label": "Credit memos",
            "field": "credit_memo_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "creditable_quantity",
            "label": "Creditable qty",
            "field": "quantity_creditable",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "received",
            "label": "Received",
            "field": "received",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "outstanding",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "receivable",
            "label": "Receivable",
            "field": "receivable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/customer_returns/{uuid}": {
      "get": {
        "operationId": "get_customer_return",
        "summary": "Retrieve a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `lines`, `returnable_inventory_lines`, or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_return",
        "summary": "Update a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `lines`, `returnable_inventory_lines`, or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_customer_return",
        "summary": "Cancel a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/cancel_exchange": {
      "post": {
        "operationId": "cancel_exchange_customer_return",
        "summary": "Cancel the exchange on a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnCancelExchange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel_exchange",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/close": {
      "post": {
        "operationId": "close_customer_return",
        "summary": "Close a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_customer_return",
        "summary": "Create a receipt for a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/credit": {
      "post": {
        "operationId": "credit_customer_return",
        "summary": "Credit a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "credit",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{customer_return_uuid}/lines": {
      "get": {
        "operationId": "list_customer_return_lines",
        "summary": "List customer return lines",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "customer_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Authorized; units may still arrive and be credited; `closed`: Finished; what came back uncredited stays with us; `cancelled`: Called off before anything arrived",
                "x-enum-descriptions": [
                  "Authorized; units may still arrive and be credited",
                  "Finished; what came back uncredited stays with us",
                  "Called off before anything arrived"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "received"
                ],
                "description": "`outstanding`: Some of the line's quantity has yet to arrive; `received`: The line's whole quantity has arrived",
                "x-enum-descriptions": [
                  "Some of the line's quantity has yet to arrive",
                  "The line's whole quantity has arrived"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "line",
                "-line",
                "quantity",
                "-quantity",
                "outstanding_quantity",
                "-outstanding_quantity",
                "unit_price_cents",
                "-unit_price_cents",
                "reason",
                "-reason",
                "release",
                "-release",
                "part_description",
                "-part_description",
                "quantity_received",
                "-quantity_received",
                "updated_at",
                "-updated_at"
              ],
              "default": "line"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "receipt_state",
            "label": "Receipt",
            "kind": "options",
            "options": [
              {
                "value": "outstanding",
                "label": "Outstanding"
              },
              {
                "value": "received",
                "label": "Received"
              }
            ]
          },
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "references": [
              "customer_return_reason"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "unit_price",
            "label": "Credit price",
            "field": "unit_price_cents",
            "sort": "unit_price_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "received",
            "label": "Received",
            "field": "quantity_received",
            "sort": "quantity_received",
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding quantity",
            "field": "quantity_outstanding",
            "sort": "outstanding_quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": "part_description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Reason",
            "field": "reason",
            "sort": "reason",
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_return",
            "label": "Customer return",
            "field": "customer_return.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_return_status",
            "label": "Customer return status",
            "field": "customer_return_status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "line_position",
            "label": "Line",
            "field": "line_position",
            "sort": "line",
            "kind": "number",
            "currency": null
          },
          {
            "key": "release_line",
            "label": "Shipped on",
            "field": "release.identifier",
            "sort": "release",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/customer_returns/{customer_return_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_customer_return_line",
        "summary": "Retrieve a customer return line",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "customer_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_return_line",
        "summary": "Update a customer return line",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "customer_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer return line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturnLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{uuid}/return_to_vendor": {
      "post": {
        "operationId": "return_to_vendor_customer_return",
        "summary": "Send the returned units of a customer return back to their vendors",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReturnReturnToVendor"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return_to_vendor",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_returns/{customer_return_uuid}/trash": {
      "post": {
        "operationId": "trash_customer_return",
        "summary": "Trash a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "customer_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_customer_return",
        "summary": "Restore a customer return",
        "tags": [
          "customer_returns"
        ],
        "parameters": [
          {
            "name": "customer_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_rfq_lines": {
      "get": {
        "operationId": "list_customer_rfq_lines_across_documents",
        "summary": "List customer RFQ lines across every document",
        "tags": [
          "customer_rfq_lines"
        ],
        "parameters": [
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "each_request_once",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Lines of one quote for each request: a repeat of a request is left out, unless its original is trashed"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerRfqLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "each_request_once",
            "label": "Each request once",
            "kind": "toggle"
          }
        ]
      }
    },
    "/customer_rfq_lines/summary": {
      "get": {
        "operationId": "get_customer_rfq_line_summary",
        "summary": "Retrieve the customer RFQ line summary",
        "description": "Part demand: the RFQ lines of every request totaled by named measures, grouped by part or by when the request was received, over a period of the days requests were received. Each request counts once, as Sales › Reports counts it: every summary narrows by `each_request_once`, and a trashed quote's lines are never counted",
        "tags": [
          "customer_rfq_lines"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "requests",
                  "quantity_requested",
                  "quoted",
                  "no_quotes",
                  "quote_rate",
                  "quantity_on_hand"
                ],
                "x-enum-descriptions": [
                  "Requests asking for the part, each counted once however many of its lines ask",
                  "Units the requests asked for, a line stating no quantity adding none",
                  "Requests for the part whose quote was sent with a price on a line answering it",
                  "Requests for the part answered No quote, whether the quote was sent or not",
                  "Times quoted over times requested",
                  "Units of the parts asked for on hand today, as the inventory summary counts them (our own, active, not spent), each part counted once however often it was asked for; a part number typed with no part has none"
                ],
                "x-enum-labels": [
                  "Times requested",
                  "Quantity requested",
                  "Times quoted",
                  "No quotes",
                  "Quote rate",
                  "Quantity on hand"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "part",
                "received_on",
                "received_on:day",
                "received_on:week",
                "received_on:month",
                "received_on:quarter",
                "received_on:year"
              ],
              "x-enum-descriptions": [
                "The part asked for: its catalog part, else the part number as typed, one group however its spacing, dashes and case differ, named as it was first typed",
                "When the customer sent the request",
                "When the customer sent the request, by day",
                "When the customer sent the request, by week",
                "When the customer sent the request, by month",
                "When the customer sent the request, by quarter",
                "When the customer sent the request, by year"
              ],
              "x-enum-labels": [
                "Part",
                "Received",
                "Received, by day",
                "Received, by week",
                "Received, by month",
                "Received, by quarter",
                "Received, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `received` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "each_request_once",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Lines of one quote for each request: a repeat of a request is left out, unless its original is trashed"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer RFQ line summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerRfqLineSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/customer_tax_exemptions": {
      "get": {
        "operationId": "list_customer_tax_exemptions",
        "summary": "List customer tax exemptions",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "resale",
                  "common_carrier",
                  "aircraft_parts",
                  "export",
                  "government",
                  "manufacturing",
                  "charitable",
                  "other"
                ],
                "description": "`resale`: The customer buys to resell, under a resale certificate; `common_carrier`: The customer is a common carrier, such as an airline; `aircraft_parts`: Parts for aircraft that the jurisdiction exempts; `export`: The goods leave the country; `government`: The customer is a government body; `manufacturing`: The parts go into manufacturing; `charitable`: The customer is a tax-exempt nonprofit; `other`: Another reason, stated on the certificate",
                "x-enum-descriptions": [
                  "The customer buys to resell, under a resale certificate",
                  "The customer is a common carrier, such as an airline",
                  "Parts for aircraft that the jurisdiction exempts",
                  "The goods leave the country",
                  "The customer is a government body",
                  "The parts go into manufacturing",
                  "The customer is a tax-exempt nonprofit",
                  "Another reason, stated on the certificate"
                ],
                "x-enum-labels": [
                  "Resale",
                  "Common carrier",
                  "Aircraft parts",
                  "Export",
                  "Government",
                  "Manufacturing",
                  "Charitable",
                  "Other"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "country_code",
                "-country_code",
                "expires_on",
                "-expires_on",
                "reason",
                "-reason",
                "updated_at",
                "-updated_at"
              ],
              "default": "country_code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `reason` sorts only beside a single company's `customer[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemptionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "options": [
              {
                "value": "resale",
                "label": "Resale"
              },
              {
                "value": "common_carrier",
                "label": "Common carrier"
              },
              {
                "value": "aircraft_parts",
                "label": "Aircraft parts"
              },
              {
                "value": "export",
                "label": "Export"
              },
              {
                "value": "government",
                "label": "Government"
              },
              {
                "value": "manufacturing",
                "label": "Manufacturing"
              },
              {
                "value": "charitable",
                "label": "Charitable"
              },
              {
                "value": "other",
                "label": "Other"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "certificate_number",
            "label": "Certificate number",
            "field": "certificate_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_on",
            "sort": "expires_on",
            "kind": "text",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Reason",
            "field": "reason",
            "sort": "reason",
            "kind": "text",
            "currency": null,
            "labels": {
              "resale": "Resale",
              "common_carrier": "Common carrier",
              "aircraft_parts": "Aircraft parts",
              "export": "Export",
              "government": "Government",
              "manufacturing": "Manufacturing",
              "charitable": "Charitable",
              "other": "Other"
            },
            "beside": [
              "customer"
            ]
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "jurisdiction",
            "label": "Jurisdiction",
            "field": "jurisdiction",
            "sort": "country_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "statement",
            "label": "Statement",
            "field": "statement_text",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_customer_tax_exemption",
        "summary": "Create a customer tax exemption",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerTaxExemptionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer tax exemption",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemption"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_tax_exemptions/{uuid}": {
      "get": {
        "operationId": "get_customer_tax_exemption",
        "summary": "Retrieve a customer tax exemption",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer tax exemption",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemption"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_customer_tax_exemption",
        "summary": "Update a customer tax exemption",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerTaxExemptionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The customer tax exemption",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemption"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_tax_exemptions/{uuid}/activate": {
      "post": {
        "operationId": "activate_customer_tax_exemption",
        "summary": "Activate a customer tax exemption",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer tax exemption",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemption"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/customer_tax_exemptions/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_customer_tax_exemption",
        "summary": "Deactivate a customer tax exemption",
        "tags": [
          "customer_tax_exemptions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerTaxExemptionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The customer tax exemption",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerTaxExemption"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboard_opening": {
      "get": {
        "operationId": "get_dashboard_opening",
        "summary": "Retrieve the dashboard opening",
        "tags": [
          "dashboard_opening"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardOpeningField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The dashboard opening",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardOpening"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/dashboards": {
      "get": {
        "operationId": "list_dashboards",
        "summary": "List dashboards",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on each row; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "period",
            "label": "Period",
            "field": "period",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "last_7_days": "Last 7 days",
              "last_30_days": "Last 30 days",
              "last_90_days": "Last 90 days",
              "last_12_months": "Last 12 months",
              "month_to_date": "Month to date",
              "quarter_to_date": "Quarter to date",
              "year_to_date": "Year to date"
            }
          },
          {
            "key": "creator",
            "label": "Created by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated",
            "label": "Updated",
            "field": "updated_at",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_dashboard",
        "summary": "Create a dashboard",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dashboard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{uuid}": {
      "get": {
        "operationId": "get_dashboard",
        "summary": "Retrieve a dashboard",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The dashboard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_dashboard",
        "summary": "Update a dashboard",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dashboard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_dashboard",
        "summary": "Delete a dashboard",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{uuid}/arrange": {
      "post": {
        "operationId": "arrange_dashboard",
        "summary": "Arrange a dashboard",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardArrange"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dashboard",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "arrange",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{dashboard_uuid}/audiences": {
      "get": {
        "operationId": "list_dashboard_audiences",
        "summary": "List dashboard audiences",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardAudienceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardAudienceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_dashboard_audience",
        "summary": "Create a dashboard audience",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardAudienceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dashboard audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{dashboard_uuid}/audiences/{uuid}": {
      "get": {
        "operationId": "get_dashboard_audience",
        "summary": "Retrieve a dashboard audience",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The dashboard audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_dashboard_audience",
        "summary": "Update a dashboard audience",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardAudienceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dashboard audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_dashboard_audience",
        "summary": "Delete a dashboard audience",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{uuid}/refresh_tiles": {
      "post": {
        "operationId": "refresh_tiles_dashboard",
        "summary": "Reread every tile of a dashboard",
        "description": "Reads each tile's summary again in the background, each under a minute's limit rather than a request's five seconds; each tile keeps the figures it last read until new ones arrive. While it runs the dashboard's `refreshing_since` says when it began, and asking again then starts nothing new. It is refused until 15 minutes after the last finished refresh began (`last_refreshed_at`), the shortest schedule a dashboard may take",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tiles",
                  "tiles.result",
                  "audiences"
                ]
              }
            },
            "description": "Inline `tiles`, `tiles.result`, or `audiences` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The dashboard, its refresh under way",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Dashboard"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "refresh_tiles",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{dashboard_uuid}/tiles": {
      "get": {
        "operationId": "list_dashboard_tiles",
        "summary": "List dashboard tiles",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `x`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "result"
                ]
              }
            },
            "description": "Inline `result` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardTileListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_dashboard_tile",
        "summary": "Create a dashboard tile",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "result"
                ]
              }
            },
            "description": "Inline `result` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardTileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardTileCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The dashboard tile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/dashboards/{dashboard_uuid}/tiles/{uuid}": {
      "get": {
        "operationId": "get_dashboard_tile",
        "summary": "Retrieve a dashboard tile",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "result"
                ]
              }
            },
            "description": "Inline `result` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardTileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The dashboard tile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_dashboard_tile",
        "summary": "Update a dashboard tile",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "result"
                ]
              }
            },
            "description": "Inline `result` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DashboardTileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DashboardTileUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The dashboard tile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DashboardTile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_dashboard_tile",
        "summary": "Delete a dashboard tile",
        "tags": [
          "dashboards"
        ],
        "parameters": [
          {
            "name": "dashboard_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/default_issue_parts": {
      "get": {
        "operationId": "list_default_issue_parts",
        "summary": "List default issue parts",
        "tags": [
          "default_issue_parts"
        ],
        "parameters": [
          {
            "name": "order_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "repair_order",
                  "purchase_order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DefaultIssuePartListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefaultIssuePartList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "order_type",
            "label": "Order type",
            "kind": "options",
            "options": [
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "order_type",
            "label": "Order type",
            "field": "order_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "repair_order": "Repair order",
              "purchase_order": "Purchase order"
            }
          },
          {
            "key": "market_value",
            "label": "Market value",
            "field": "market_value_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "issued_part_number",
            "label": "Part",
            "field": "issued_part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "issued_part_description",
            "label": "Description",
            "field": "issued_part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Per unit",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_default_issue_part",
        "summary": "Create a default issue part",
        "tags": [
          "default_issue_parts"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DefaultIssuePartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DefaultIssuePartCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The default issue part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefaultIssuePart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/default_issue_parts/{uuid}": {
      "get": {
        "operationId": "get_default_issue_part",
        "summary": "Retrieve a default issue part",
        "tags": [
          "default_issue_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DefaultIssuePartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The default issue part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefaultIssuePart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_default_issue_part",
        "summary": "Update a default issue part",
        "tags": [
          "default_issue_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DefaultIssuePartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DefaultIssuePartUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The default issue part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DefaultIssuePart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_default_issue_part",
        "summary": "Delete a default issue part",
        "tags": [
          "default_issue_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/demands": {
      "get": {
        "operationId": "list_demands",
        "summary": "List demands",
        "tags": [
          "demands"
        ],
        "parameters": [
          {
            "name": "need_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sales_order_line",
                  "repair_order_line",
                  "vendor_exchange",
                  "vendor_return_line",
                  "repair_order_issue",
                  "purchase_order_issue",
                  "work_order_material"
                ],
                "x-enum-labels": [
                  "Sales order",
                  "Repair order",
                  "Exchange core",
                  "Return to vendor",
                  "Parts for repair",
                  "Parts for purchase",
                  "Parts for a work order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourced[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unsourced",
                  "requested"
                ],
                "description": "`unsourced`: No sourcing request stands for what is still needed; `requested`: A sourcing request stands for what is still needed, open or closed after it bought",
                "x-enum-descriptions": [
                  "No sourcing request stands for what is still needed",
                  "A sourcing request stands for what is still needed, open or closed after it bought"
                ],
                "x-enum-labels": [
                  "Unsourced",
                  "Requested"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
                "x-enum-descriptions": [
                  "Being shipped and billed, from the moment it is created",
                  "Finished: shipped and billed, or closed early by hand",
                  "Called off; nothing more ships or bills"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "need_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: Its need-by day has passed and it is still needed",
                "x-enum-descriptions": [
                  "Its need-by day has passed and it is still needed"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_closed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Also list needs already fulfilled, and those whose order closed or was cancelled"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "need_by",
                "-need_by",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "need_by"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sourcing_request"
                ]
              }
            },
            "description": "Inline `sourcing_request` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DemandListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DemandList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "need_type",
            "label": "Needed for",
            "kind": "options",
            "options": [
              {
                "value": "sales_order_line",
                "label": "Sales order"
              },
              {
                "value": "repair_order_line",
                "label": "Repair order"
              },
              {
                "value": "vendor_exchange",
                "label": "Exchange core"
              },
              {
                "value": "vendor_return_line",
                "label": "Return to vendor"
              },
              {
                "value": "repair_order_issue",
                "label": "Parts for repair"
              },
              {
                "value": "purchase_order_issue",
                "label": "Parts for purchase"
              },
              {
                "value": "work_order_material",
                "label": "Parts for a work order"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "sourced",
            "label": "Sourcing",
            "kind": "options",
            "options": [
              {
                "value": "unsourced",
                "label": "Unsourced"
              },
              {
                "value": "requested",
                "label": "Requested"
              }
            ]
          },
          {
            "key": "order_status",
            "label": "Order status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "need_by",
            "label": "Need by",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "include_closed",
            "label": "Include fulfilled & closed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "needed",
            "label": "Needed",
            "field": "quantity_remaining",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": "need_by",
            "kind": "date",
            "currency": null
          },
          {
            "key": "wanted_by",
            "label": "Needed for",
            "field": "need_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "sales_order_line": "Sales order",
              "repair_order_line": "Repair order",
              "vendor_exchange": "Exchange core",
              "vendor_return_line": "Return to vendor",
              "repair_order_issue": "Parts for repair",
              "purchase_order_issue": "Parts for purchase",
              "work_order_material": "Parts for a work order"
            }
          },
          {
            "key": "line",
            "label": "Line",
            "field": "needed_for",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "record",
            "label": "Order",
            "field": "order",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "counterparty.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "on_hand_same",
            "label": "On hand (same cond.)",
            "field": "part_quantity_available_in_condition",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "on_hand_any",
            "label": "On hand (any cond.)",
            "field": "part_quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "inbound",
            "label": "Inbound",
            "field": "part_quantity_inbound",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sourcing",
            "label": "Sourcing",
            "field": "sourcing_request.status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "expand": "sourcing_request",
            "labels": {
              "open": "Open",
              "closed": "Closed"
            }
          }
        ]
      }
    },
    "/direct_rfq_condition_answers": {
      "get": {
        "operationId": "list_direct_rfq_condition_answers",
        "summary": "List direct RFQ condition answers",
        "tags": [
          "direct_rfq_condition_answers"
        ],
        "parameters": [
          {
            "name": "direct_rfq_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A direct RFQ condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionAnswerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqConditionAnswerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_direct_rfq_condition_answer",
        "summary": "Create a direct RFQ condition answer",
        "tags": [
          "direct_rfq_condition_answers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqConditionAnswerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The direct RFQ condition answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqConditionAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_condition_answers/{uuid}": {
      "get": {
        "operationId": "get_direct_rfq_condition_answer",
        "summary": "Retrieve a direct RFQ condition answer",
        "tags": [
          "direct_rfq_condition_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The direct RFQ condition answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqConditionAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_direct_rfq_condition_answer",
        "summary": "Delete a direct RFQ condition answer",
        "tags": [
          "direct_rfq_condition_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_conditions": {
      "get": {
        "operationId": "list_direct_rfq_conditions",
        "summary": "List direct RFQ conditions",
        "tags": [
          "direct_rfq_conditions"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqConditionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_direct_rfq_condition",
        "summary": "Create a direct RFQ condition",
        "tags": [
          "direct_rfq_conditions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqConditionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The direct RFQ condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_conditions/{uuid}": {
      "get": {
        "operationId": "get_direct_rfq_condition",
        "summary": "Retrieve a direct RFQ condition",
        "tags": [
          "direct_rfq_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The direct RFQ condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_direct_rfq_condition",
        "summary": "Update a direct RFQ condition",
        "tags": [
          "direct_rfq_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqConditionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The direct RFQ condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_direct_rfq_condition",
        "summary": "Delete a direct RFQ condition",
        "tags": [
          "direct_rfq_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_repair_service_answers": {
      "get": {
        "operationId": "list_direct_rfq_repair_service_answers",
        "summary": "List direct RFQ repair service answers",
        "tags": [
          "direct_rfq_repair_service_answers"
        ],
        "parameters": [
          {
            "name": "direct_rfq_repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A direct RFQ repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceAnswerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairServiceAnswerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_direct_rfq_repair_service_answer",
        "summary": "Create a direct RFQ repair service answer",
        "tags": [
          "direct_rfq_repair_service_answers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceAnswerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The direct RFQ repair service answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairServiceAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_repair_service_answers/{uuid}": {
      "get": {
        "operationId": "get_direct_rfq_repair_service_answer",
        "summary": "Retrieve a direct RFQ repair service answer",
        "tags": [
          "direct_rfq_repair_service_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The direct RFQ repair service answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairServiceAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_direct_rfq_repair_service_answer",
        "summary": "Delete a direct RFQ repair service answer",
        "tags": [
          "direct_rfq_repair_service_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_repair_services": {
      "get": {
        "operationId": "list_direct_rfq_repair_services",
        "summary": "List direct RFQ repair services",
        "tags": [
          "direct_rfq_repair_services"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairServiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_direct_rfq_repair_service",
        "summary": "Create a direct RFQ repair service",
        "tags": [
          "direct_rfq_repair_services"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The direct RFQ repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_repair_services/{uuid}": {
      "get": {
        "operationId": "get_direct_rfq_repair_service",
        "summary": "Retrieve a direct RFQ repair service",
        "tags": [
          "direct_rfq_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The direct RFQ repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_direct_rfq_repair_service",
        "summary": "Update a direct RFQ repair service",
        "tags": [
          "direct_rfq_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqRepairServiceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The direct RFQ repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_direct_rfq_repair_service",
        "summary": "Delete a direct RFQ repair service",
        "tags": [
          "direct_rfq_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_tag_types": {
      "get": {
        "operationId": "list_direct_rfq_tag_types",
        "summary": "List direct RFQ tag types",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqTagTypeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqTagTypeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_direct_rfq_tag_type",
        "summary": "Create a direct RFQ tag type",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqTagTypeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The direct RFQ tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_tag_types/map_tag_type": {
      "post": {
        "operationId": "map_tag_type_direct_rfq_tag_types",
        "summary": "Map one of our tag types to the direct RFQ tag types it answers",
        "description": "Sets which direct RFQ tag types one of our tag types answers, leaving each one's other answers as they were",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqTagTypeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqTagTypesMapTagType"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every direct RFQ tag type, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqTagTypeList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_tag_type",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/direct_rfq_tag_types/{uuid}": {
      "get": {
        "operationId": "get_direct_rfq_tag_type",
        "summary": "Retrieve a direct RFQ tag type",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The direct RFQ tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_direct_rfq_tag_type",
        "summary": "Update a direct RFQ tag type",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DirectRfqTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DirectRfqTagTypeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The direct RFQ tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectRfqTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_direct_rfq_tag_type",
        "summary": "Delete a direct RFQ tag type",
        "tags": [
          "direct_rfq_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/document_template_versions": {
      "get": {
        "operationId": "list_document_template_versions",
        "summary": "List document template versions",
        "tags": [
          "document_template_versions"
        ],
        "parameters": [
          {
            "name": "form[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "customer_quote",
                  "customer_quote_with_work_order_tasks",
                  "customer_order_acknowledgement",
                  "proforma_invoice",
                  "invoice",
                  "credit_memo",
                  "pick_list",
                  "packing_list",
                  "shipping_packet",
                  "commercial_invoice",
                  "purchase_order",
                  "repair_order",
                  "consignor_statement",
                  "investor_statement",
                  "rejection_report",
                  "vendor_rfq",
                  "receiving_inspection_report",
                  "inventory_label",
                  "teardown_report",
                  "outbound_qc_record",
                  "conformance",
                  "material_certification",
                  "true_copy",
                  "split_statement",
                  "work_order_label",
                  "unused_bom_parts",
                  "work_order_pick_list",
                  "teardown_manifest",
                  "return_material_authorization",
                  "return_to_vendor",
                  "customer_core_return",
                  "vendor_core_return",
                  "customer_lease_agreement",
                  "vendor_lease_agreement",
                  "bin_label"
                ],
                "description": "`customer_quote`: A customer quote, printed off the quote; `customer_quote_with_work_order_tasks`: A customer quote listing, under each line priced from a work order template, the tasks it was priced from; `customer_order_acknowledgement`: A sales order's acknowledgement to the customer; `proforma_invoice`: A proforma invoice, printed off a sales order before it ships; `invoice`: An invoice; `credit_memo`: A credit memo, printed off an invoice that credits; `pick_list`: A release's pick list, for pulling the units off the shelf; `packing_list`: A release's packing list, shipped with the units; `shipping_packet`: A release's packing list, then its signed certificates, then each shipped unit's trace documents, as one document; `commercial_invoice`: A release's commercial invoice, the statement to customs of what an international shipment holds and what each unit is worth, signed by hand; `purchase_order`: A purchase order, sent to the vendor; `repair_order`: A repair order, sent to the repair vendor; `consignor_statement`: A consignor's statement of what their stock sold for; `investor_statement`: An investor's statement of their share of what sold; `rejection_report`: A rejection's report of what was wrong with the unit; `vendor_rfq`: A vendor RFQ, sent to the vendor to quote; `receiving_inspection_report`: A received receipt's inspection report; `inventory_label`: An inventory line's label, stuck on the unit; `teardown_report`: A manifest's teardown report of the parts a unit came apart into; `outbound_qc_record`: A release's record of each part line's QC checklist answers, kept in the building; `conformance`: A certificate's Certificate of Conformance, signed by the employee certifying the units it lists; `material_certification`: A certificate's ATA Spec 106 material certification, signed in block 14 for new parts or block 18 for used, repaired or overhauled ones; `true_copy`: A certificate's certified true copy statement, passing on each unit's received 8130-3 or Form 1; `split_statement`: A certificate's split shipment statement, giving part of a unit's received 8130-3 or Form 1 quantity a new form tracking number; `work_order_label`: A work order's label, stuck on the customer's unit so it can be scanned back to its work order; `unused_bom_parts`: A work order task's list of the parts issued to it and flagged unused, for the warehouse to take back; `work_order_pick_list`: A work order's list of the units allocated to its materials and still to pick, by warehouse and bin, each with the task it goes to; `teardown_manifest`: A work order's list of the parts its tasks took off the customer's unit and turned in as teardown parts, held to go home to the customer; `return_material_authorization`: A customer return's RMA, telling the customer which units to send back and the number to mark them with; `return_to_vendor`: A vendor return's form, packed with the units going back to the vendor; `customer_core_return`: A customer exchange's core return form, telling the customer which core to send back and by when; `vendor_core_return`: A vendor exchange's core return form, packed with the core going back to the vendor; `customer_lease_agreement`: A customer lease's agreement, listing the units leased and the terms they were leased on; `vendor_lease_agreement`: A vendor lease's agreement, listing the units leased from the vendor and the terms; `bin_label`: A bin's label, stuck on the bin so the bin can be scanned",
                "x-enum-descriptions": [
                  "A customer quote, printed off the quote",
                  "A customer quote listing, under each line priced from a work order template, the tasks it was priced from",
                  "A sales order's acknowledgement to the customer",
                  "A proforma invoice, printed off a sales order before it ships",
                  "An invoice",
                  "A credit memo, printed off an invoice that credits",
                  "A release's pick list, for pulling the units off the shelf",
                  "A release's packing list, shipped with the units",
                  "A release's packing list, then its signed certificates, then each shipped unit's trace documents, as one document",
                  "A release's commercial invoice, the statement to customs of what an international shipment holds and what each unit is worth, signed by hand",
                  "A purchase order, sent to the vendor",
                  "A repair order, sent to the repair vendor",
                  "A consignor's statement of what their stock sold for",
                  "An investor's statement of their share of what sold",
                  "A rejection's report of what was wrong with the unit",
                  "A vendor RFQ, sent to the vendor to quote",
                  "A received receipt's inspection report",
                  "An inventory line's label, stuck on the unit",
                  "A manifest's teardown report of the parts a unit came apart into",
                  "A release's record of each part line's QC checklist answers, kept in the building",
                  "A certificate's Certificate of Conformance, signed by the employee certifying the units it lists",
                  "A certificate's ATA Spec 106 material certification, signed in block 14 for new parts or block 18 for used, repaired or overhauled ones",
                  "A certificate's certified true copy statement, passing on each unit's received 8130-3 or Form 1",
                  "A certificate's split shipment statement, giving part of a unit's received 8130-3 or Form 1 quantity a new form tracking number",
                  "A work order's label, stuck on the customer's unit so it can be scanned back to its work order",
                  "A work order task's list of the parts issued to it and flagged unused, for the warehouse to take back",
                  "A work order's list of the units allocated to its materials and still to pick, by warehouse and bin, each with the task it goes to",
                  "A work order's list of the parts its tasks took off the customer's unit and turned in as teardown parts, held to go home to the customer",
                  "A customer return's RMA, telling the customer which units to send back and the number to mark them with",
                  "A vendor return's form, packed with the units going back to the vendor",
                  "A customer exchange's core return form, telling the customer which core to send back and by when",
                  "A vendor exchange's core return form, packed with the core going back to the vendor",
                  "A customer lease's agreement, listing the units leased and the terms they were leased on",
                  "A vendor lease's agreement, listing the units leased from the vendor and the terms",
                  "A bin's label, stuck on the bin so the bin can be scanned"
                ],
                "x-enum-labels": [
                  "Customer Quote",
                  "Customer Quote with Work Order Tasks",
                  "Order Acknowledgement",
                  "Proforma Invoice",
                  "Invoice",
                  "Credit Memo",
                  "Pick List",
                  "Packing List",
                  "Shipping Packet",
                  "Commercial Invoice",
                  "Purchase Order",
                  "Repair Order",
                  "Consignor Statement",
                  "Investor Statement",
                  "Rejection Report",
                  "Vendor RFQ",
                  "Receiving Inspection Report",
                  "Inventory Label",
                  "Teardown Report",
                  "Outbound QC Record",
                  "Certificate of Conformance",
                  "Material Certification (ATA Spec 106)",
                  "Certified True Copy",
                  "Split Shipment Statement",
                  "Work Order Label",
                  "Unused BOM Parts",
                  "Work Order Pick List",
                  "Teardown Manifest",
                  "RMA",
                  "Return to Vendor",
                  "Customer Core Return",
                  "Vendor Core Return",
                  "Customer Lease Agreement",
                  "Vendor Lease Agreement",
                  "Bin Label"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "updated_at",
                "-updated_at"
              ],
              "default": "-number"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, descending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateVersionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateVersionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/document_template_versions/{uuid}": {
      "get": {
        "operationId": "get_document_template_version",
        "summary": "Retrieve a document template version",
        "tags": [
          "document_template_versions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateVersionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The document template version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateVersion"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/document_template_versions/{uuid}/restore": {
      "post": {
        "operationId": "restore_document_template_version",
        "summary": "Restore a document template version",
        "tags": [
          "document_template_versions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateVersionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The document template version",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateVersion"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/document_templates": {
      "get": {
        "operationId": "list_document_templates",
        "summary": "List document templates",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/document_templates/{form}": {
      "get": {
        "operationId": "get_document_template",
        "summary": "Retrieve a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The document template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_document_template",
        "summary": "Update a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The document template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/document_templates/{form}/check": {
      "post": {
        "operationId": "check_document_template",
        "summary": "Check a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplateCheck"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The document template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "check",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "custom_layouts",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "layout_failed",
          "document_too_large",
          "too_many_requests",
          "render_unavailable"
        ]
      }
    },
    "/document_templates/{form}/discard_draft": {
      "post": {
        "operationId": "discard_draft_document_template",
        "summary": "Discard the draft of a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The document template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "discard_draft",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/document_templates/{form}/preview": {
      "post": {
        "operationId": "preview_document_template",
        "summary": "Preview a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentTemplatePreview"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The document preview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "preview",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "layout_failed",
          "document_too_large",
          "too_many_requests",
          "render_unavailable"
        ]
      }
    },
    "/document_templates/{form}/publish": {
      "post": {
        "operationId": "publish_document_template",
        "summary": "Publish a document template",
        "tags": [
          "document_templates"
        ],
        "parameters": [
          {
            "name": "form",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_quote_with_work_order_tasks",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "pick_list",
                "packing_list",
                "shipping_packet",
                "commercial_invoice",
                "purchase_order",
                "repair_order",
                "consignor_statement",
                "investor_statement",
                "rejection_report",
                "vendor_rfq",
                "receiving_inspection_report",
                "inventory_label",
                "teardown_report",
                "outbound_qc_record",
                "conformance",
                "material_certification",
                "true_copy",
                "split_statement",
                "work_order_label",
                "unused_bom_parts",
                "teardown_manifest",
                "work_order_pick_list",
                "return_material_authorization",
                "return_to_vendor",
                "customer_core_return",
                "vendor_core_return",
                "customer_lease_agreement",
                "vendor_lease_agreement",
                "bin_label"
              ],
              "description": "The form the document prints"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentTemplateField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The document template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "publish",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "layout_failed",
          "document_too_large",
          "too_many_requests",
          "render_unavailable"
        ]
      }
    },
    "/documents": {
      "get": {
        "operationId": "list_documents",
        "summary": "List documents",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "form[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "customer_quote",
                  "customer_quote_with_work_order_tasks",
                  "customer_order_acknowledgement",
                  "proforma_invoice",
                  "invoice",
                  "credit_memo",
                  "pick_list",
                  "packing_list",
                  "shipping_packet",
                  "commercial_invoice",
                  "purchase_order",
                  "repair_order",
                  "consignor_statement",
                  "investor_statement",
                  "rejection_report",
                  "vendor_rfq",
                  "receiving_inspection_report",
                  "inventory_label",
                  "teardown_report",
                  "outbound_qc_record",
                  "conformance",
                  "material_certification",
                  "true_copy",
                  "split_statement",
                  "work_order_label",
                  "unused_bom_parts",
                  "work_order_pick_list",
                  "teardown_manifest",
                  "return_material_authorization",
                  "return_to_vendor",
                  "customer_core_return",
                  "vendor_core_return",
                  "customer_lease_agreement",
                  "vendor_lease_agreement",
                  "bin_label"
                ],
                "description": "`customer_quote`: A customer quote, printed off the quote; `customer_quote_with_work_order_tasks`: A customer quote listing, under each line priced from a work order template, the tasks it was priced from; `customer_order_acknowledgement`: A sales order's acknowledgement to the customer; `proforma_invoice`: A proforma invoice, printed off a sales order before it ships; `invoice`: An invoice; `credit_memo`: A credit memo, printed off an invoice that credits; `pick_list`: A release's pick list, for pulling the units off the shelf; `packing_list`: A release's packing list, shipped with the units; `shipping_packet`: A release's packing list, then its signed certificates, then each shipped unit's trace documents, as one document; `commercial_invoice`: A release's commercial invoice, the statement to customs of what an international shipment holds and what each unit is worth, signed by hand; `purchase_order`: A purchase order, sent to the vendor; `repair_order`: A repair order, sent to the repair vendor; `consignor_statement`: A consignor's statement of what their stock sold for; `investor_statement`: An investor's statement of their share of what sold; `rejection_report`: A rejection's report of what was wrong with the unit; `vendor_rfq`: A vendor RFQ, sent to the vendor to quote; `receiving_inspection_report`: A received receipt's inspection report; `inventory_label`: An inventory line's label, stuck on the unit; `teardown_report`: A manifest's teardown report of the parts a unit came apart into; `outbound_qc_record`: A release's record of each part line's QC checklist answers, kept in the building; `conformance`: A certificate's Certificate of Conformance, signed by the employee certifying the units it lists; `material_certification`: A certificate's ATA Spec 106 material certification, signed in block 14 for new parts or block 18 for used, repaired or overhauled ones; `true_copy`: A certificate's certified true copy statement, passing on each unit's received 8130-3 or Form 1; `split_statement`: A certificate's split shipment statement, giving part of a unit's received 8130-3 or Form 1 quantity a new form tracking number; `work_order_label`: A work order's label, stuck on the customer's unit so it can be scanned back to its work order; `unused_bom_parts`: A work order task's list of the parts issued to it and flagged unused, for the warehouse to take back; `work_order_pick_list`: A work order's list of the units allocated to its materials and still to pick, by warehouse and bin, each with the task it goes to; `teardown_manifest`: A work order's list of the parts its tasks took off the customer's unit and turned in as teardown parts, held to go home to the customer; `return_material_authorization`: A customer return's RMA, telling the customer which units to send back and the number to mark them with; `return_to_vendor`: A vendor return's form, packed with the units going back to the vendor; `customer_core_return`: A customer exchange's core return form, telling the customer which core to send back and by when; `vendor_core_return`: A vendor exchange's core return form, packed with the core going back to the vendor; `customer_lease_agreement`: A customer lease's agreement, listing the units leased and the terms they were leased on; `vendor_lease_agreement`: A vendor lease's agreement, listing the units leased from the vendor and the terms; `bin_label`: A bin's label, stuck on the bin so the bin can be scanned",
                "x-enum-descriptions": [
                  "A customer quote, printed off the quote",
                  "A customer quote listing, under each line priced from a work order template, the tasks it was priced from",
                  "A sales order's acknowledgement to the customer",
                  "A proforma invoice, printed off a sales order before it ships",
                  "An invoice",
                  "A credit memo, printed off an invoice that credits",
                  "A release's pick list, for pulling the units off the shelf",
                  "A release's packing list, shipped with the units",
                  "A release's packing list, then its signed certificates, then each shipped unit's trace documents, as one document",
                  "A release's commercial invoice, the statement to customs of what an international shipment holds and what each unit is worth, signed by hand",
                  "A purchase order, sent to the vendor",
                  "A repair order, sent to the repair vendor",
                  "A consignor's statement of what their stock sold for",
                  "An investor's statement of their share of what sold",
                  "A rejection's report of what was wrong with the unit",
                  "A vendor RFQ, sent to the vendor to quote",
                  "A received receipt's inspection report",
                  "An inventory line's label, stuck on the unit",
                  "A manifest's teardown report of the parts a unit came apart into",
                  "A release's record of each part line's QC checklist answers, kept in the building",
                  "A certificate's Certificate of Conformance, signed by the employee certifying the units it lists",
                  "A certificate's ATA Spec 106 material certification, signed in block 14 for new parts or block 18 for used, repaired or overhauled ones",
                  "A certificate's certified true copy statement, passing on each unit's received 8130-3 or Form 1",
                  "A certificate's split shipment statement, giving part of a unit's received 8130-3 or Form 1 quantity a new form tracking number",
                  "A work order's label, stuck on the customer's unit so it can be scanned back to its work order",
                  "A work order task's list of the parts issued to it and flagged unused, for the warehouse to take back",
                  "A work order's list of the units allocated to its materials and still to pick, by warehouse and bin, each with the task it goes to",
                  "A work order's list of the parts its tasks took off the customer's unit and turned in as teardown parts, held to go home to the customer",
                  "A customer return's RMA, telling the customer which units to send back and the number to mark them with",
                  "A vendor return's form, packed with the units going back to the vendor",
                  "A customer exchange's core return form, telling the customer which core to send back and by when",
                  "A vendor exchange's core return form, packed with the core going back to the vendor",
                  "A customer lease's agreement, listing the units leased and the terms they were leased on",
                  "A vendor lease's agreement, listing the units leased from the vendor and the terms",
                  "A bin's label, stuck on the bin so the bin can be scanned"
                ],
                "x-enum-labels": [
                  "Customer Quote",
                  "Customer Quote with Work Order Tasks",
                  "Order Acknowledgement",
                  "Proforma Invoice",
                  "Invoice",
                  "Credit Memo",
                  "Pick List",
                  "Packing List",
                  "Shipping Packet",
                  "Commercial Invoice",
                  "Purchase Order",
                  "Repair Order",
                  "Consignor Statement",
                  "Investor Statement",
                  "Rejection Report",
                  "Vendor RFQ",
                  "Receiving Inspection Report",
                  "Inventory Label",
                  "Teardown Report",
                  "Outbound QC Record",
                  "Certificate of Conformance",
                  "Material Certification (ATA Spec 106)",
                  "Certified True Copy",
                  "Split Shipment Statement",
                  "Work Order Label",
                  "Unused BOM Parts",
                  "Work Order Pick List",
                  "Teardown Manifest",
                  "RMA",
                  "Return to Vendor",
                  "Customer Core Return",
                  "Vendor Core Return",
                  "Customer Lease Agreement",
                  "Vendor Lease Agreement",
                  "Bin Label"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A record's uuid"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_document",
        "summary": "Create a document",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The document already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/documents/{uuid}": {
      "get": {
        "operationId": "get_document",
        "summary": "Retrieve a document",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/documents/{document_uuid}/content": {
      "get": {
        "operationId": "download_document",
        "summary": "Download a document's file",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "document_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "disposition",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "attachment",
                "inline"
              ],
              "default": "attachment"
            },
            "description": "`inline` opens the file in the browser; `attachment` downloads it"
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "200": {
            "description": "The file itself, when `disposition=inline` is asked of an image or a PDF, sent with `Content-Security-Policy: sandbox` and `X-Content-Type-Options: nosniff` so a browser opening it runs no script from it",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/tiff": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/bmp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.adobe.photoshop": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.microsoft.icon": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Disposition": {
                "description": "`inline`, with the file's name",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer. Answers a download, a `variant`, and a file asked `inline` that is not an image or a PDF",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/documents/{uuid}/print": {
      "post": {
        "operationId": "print_document",
        "summary": "Print a document",
        "description": "Sends this generation of a form to a printer as it stands, an older one included, and generates nothing. `POST /print_requests` prints a record's current generation instead, generating it first when the record has changed. Refused while the record is in the trash",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "documents"
                ]
              }
            },
            "description": "Inline `documents` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentPrint"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The print request placed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "print",
        "x-risk": "reversible",
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/documents/{uuid}/record_download": {
      "post": {
        "operationId": "record_download_document",
        "summary": "Record a download",
        "description": "Records a generation downloaded, naming its file, on its record's Activity. Refused until the generation has rendered, or while its record is in the trash",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The generation downloaded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_download",
        "x-risk": "reversible",
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/documents/{uuid}/record_print_request": {
      "post": {
        "operationId": "record_print_request_document",
        "summary": "Record a print request",
        "description": "Records a generation sent to the browser's print dialog on its record's Activity, as a print request with no printer. Nothing reports whether the browser printed it, so it never reads as printed. Refused until the generation has rendered, or while its record is in the trash",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The generation sent to print",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_print_request",
        "x-risk": "reversible",
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/documents/{uuid}/rerender": {
      "post": {
        "operationId": "rerender_document",
        "summary": "Rerender a document",
        "tags": [
          "documents"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "rerender",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/due_in_lines": {
      "get": {
        "operationId": "list_due_in_lines",
        "summary": "List due in lines",
        "tags": [
          "due_in_lines"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchase_order",
                  "repair_order",
                  "customer_return",
                  "customer_exchange",
                  "customer_lease",
                  "work_order",
                  "manifest",
                  "sales_order"
                ],
                "description": "`purchase_order`: A part we bought, on its way from the vendor; `repair_order`: Our unit coming back from the repair shop; `customer_return`: A customer's units coming back; `customer_exchange`: A customer's exchange core coming back; `customer_lease`: Our leased unit coming back from the customer; `work_order`: A customer's own unit arriving for work in our shop; `manifest`: A cost pool's parts still expected off its manifest; `sales_order`: A customer's unit coming in for the repair we sold them",
                "x-enum-descriptions": [
                  "A part we bought, on its way from the vendor",
                  "Our unit coming back from the repair shop",
                  "A customer's units coming back",
                  "A customer's exchange core coming back",
                  "Our leased unit coming back from the customer",
                  "A customer's own unit arriving for work in our shop",
                  "A cost pool's parts still expected off its manifest",
                  "A customer's unit coming in for the repair we sold them"
                ],
                "x-enum-labels": [
                  "Purchase order",
                  "Repair order",
                  "Customer return",
                  "Exchange",
                  "Lease",
                  "Work order",
                  "Manifest",
                  "Sales order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "ordered_on",
                "-ordered_on",
                "due_on",
                "-due_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "ordered_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DueInLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DueInLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "customer_exchange",
                "label": "Exchange"
              },
              {
                "value": "customer_lease",
                "label": "Lease"
              },
              {
                "value": "work_order",
                "label": "Work order"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "order",
            "label": "Order",
            "field": "order",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "order.object",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "purchase_order": "Purchase order",
              "repair_order": "Repair order",
              "customer_return": "Customer return",
              "customer_exchange": "Exchange",
              "customer_lease": "Lease",
              "work_order": "Work order",
              "manifest": "Manifest",
              "sales_order": "Sales order"
            }
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "counterparty.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "ordered_on",
            "label": "Ordered",
            "field": "ordered_on",
            "sort": "ordered_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/due_in_orders": {
      "get": {
        "operationId": "list_due_in_orders",
        "summary": "List due in orders",
        "tags": [
          "due_in_orders"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "not_started",
                  "in_progress",
                  "waiting_on_inspection",
                  "ready_to_receive"
                ],
                "description": "`not_started`: No receipt is in progress for the order yet; `in_progress`: Its receipt is open, with no line ready to receive yet; `waiting_on_inspection`: Its receipt has lines ready, and a line waiting on its receiving inspection; `ready_to_receive`: Its receipt has lines ready to receive, with nothing waiting on an inspection",
                "x-enum-descriptions": [
                  "No receipt is in progress for the order yet",
                  "Its receipt is open, with no line ready to receive yet",
                  "Its receipt has lines ready, and a line waiting on its receiving inspection",
                  "Its receipt has lines ready to receive, with nothing waiting on an inspection"
                ],
                "x-enum-labels": [
                  "Not started",
                  "In progress",
                  "Waiting on inspection",
                  "Ready to receive"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "The orders whose own number is one of these, matched whole in any case",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchase_order",
                  "repair_order",
                  "customer_return",
                  "customer_exchange",
                  "customer_lease",
                  "work_order",
                  "manifest",
                  "sales_order"
                ],
                "description": "`purchase_order`: A part we bought, on its way from the vendor; `repair_order`: Our unit coming back from the repair shop; `customer_return`: A customer's units coming back; `customer_exchange`: A customer's exchange core coming back; `customer_lease`: Our leased unit coming back from the customer; `work_order`: A customer's own unit arriving for work in our shop; `manifest`: A cost pool's parts still expected off its manifest; `sales_order`: A customer's unit coming in for the repair we sold them",
                "x-enum-descriptions": [
                  "A part we bought, on its way from the vendor",
                  "Our unit coming back from the repair shop",
                  "A customer's units coming back",
                  "A customer's exchange core coming back",
                  "Our leased unit coming back from the customer",
                  "A customer's own unit arriving for work in our shop",
                  "A cost pool's parts still expected off its manifest",
                  "A customer's unit coming in for the repair we sold them"
                ],
                "x-enum-labels": [
                  "Purchase order",
                  "Repair order",
                  "Customer return",
                  "Exchange",
                  "Lease",
                  "Work order",
                  "Manifest",
                  "Sales order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "due_on",
                "-due_on",
                "number",
                "-number",
                "kind",
                "-kind",
                "lines",
                "-lines",
                "updated_at",
                "-updated_at"
              ],
              "default": "due_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `kind` sorts in its own order, CustomerReturn, CustomerExchange, CustomerLease, Manifest, PurchaseOrder, RepairOrder, SalesOrder, WorkOrder, not the alphabet. `number` The order's prefix, then its number as a number. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/DueInOrderListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DueInOrderList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "not_started",
                "label": "Not started"
              },
              {
                "value": "in_progress",
                "label": "In progress"
              },
              {
                "value": "waiting_on_inspection",
                "label": "Waiting on inspection"
              },
              {
                "value": "ready_to_receive",
                "label": "Ready to receive"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "customer_exchange",
                "label": "Exchange"
              },
              {
                "value": "customer_lease",
                "label": "Lease"
              },
              {
                "value": "work_order",
                "label": "Work order"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "order",
            "label": "Order",
            "field": "order",
            "sort": "number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "not_started": "Not started",
              "in_progress": "In progress",
              "waiting_on_inspection": "Waiting on inspection",
              "ready_to_receive": "Ready to receive"
            }
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "counterparty.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "purchase_order": "Purchase order",
              "repair_order": "Repair order",
              "customer_return": "Customer return",
              "customer_exchange": "Exchange",
              "customer_lease": "Lease",
              "work_order": "Work order",
              "manifest": "Manifest",
              "sales_order": "Sales order"
            }
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": "lines",
            "kind": "number",
            "currency": null
          },
          {
            "key": "open_receipt",
            "label": "Receipt",
            "field": "open_receipt.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/email_banners": {
      "get": {
        "operationId": "list_email_banners",
        "summary": "List email banners",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "starts_on",
                "-starts_on",
                "ends_on",
                "-ends_on",
                "alt_text",
                "-alt_text",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "-starts_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBannerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "image",
            "label": "Image",
            "field": "image.url",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "alt_text",
            "label": "Alt text",
            "field": "alt_text",
            "sort": "alt_text",
            "kind": "text",
            "currency": null
          },
          {
            "key": "link_url",
            "label": "Link",
            "field": "link_url",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "starts_on",
            "label": "Starts",
            "field": "starts_on",
            "sort": "starts_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "ends_on",
            "label": "Ends",
            "field": "ends_on",
            "sort": "ends_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "audiences",
            "label": "Goes to",
            "field": "audiences",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customers": "Customers",
              "vendors": "Vendors"
            }
          },
          {
            "key": "email_kinds",
            "label": "Kinds of email",
            "field": "email_kinds",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customer_quote": "Customer quote",
              "customer_order_acknowledgement": "Customer order acknowledgement",
              "proforma_invoice": "Proforma invoice",
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "purchase_order": "Purchase order",
              "repair_order": "Repair order",
              "vendor_rfq": "Vendor RFQ",
              "consignor_statement": "Consignor statement",
              "investor_statement": "Investor statement",
              "shipping_confirmation": "Shipping confirmation"
            }
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_email_banner",
        "summary": "Create an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBannerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_banners/{uuid}": {
      "get": {
        "operationId": "get_email_banner",
        "summary": "Retrieve an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_banner",
        "summary": "Update an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBannerUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_email_banner",
        "summary": "Delete an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_banners/{uuid}/activate": {
      "post": {
        "operationId": "activate_email_banner",
        "summary": "Activate an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_banners/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_email_banner",
        "summary": "Deactivate an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_banners/{uuid}/upload_image": {
      "post": {
        "operationId": "upload_image_email_banner",
        "summary": "Upload an image to an email banner",
        "tags": [
          "email_banners"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailBannerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailBannerUploadImage"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/EmailBannerUploadImageMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email banner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailBanner"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "upload_image",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_kinds": {
      "get": {
        "operationId": "list_email_kinds",
        "summary": "List email kinds",
        "tags": [
          "email_kinds"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailKindListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailKindList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/email_layouts": {
      "get": {
        "operationId": "list_email_layouts",
        "summary": "List email layouts",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayoutList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/email_layouts/{organization_uuid}": {
      "get": {
        "operationId": "get_email_layout",
        "summary": "Retrieve an email layout",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email layout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayout"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_layout",
        "summary": "Update an email layout",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLayoutUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email layout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayout"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_layouts/{organization_uuid}/blocks": {
      "get": {
        "operationId": "list_email_layout_blocks",
        "summary": "List email layout blocks",
        "description": "The pieces an organization's email layout places before and after every message: its logo, words, dividers, the record's summary, the signature and small print, in order",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutBlockListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayoutBlockList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_email_layout_block",
        "summary": "Create an email layout block",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutBlockField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLayoutBlockCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email layout block",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayoutBlock"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_layouts/{organization_uuid}/blocks/{uuid}": {
      "get": {
        "operationId": "get_email_layout_block",
        "summary": "Retrieve an email layout block",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutBlockField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email layout block",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayoutBlock"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_layout_block",
        "summary": "Update an email layout block",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailLayoutBlockField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLayoutBlockUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email layout block",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailLayoutBlock"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_email_layout_block",
        "summary": "Delete an email layout block",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_layouts/{organization_uuid}/preview": {
      "post": {
        "operationId": "preview_email_layout",
        "summary": "Preview an email layout",
        "tags": [
          "email_layouts"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailLayoutPreview"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email preview",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_sender_rules": {
      "get": {
        "operationId": "list_email_sender_rules",
        "summary": "List email sender rules",
        "tags": [
          "email_sender_rules"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "address",
                  "domain"
                ],
                "description": "`address`: The rule covers this one address; `domain`: The rule covers every address at this domain, or at a domain under it, that has no rule of its own",
                "x-enum-descriptions": [
                  "The rule covers this one address",
                  "The rule covers every address at this domain, or at a domain under it, that has no rule of its own"
                ],
                "x-enum-labels": [
                  "Address",
                  "Domain"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "effect[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "block",
                  "allow"
                ],
                "description": "`block`: Its email is held unread, as From a blocked sender, until it is unblocked; `allow`: Its email isn't held when the mail scan marks it as spam, and shows no first-email or lookalike warning; it is still held for malware or a failed authentication, and is never treated as confirmed to come from them",
                "x-enum-descriptions": [
                  "Its email is held unread, as From a blocked sender, until it is unblocked",
                  "Its email isn't held when the mail scan marks it as spam, and shows no first-email or lookalike warning; it is still held for malware or a failed authentication, and is never treated as confirmed to come from them"
                ],
                "x-enum-labels": [
                  "Blocked",
                  "Allowed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sender",
                "-sender",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "sender"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSenderRuleListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSenderRuleList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "address",
                "label": "Address"
              },
              {
                "value": "domain",
                "label": "Domain"
              }
            ]
          },
          {
            "key": "effect",
            "label": "Effect",
            "kind": "options",
            "options": [
              {
                "value": "block",
                "label": "Blocked"
              },
              {
                "value": "allow",
                "label": "Allowed"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "sender",
            "label": "Sender",
            "field": "sender",
            "sort": "sender",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "address": "Address",
              "domain": "Domain"
            }
          },
          {
            "key": "effect",
            "label": "Effect",
            "field": "effect",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "block": "Blocked",
              "allow": "Allowed"
            }
          },
          {
            "key": "note",
            "label": "Note",
            "field": "note",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expires",
            "label": "Expires",
            "field": "expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_used",
            "label": "Last used",
            "field": "last_used_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_by",
            "label": "Made by",
            "field": "created_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_email_sender_rule",
        "summary": "Create an email sender rule",
        "tags": [
          "email_sender_rules"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSenderRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSenderRuleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email sender rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSenderRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_sender_rules/{uuid}": {
      "get": {
        "operationId": "get_email_sender_rule",
        "summary": "Retrieve an email sender rule",
        "tags": [
          "email_sender_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSenderRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email sender rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSenderRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_email_sender_rule",
        "summary": "Delete an email sender rule",
        "tags": [
          "email_sender_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_sending_settings": {
      "get": {
        "operationId": "list_email_sending_settings",
        "summary": "List email sending settings",
        "tags": [
          "email_sending_settings"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSendingSettingsListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendingSettingsList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/email_sending_settings/{organization_uuid}": {
      "get": {
        "operationId": "get_email_sending_settings",
        "summary": "Retrieve an email sending settings",
        "tags": [
          "email_sending_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSendingSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email sending settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendingSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_sending_settings",
        "summary": "Update an email sending settings",
        "tags": [
          "email_sending_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSendingSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailSendingSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email sending settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSendingSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_suppressions": {
      "get": {
        "operationId": "list_email_suppressions",
        "summary": "List email suppressions",
        "tags": [
          "email_suppressions"
        ],
        "parameters": [
          {
            "name": "email_address[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "The addresses by email address, as the email dialog asks of its recipients",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "bounce",
                  "complaint"
                ],
                "description": "`bounce`: An email to it bounced for good; `complaint`: Its recipient reported an email as spam",
                "x-enum-descriptions": [
                  "An email to it bounced for good",
                  "Its recipient reported an email as spam"
                ],
                "x-enum-labels": [
                  "Bounced",
                  "Reported as spam"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "suppressed_at",
                "-suppressed_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-suppressed_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSuppressionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count",
                  "actions"
                ]
              }
            },
            "description": "Add `total_count` and `actions` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSuppressionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/email_suppressions/{uuid}": {
      "get": {
        "operationId": "get_email_suppression",
        "summary": "Retrieve an email suppression",
        "tags": [
          "email_suppressions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailSuppressionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email suppression",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSuppression"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_email_suppression",
        "summary": "Delete an email suppression",
        "tags": [
          "email_suppressions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_template_preferences": {
      "get": {
        "operationId": "get_email_template_preferences",
        "summary": "Retrieve the email template preferences",
        "tags": [
          "email_template_preferences"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_template_preferences",
        "summary": "Update the email template preferences",
        "tags": [
          "email_template_preferences"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplatePreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplatePreferencesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email template preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplatePreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_templates": {
      "get": {
        "operationId": "list_email_templates",
        "summary": "List email templates",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "customer_quote",
                  "customer_order_acknowledgement",
                  "proforma_invoice",
                  "invoice",
                  "credit_memo",
                  "purchase_order",
                  "repair_order",
                  "vendor_rfq",
                  "consignor_statement",
                  "investor_statement",
                  "shipping_confirmation"
                ],
                "description": "`customer_quote`: A quote emailed to its customer; `customer_order_acknowledgement`: An order acknowledgement emailed to its customer; `proforma_invoice`: A proforma invoice emailed to its customer; `invoice`: An invoice emailed to its customer; `credit_memo`: A credit memo emailed to its customer; `purchase_order`: A purchase order emailed to its vendor; `repair_order`: A repair order emailed to its repair shop; `vendor_rfq`: An RFQ emailed to its vendor; `consignor_statement`: A consignor statement emailed to its consignor; `investor_statement`: An investor statement emailed to its investor; `shipping_confirmation`: A shipping confirmation emailed to the customer a release shipped to",
                "x-enum-descriptions": [
                  "A quote emailed to its customer",
                  "An order acknowledgement emailed to its customer",
                  "A proforma invoice emailed to its customer",
                  "An invoice emailed to its customer",
                  "A credit memo emailed to its customer",
                  "A purchase order emailed to its vendor",
                  "A repair order emailed to its repair shop",
                  "An RFQ emailed to its vendor",
                  "A consignor statement emailed to its consignor",
                  "An investor statement emailed to its investor",
                  "A shipping confirmation emailed to the customer a release shipped to"
                ],
                "x-enum-labels": [
                  "Customer quote",
                  "Customer order acknowledgement",
                  "Proforma invoice",
                  "Invoice",
                  "Credit memo",
                  "Purchase order",
                  "Repair order",
                  "Vendor RFQ",
                  "Consignor statement",
                  "Investor statement",
                  "Shipping confirmation"
                ]
              }
            },
            "description": "The templates for these kinds of email",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "kind",
                "-kind",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind of email",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "customer_quote": "Customer quote",
              "customer_order_acknowledgement": "Customer order acknowledgement",
              "proforma_invoice": "Proforma invoice",
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "purchase_order": "Purchase order",
              "repair_order": "Repair order",
              "vendor_rfq": "Vendor RFQ",
              "consignor_statement": "Consignor statement",
              "investor_statement": "Investor statement",
              "shipping_confirmation": "Shipping confirmation"
            }
          },
          {
            "key": "default",
            "label": "Default",
            "field": "default",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "adds_signature",
            "label": "Signature",
            "field": "adds_signature",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_email_template",
        "summary": "Create an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_templates/{uuid}": {
      "get": {
        "operationId": "get_email_template",
        "summary": "Retrieve an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_email_template",
        "summary": "Update an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailTemplateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_email_template",
        "summary": "Delete an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_templates/{uuid}/activate": {
      "post": {
        "operationId": "activate_email_template",
        "summary": "Activate an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_templates/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_email_template",
        "summary": "Deactivate an email template",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/email_templates/{uuid}/make_default": {
      "post": {
        "operationId": "make_default_email_template",
        "summary": "Make an email template the default",
        "tags": [
          "email_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailTemplateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The email template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "make_default",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/employee_skills": {
      "get": {
        "operationId": "list_employee_skills_across_employees",
        "summary": "List employee skills across every employee",
        "tags": [
          "employee_skills"
        ],
        "parameters": [
          {
            "name": "employee[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "expires_on",
                "-expires_on",
                "skill",
                "-skill",
                "employee",
                "-employee",
                "updated_at",
                "-updated_at"
              ],
              "default": "employee"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkillList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "employee",
            "label": "Employee",
            "kind": "options",
            "references": [
              "employee"
            ]
          },
          {
            "key": "skill",
            "label": "Skill",
            "kind": "options",
            "references": [
              "skill"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "expires_on",
            "label": "Expires",
            "field": "expires_on",
            "sort": "expires_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "employee",
            "label": "Employee",
            "field": "employee.name",
            "sort": "employee",
            "kind": "text",
            "currency": null
          },
          {
            "key": "skill",
            "label": "Skill",
            "field": "skill.name",
            "sort": "skill",
            "kind": "text",
            "currency": null
          },
          {
            "key": "assigned_hours",
            "label": "Assigned hours",
            "field": "assigned_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      }
    },
    "/employees": {
      "get": {
        "operationId": "list_employees",
        "summary": "List employees",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Employees holding one of these skills today, unexpired",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Employees working for one of these organizations",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "number",
                "-number",
                "hourly_cost_cents",
                "-hourly_cost_cents",
                "certificate_number",
                "-certificate_number",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `number`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "skill",
            "label": "Skill",
            "kind": "options",
            "references": [
              "skill"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "hourly_cost",
            "label": "Cost / hr",
            "field": "hourly_cost_cents",
            "sort": "hourly_cost_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "certificate_number",
            "label": "Certificate",
            "field": "certificate_number",
            "sort": "certificate_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Badge",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "email_address",
            "label": "Email address",
            "field": "email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "avatar",
            "label": "Avatar",
            "field": "has_avatar",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "assigned_hours",
            "label": "Assigned hours",
            "field": "assigned_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "away_until",
            "label": "Away until",
            "field": "away_until",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_employee",
        "summary": "Create an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "skills",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `skills` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The employee",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The employee already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{uuid}": {
      "get": {
        "operationId": "get_employee",
        "summary": "Retrieve an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "skills",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `skills` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_employee",
        "summary": "Update an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "skills",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `skills` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The employee",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_employee",
        "summary": "Delete an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{uuid}/activate": {
      "post": {
        "operationId": "activate_employee",
        "summary": "Activate an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{employee_uuid}/avatar": {
      "get": {
        "operationId": "download_employee_avatar",
        "summary": "Download an employee's avatar",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/employees/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_employee",
        "summary": "Deactivate an employee",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Employee"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{employee_uuid}/skills": {
      "get": {
        "operationId": "list_employee_skills",
        "summary": "List employee skills",
        "description": "The skills an employee holds, each until the day it expires",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "expires_on",
                "-expires_on",
                "skill",
                "-skill",
                "updated_at",
                "-updated_at"
              ],
              "default": "skill"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkillList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "expires_on",
            "label": "Expires",
            "field": "expires_on",
            "sort": "expires_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "employee",
            "label": "Employee",
            "field": "employee.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "skill",
            "label": "Skill",
            "field": "skill.name",
            "sort": "skill",
            "kind": "text",
            "currency": null
          },
          {
            "key": "assigned_hours",
            "label": "Assigned hours",
            "field": "assigned_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_employee_skill",
        "summary": "Create an employee skill",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeeSkillCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The employee skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The employee skill already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{employee_uuid}/skills/{uuid}": {
      "get": {
        "operationId": "get_employee_skill",
        "summary": "Retrieve an employee skill",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_employee_skill",
        "summary": "Update an employee skill",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeeSkillUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The employee skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{employee_uuid}/skills/{uuid}/activate": {
      "post": {
        "operationId": "activate_employee_skill",
        "summary": "Activate an employee skill",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/employees/{employee_uuid}/skills/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_employee_skill",
        "summary": "Deactivate an employee skill",
        "tags": [
          "employees"
        ],
        "parameters": [
          {
            "name": "employee_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmployeeSkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The employee skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmployeeSkill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/events": {
      "get": {
        "operationId": "list_events",
        "summary": "List events",
        "tags": [
          "events"
        ],
        "parameters": [
          {
            "name": "subject[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A subject's uuid"
              }
            },
            "description": "Events about these records, each by its uuid. A company's events include those of its customer and vendor roles",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "A record's history by its uuid: the acts it was the subject of, those on the records it holds (a contact's on its company, a return's on its order), and for an inventory line every act that moved it. It holds every act the record's page shows, those the feed and webhooks leave out included (a transaction's `reposted`, an email's `arrived`)",
            "explode": true
          },
          {
            "name": "type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Events of these types, each `<object>.<action>` (`invoice.sent`); either part may be `*` (`sales_order.*`, `*.deleted`)",
            "explode": true
          },
          {
            "name": "subject_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "account_settings",
                  "accounting_transaction",
                  "alternate",
                  "applicability",
                  "autoquote_settings",
                  "avsight_integration",
                  "avsight_migration",
                  "billing_address",
                  "bin",
                  "calendar",
                  "calendar_event",
                  "carrier",
                  "carrier_account",
                  "certificate_standard",
                  "charge",
                  "clause",
                  "combined_tax_rate",
                  "company",
                  "company_address",
                  "company_segment",
                  "condition",
                  "consignor_statement",
                  "contact",
                  "contact_role",
                  "corepilot_legacy_migration",
                  "customer",
                  "customer_exchange",
                  "customer_lease",
                  "customer_no_quote_reason",
                  "customer_part_price",
                  "customer_quote",
                  "customer_quote_archive_reason",
                  "customer_quote_lost_reason",
                  "customer_repair_price",
                  "customer_return",
                  "customer_return_reason",
                  "customer_tax_exemption",
                  "dashboard",
                  "dashboard_tile",
                  "direct_rfq_condition",
                  "direct_rfq_repair_service",
                  "direct_rfq_tag_type",
                  "document_template",
                  "email_banner",
                  "email_layout",
                  "email_layout_block",
                  "email_sender_rule",
                  "email_sending_settings",
                  "email_suppression",
                  "email_template",
                  "employee",
                  "employee_skill",
                  "export",
                  "external_stream",
                  "external_system",
                  "facility",
                  "freight_term",
                  "fx_rate",
                  "import",
                  "import_mapping",
                  "inbound_email_message",
                  "inspection_checklist",
                  "inspection_checklist_item",
                  "inventory_code",
                  "inventory_line",
                  "investor_statement",
                  "invoice",
                  "lead_time",
                  "ledger_account",
                  "logged_message",
                  "manifest",
                  "manufacturer",
                  "marketplace",
                  "marketplace_catalog",
                  "marketplace_condition",
                  "marketplace_integration",
                  "marketplace_measurement_unit",
                  "marketplace_repair_service",
                  "marketplace_tag_type",
                  "measurement_unit",
                  "membership",
                  "migration",
                  "onboarding_step_answer",
                  "organization",
                  "part",
                  "part_classification",
                  "part_repair_service",
                  "payment_term",
                  "print_node_integration",
                  "print_request",
                  "printer",
                  "protection_reason",
                  "publication",
                  "publication_category",
                  "publication_revision",
                  "purchase_order",
                  "quickbooks_integration",
                  "receipt",
                  "rejection",
                  "rejection_reason",
                  "release",
                  "repair_order",
                  "repair_order_stage",
                  "repair_service",
                  "requirement",
                  "rfq_reading",
                  "role",
                  "sales_order",
                  "salesforce_integration",
                  "salesperson",
                  "sending_address",
                  "share",
                  "ship_via",
                  "skill",
                  "sourcing_request",
                  "tax_category",
                  "tax_destination",
                  "tax_origin",
                  "tax_rate",
                  "team",
                  "triage_rule",
                  "upload",
                  "upload_category",
                  "vendor",
                  "vendor_capability",
                  "vendor_certificate",
                  "vendor_exchange",
                  "vendor_inventory_line",
                  "vendor_lease",
                  "vendor_part_price",
                  "vendor_repair_price",
                  "vendor_return",
                  "vendor_rfq",
                  "view",
                  "voucher",
                  "warehouse",
                  "webhook_endpoint",
                  "work_center",
                  "work_order",
                  "work_order_gate",
                  "work_order_material_disposition",
                  "work_order_material_inspection_compliance",
                  "work_order_material_ndt_quantity_status",
                  "work_order_material_pick_status",
                  "work_order_material_removal_priority",
                  "work_order_material_supply_status",
                  "work_order_settings",
                  "work_order_stage",
                  "work_order_task_stage",
                  "work_order_template",
                  "work_order_template_category",
                  "work_station"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "creator[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A membership's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "action[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access_token_minted",
                  "access_token_revoked",
                  "activated",
                  "added_to_receipt",
                  "added_to_repair_order",
                  "added_to_suppression_list",
                  "answered_no_quote",
                  "application_authorized",
                  "application_revoked",
                  "applied",
                  "approved",
                  "arrived",
                  "asked",
                  "asked_for",
                  "assigned",
                  "assignments_forgotten",
                  "autoquoted",
                  "bought_outright",
                  "built",
                  "calendar_feed_issued",
                  "calendar_feed_reset",
                  "calibrated",
                  "cancelled",
                  "capabilities_changed",
                  "carried_over",
                  "certificate_deleted",
                  "certificate_drafted",
                  "certificate_revised",
                  "certificate_signed",
                  "certificate_signed_by_hand",
                  "certificate_voided",
                  "change_acknowledged",
                  "charge_billed",
                  "checked",
                  "chosen_to_open_first",
                  "closed",
                  "combined",
                  "combined_into",
                  "comparison_stated",
                  "company_linked",
                  "company_unlinked",
                  "completed",
                  "condition_mapped",
                  "confirmed",
                  "connected",
                  "contacts_changed",
                  "conversion_reverted",
                  "converted",
                  "converted_to_cost_pool",
                  "copied",
                  "copied_from",
                  "core_added_to_repair_order",
                  "core_allocated",
                  "core_billed",
                  "core_bought",
                  "core_due_revised",
                  "core_owed",
                  "core_purchase_removed",
                  "core_received",
                  "core_repair_billed",
                  "core_returned_to_inventory",
                  "core_scrapped",
                  "core_shipped",
                  "core_unshipped",
                  "corrected",
                  "correction_generated",
                  "cost_pool_revised",
                  "cost_recovered",
                  "cost_transferred_in",
                  "cost_transferred_out",
                  "cost_unpriced",
                  "cost_variance",
                  "created",
                  "credentials_changed",
                  "credit_generated",
                  "credit_memo_generated",
                  "credit_memo_sent",
                  "credited",
                  "currency_changed",
                  "custody_allocated",
                  "custody_returned",
                  "customer_replied",
                  "customer_unit_received",
                  "customer_unit_returned",
                  "customer_unit_scrapped",
                  "deactivated",
                  "declined",
                  "declined_quote_sending_started",
                  "declined_quote_sending_stopped",
                  "defaults_changed",
                  "deleted",
                  "did_not_arrive",
                  "direct_rfq_answers_changed",
                  "disconnected",
                  "downloaded",
                  "draft_discarded",
                  "drafted",
                  "drafted_from_message",
                  "due_back_revised",
                  "duplicated",
                  "duplicated_from",
                  "email_bounced",
                  "email_reported_as_spam",
                  "email_resumed",
                  "email_stopped",
                  "email_template_chosen",
                  "email_template_cleared",
                  "emailed",
                  "exchange_activity_recorded",
                  "exchange_cancelled",
                  "exchange_opened",
                  "expired",
                  "external_key_linked",
                  "external_key_unlinked",
                  "failed",
                  "fields_drafted",
                  "file_attached",
                  "file_copying_started",
                  "file_copying_stopped",
                  "file_removed",
                  "files_shared",
                  "finding_added",
                  "finding_removed",
                  "finding_updated",
                  "finish_refused",
                  "finish_scheduled",
                  "finished",
                  "following_revised",
                  "fx_rate_stamped",
                  "gate_reached",
                  "generated",
                  "given",
                  "held",
                  "held_for_review",
                  "hidden_marketplaces_changed",
                  "hold_lifted",
                  "hold_placed",
                  "humidity_over_limit",
                  "ignored",
                  "initial_load_reopened",
                  "inspection_completed",
                  "inspection_discarded",
                  "inspection_item_answered",
                  "inspection_item_waived",
                  "inspection_reopened",
                  "inspection_started",
                  "instruction_added",
                  "instruction_assigned",
                  "instruction_cancelled",
                  "instruction_carried_forward",
                  "instruction_completed",
                  "instruction_removed",
                  "instruction_reopened",
                  "instruction_updated",
                  "instructions_imported",
                  "inventory_line_minted",
                  "invited",
                  "invoice_generated",
                  "invoice_sent",
                  "issue_allocated",
                  "issue_quarantined",
                  "issue_removed",
                  "issue_seeded",
                  "issue_split_planned",
                  "kept_as_draft",
                  "kept_from_autoquote",
                  "labor_clocked_in",
                  "labor_charged",
                  "labor_clocked_out",
                  "labor_corrected",
                  "labor_keyed",
                  "labor_removed",
                  "layout_fell_back",
                  "lease_opened",
                  "lease_unit_allocated",
                  "line_added",
                  "line_allocated",
                  "line_cancelled",
                  "line_deallocated",
                  "line_estimate_approved",
                  "line_estimate_recorded",
                  "line_final_cost_recorded",
                  "line_matched",
                  "line_moved",
                  "line_picked",
                  "line_promise_revised",
                  "line_rejected",
                  "line_removed",
                  "line_repointed",
                  "line_returned_to_inventory",
                  "line_scrapped",
                  "line_shipped",
                  "line_split",
                  "line_unpicked",
                  "line_unshipped",
                  "line_unverified",
                  "line_updated",
                  "line_verified",
                  "lines_aligned_to_requests",
                  "lines_imported",
                  "lines_moved_in",
                  "lines_reordered",
                  "load_failed",
                  "loaded",
                  "logged",
                  "lost",
                  "lost_reason_changed",
                  "mapping_saved",
                  "material_added",
                  "material_added_to_repair_order",
                  "material_flagged_unused",
                  "material_issued",
                  "material_moved",
                  "material_ordered",
                  "material_reallocated",
                  "material_rejected",
                  "material_removed",
                  "material_returned",
                  "material_turn_in_cancelled",
                  "material_turned_in",
                  "material_updated",
                  "material_visually_checked",
                  "materials_imported",
                  "measurement_unit_mapped",
                  "members_changed",
                  "moved",
                  "noted_from_message",
                  "occurrence_cancelled",
                  "occurrence_revised",
                  "onboarding_dismissed",
                  "onboarding_undismissed",
                  "opened",
                  "ordered",
                  "orders_left_waiting",
                  "outright_purchase_removed",
                  "package_added",
                  "package_arrived",
                  "part_numbers_resolved",
                  "part_removed",
                  "participant_added",
                  "parts_added",
                  "parts_issued",
                  "parts_returned_to_inventory",
                  "parts_shipped",
                  "parts_unshipped",
                  "payment_applied",
                  "payment_recorded",
                  "payment_unapplied",
                  "payment_voided",
                  "period_billed",
                  "period_charged",
                  "posted",
                  "posting_recorded",
                  "print_expired",
                  "print_failed",
                  "print_requested",
                  "printed",
                  "promise_revised",
                  "protection_held",
                  "protection_released",
                  "published",
                  "publications_applied",
                  "publications_changed",
                  "purchased_without_coverage",
                  "push_back_scheduled",
                  "quickbooks_linked",
                  "quickbooks_relinked",
                  "quickbooks_unlinked",
                  "quote_line_added",
                  "quote_line_moved",
                  "quote_line_removed",
                  "quote_line_updated",
                  "quote_lines_aligned_to_requests",
                  "quoted_unit_unavailable",
                  "quoted_vendor_inventory_unavailable",
                  "quoting_reading_started",
                  "quoting_reading_stopped",
                  "rate_revised",
                  "read",
                  "receipt_created",
                  "receipt_received",
                  "received",
                  "recorded",
                  "records_skipped",
                  "records_unskipped",
                  "refund_clamped",
                  "reissued",
                  "removed_from_suppression_list",
                  "renamed",
                  "release_cancelled",
                  "release_generated",
                  "release_shipped",
                  "release_split",
                  "release_unshipped",
                  "releases_combined",
                  "reopened",
                  "repair_service_mapped",
                  "replacement_ordered",
                  "reply_handled",
                  "reposted",
                  "reprint_requested",
                  "reprinted",
                  "reprocessed",
                  "request_line_added",
                  "request_line_moved",
                  "request_line_removed",
                  "request_line_updated",
                  "requested_for",
                  "requirement_added",
                  "requirement_removed",
                  "requirement_waived",
                  "requirements_changed",
                  "resent",
                  "restated_from_message",
                  "restored",
                  "resumed",
                  "return_opened",
                  "returned_to_inventory",
                  "returned_to_queue",
                  "returned_to_vendor",
                  "revision_adopted",
                  "role_mapped",
                  "roles_changed",
                  "scrapped",
                  "sender_allowed",
                  "sender_blocked",
                  "sending_domain_failing",
                  "sending_domain_recovered",
                  "sent",
                  "sent_to_avsight",
                  "sent_to_purchasing",
                  "sent_to_sourcing",
                  "share_extended",
                  "share_fresh_link_sent",
                  "share_link_reissued",
                  "share_recipient_extended",
                  "share_recipient_revoked",
                  "share_recipients_added",
                  "share_revised",
                  "share_revoked",
                  "shared_document_replaced",
                  "shared_file_downloaded",
                  "shared_file_removed",
                  "shared_files_added",
                  "shared_files_downloaded",
                  "shared_files_opened",
                  "shipment_cancelled",
                  "shipped",
                  "shop_supply_added",
                  "shop_supply_removed",
                  "shop_supply_updated",
                  "signed_out",
                  "signer_skill_changed",
                  "skipped",
                  "skipped_away",
                  "sold_outright",
                  "sourcing_request_carried_over",
                  "split",
                  "split_from",
                  "phases_changed",
                  "statement_sent",
                  "status_changed",
                  "stopped_opening_first",
                  "superseded",
                  "supply_claimed",
                  "supply_landed",
                  "supply_reassigned",
                  "supply_released",
                  "support_access_turned_off",
                  "support_access_turned_on",
                  "system_of_record_switched",
                  "task_added",
                  "task_assigned",
                  "task_cancelled",
                  "task_removed",
                  "task_skills_changed",
                  "task_status_changed",
                  "task_updated",
                  "tasks_imported",
                  "tasks_made_ready",
                  "tasks_repriced",
                  "tax_applied",
                  "tax_suppressed",
                  "teardown_completed",
                  "teardown_undone",
                  "template_applied",
                  "template_instructions_copied",
                  "template_materials_copied",
                  "tier_changed",
                  "trashed",
                  "trigger_skipped",
                  "unit_added_to_repair_order",
                  "unit_returned",
                  "unit_shipped_back",
                  "unit_unshipped",
                  "unrecovered_cost_billed",
                  "updated",
                  "value_adjusted",
                  "value_matches_changed",
                  "verified",
                  "version_added",
                  "voucher_generated",
                  "vouchered",
                  "warehouse_defaults_applied",
                  "warehouse_defaults_dismissed",
                  "withdrawn",
                  "won",
                  "work_completed",
                  "work_started",
                  "written_off"
                ],
                "x-enum-labels": [
                  "Access token minted",
                  "Access token revoked",
                  "Activated",
                  "Added to receipt",
                  "Added to repair order",
                  "Added to suppression list",
                  "Answered no quote",
                  "Application authorized",
                  "Application revoked",
                  "Rows applied",
                  "Approved",
                  "Arrived",
                  "Asked",
                  "Asked for",
                  "Assigned",
                  "Assignments forgotten",
                  "Autoquoted",
                  "Bought outright",
                  "Built",
                  "Calendar feed issued",
                  "Calendar feed reset",
                  "Calibrated",
                  "Cancelled",
                  "Capabilities changed",
                  "Carried over",
                  "Certificate deleted",
                  "Certificate drafted",
                  "Certificate revised",
                  "Certificate signed",
                  "Certificate signed by hand",
                  "Certificate voided",
                  "Change acknowledged",
                  "Charge billed",
                  "Rows checked",
                  "Chosen to open first",
                  "Closed",
                  "Combined",
                  "Combined into",
                  "Comparison stated",
                  "Company linked",
                  "Company unlinked",
                  "Completed",
                  "Condition mapped",
                  "Confirmed",
                  "Connected",
                  "Contacts changed",
                  "Conversion reverted",
                  "Converted",
                  "Converted to cost pool",
                  "Copied",
                  "Copied from",
                  "Core added to repair order",
                  "Core allocated",
                  "Core billed",
                  "Core bought",
                  "Core due revised",
                  "Core owed",
                  "Core purchase removed",
                  "Core received",
                  "Core repair billed",
                  "Core returned to inventory",
                  "Core scrapped",
                  "Core shipped",
                  "Core unshipped",
                  "Corrected",
                  "Correction generated",
                  "Cost pool revised",
                  "Cost recovered",
                  "Cost transferred in",
                  "Cost transferred out",
                  "Cost unpriced",
                  "Cost variance",
                  "Created",
                  "Credentials changed",
                  "Credit generated",
                  "Credit memo generated",
                  "Credit memo sent",
                  "Credited",
                  "Currency changed",
                  "Custody allocated",
                  "Custody returned",
                  "Customer replied",
                  "Customer unit received",
                  "Customer unit returned",
                  "Customer unit scrapped",
                  "Deactivated",
                  "Declined",
                  "Declined quote sending started",
                  "Declined quote sending stopped",
                  "Defaults changed",
                  "Deleted",
                  "Did not arrive",
                  "Direct RFQ answers changed",
                  "Disconnected",
                  "Form downloaded",
                  "Draft discarded",
                  "Drafted",
                  "Drafted from message",
                  "Due back revised",
                  "Duplicated",
                  "Duplicated from",
                  "Email bounced",
                  "Email reported as spam",
                  "Email resumed",
                  "Email stopped",
                  "Email template chosen",
                  "Email template cleared",
                  "Emailed",
                  "Exchange activity recorded",
                  "Exchange cancelled",
                  "Exchange opened",
                  "Expired",
                  "External key linked",
                  "External key unlinked",
                  "Failed",
                  "Fields drafted",
                  "File attached",
                  "File copying started",
                  "File copying stopped",
                  "File removed",
                  "Files shared",
                  "Finding added",
                  "Finding removed",
                  "Finding updated",
                  "Finish refused",
                  "Finish scheduled",
                  "Finished",
                  "This and following changed",
                  "FX rate stamped",
                  "Gate reached",
                  "Form generated",
                  "Given",
                  "Held",
                  "Held for review",
                  "Hidden marketplaces changed",
                  "Hold lifted",
                  "Hold placed",
                  "Humidity over limit",
                  "Ignored",
                  "Initial load reopened",
                  "Inspection completed",
                  "Inspection discarded",
                  "Inspection item answered",
                  "Inspection item waived",
                  "Inspection reopened",
                  "Inspection started",
                  "Instruction added",
                  "Instruction assigned",
                  "Instruction cancelled",
                  "Instruction carried forward",
                  "Instruction completed",
                  "Instruction removed",
                  "Instruction reopened",
                  "Instruction updated",
                  "Instructions imported",
                  "Inventory line minted",
                  "Invited",
                  "Invoice generated",
                  "Invoice sent",
                  "Issue allocated",
                  "Issue quarantined",
                  "Issue removed",
                  "Issue seeded",
                  "Issue split planned",
                  "Kept as draft",
                  "Kept from autoquote",
                  "Labor clocked in",
                  "Labor charged",
                  "Labor clocked out",
                  "Labor corrected",
                  "Labor keyed",
                  "Labor removed",
                  "Layout fell back",
                  "Lease opened",
                  "Lease unit allocated",
                  "Line added",
                  "Line allocated",
                  "Line cancelled",
                  "Line deallocated",
                  "Line estimate approved",
                  "Line estimate recorded",
                  "Line final cost recorded",
                  "Line matched",
                  "Line moved",
                  "Line picked",
                  "Line promise revised",
                  "Line rejected",
                  "Line removed",
                  "Line repointed",
                  "Line returned to inventory",
                  "Line scrapped",
                  "Line shipped",
                  "Line split",
                  "Line unpicked",
                  "Line unshipped",
                  "Line unverified",
                  "Line updated",
                  "Line verified",
                  "Lines aligned to requests",
                  "Lines imported",
                  "Lines moved in",
                  "Lines reordered",
                  "Load failed",
                  "Loaded",
                  "Logged",
                  "Lost",
                  "Lost reason changed",
                  "Mapping saved",
                  "Material added",
                  "Material added to repair order",
                  "Material flagged unused",
                  "Material issued",
                  "Material moved",
                  "Material ordered",
                  "Material reallocated",
                  "Material rejected",
                  "Material removed",
                  "Material returned",
                  "Material turn in cancelled",
                  "Material turned in",
                  "Material updated",
                  "Material visually checked",
                  "Materials imported",
                  "Measurement unit mapped",
                  "Members changed",
                  "Moved",
                  "Noted from message",
                  "Occurrence cancelled",
                  "Occurrence changed",
                  "Onboarding dismissed",
                  "Onboarding undismissed",
                  "Opened",
                  "Ordered",
                  "Orders left waiting",
                  "Outright purchase removed",
                  "Package added",
                  "Package arrived",
                  "Part numbers resolved",
                  "Part removed",
                  "Participant added",
                  "Parts added",
                  "Parts issued",
                  "Parts returned to inventory",
                  "Parts shipped",
                  "Parts unshipped",
                  "Payment applied",
                  "Payment recorded",
                  "Payment unapplied",
                  "Payment voided",
                  "Period billed",
                  "Period charged",
                  "Posted",
                  "Posting recorded",
                  "Print expired",
                  "Print failed",
                  "Print requested",
                  "Printed",
                  "Promise revised",
                  "Protection held",
                  "Protection released",
                  "Published",
                  "Publications applied",
                  "Publications changed",
                  "Purchased without coverage",
                  "Push back scheduled",
                  "QuickBooks linked",
                  "QuickBooks relinked",
                  "QuickBooks unlinked",
                  "Quote line added",
                  "Quote line moved",
                  "Quote line removed",
                  "Quote line updated",
                  "Quote lines aligned to requests",
                  "Quoted unit unavailable",
                  "Quoted vendor inventory unavailable",
                  "Quoting reading started",
                  "Quoting reading stopped",
                  "Rate revised",
                  "Read",
                  "Receipt created",
                  "Receipt received",
                  "Received",
                  "Recorded",
                  "Records skipped",
                  "Records unskipped",
                  "Refund clamped",
                  "Reissued",
                  "Removed from suppression list",
                  "Renamed",
                  "Release cancelled",
                  "Release generated",
                  "Release shipped",
                  "Release split",
                  "Release unshipped",
                  "Releases combined",
                  "Reopened",
                  "Repair service mapped",
                  "Replacement ordered",
                  "Reply handled",
                  "Reposted",
                  "Reprint requested",
                  "Reprinted",
                  "Reprocessed",
                  "Request line added",
                  "Request line moved",
                  "Request line removed",
                  "Request line updated",
                  "Requested for",
                  "Requirement added",
                  "Requirement removed",
                  "Requirement waived",
                  "Requirements changed",
                  "Resent",
                  "Restated from message",
                  "Restored",
                  "Resumed",
                  "Return opened",
                  "Returned to inventory",
                  "Returned to queue",
                  "Returned to vendor",
                  "Revision adopted",
                  "Role mapped",
                  "Roles changed",
                  "Scrapped",
                  "Sender allowed",
                  "Sender blocked",
                  "Sending domain failing",
                  "Sending domain recovered",
                  "Sent",
                  "Sent to AvSight",
                  "Sent to purchasing",
                  "Sent to sourcing",
                  "Share extended",
                  "Share fresh link sent",
                  "Share link reissued",
                  "Share recipient extended",
                  "Share recipient revoked",
                  "Share recipients added",
                  "Share revised",
                  "Share revoked",
                  "Shared document replaced",
                  "Shared file downloaded",
                  "Shared file removed",
                  "Shared files added",
                  "Shared files downloaded",
                  "Shared files opened",
                  "Shipment cancelled",
                  "Shipped",
                  "Shop supply added",
                  "Shop supply removed",
                  "Shop supply updated",
                  "Signed out",
                  "Signer skill changed",
                  "Skipped",
                  "Skipped away",
                  "Sold outright",
                  "Sourcing request carried over",
                  "Split",
                  "Split from",
                  "Phases changed",
                  "Statement sent",
                  "Status changed",
                  "Stopped opening first",
                  "Superseded",
                  "Supply claimed",
                  "Supply landed",
                  "Supply reassigned",
                  "Supply released",
                  "Support access turned off",
                  "Support access turned on",
                  "Made CorePilot the system of record",
                  "Task added",
                  "Task assigned",
                  "Task cancelled",
                  "Task removed",
                  "Task skills changed",
                  "Task status changed",
                  "Task updated",
                  "Tasks imported",
                  "Tasks made ready to work",
                  "Tasks repriced",
                  "Tax applied",
                  "Tax suppressed",
                  "Teardown completed",
                  "Teardown undone",
                  "Template applied",
                  "Template instructions copied",
                  "Template materials copied",
                  "Tier changed",
                  "Trashed",
                  "Trigger skipped",
                  "Unit added to repair order",
                  "Unit returned",
                  "Unit shipped back",
                  "Unit unshipped",
                  "Unrecovered cost billed",
                  "Updated",
                  "Value adjusted",
                  "Value matches changed",
                  "Verified",
                  "Version added",
                  "Voucher generated",
                  "Vouchered",
                  "Warehouse defaults applied",
                  "Warehouse defaults dismissed",
                  "Withdrawn",
                  "Won",
                  "Work completed",
                  "Work started",
                  "Written off"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "after",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Resume a feed: what came after this row, oldest first. Keep the last uuid you read and ask again; an empty page means nothing new yet. A row is stamped before it commits, so a poller that must see every row resumes a few seconds back and skips what it has seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EventListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "creator",
            "label": "Who acted",
            "kind": "options",
            "references": [
              "membership"
            ]
          },
          {
            "key": "subject_type",
            "label": "Record",
            "kind": "options",
            "options": [
              {
                "value": "account_settings",
                "label": "Account settings"
              },
              {
                "value": "accounting_transaction",
                "label": "Accounting transaction"
              },
              {
                "value": "alternate",
                "label": "Alternate"
              },
              {
                "value": "applicability",
                "label": "Applicability"
              },
              {
                "value": "autoquote_settings",
                "label": "Autoquote settings"
              },
              {
                "value": "avsight_integration",
                "label": "AvSight integration"
              },
              {
                "value": "avsight_migration",
                "label": "AvSight migration"
              },
              {
                "value": "billing_address",
                "label": "Billing address"
              },
              {
                "value": "bin",
                "label": "Bin"
              },
              {
                "value": "calendar",
                "label": "Calendar"
              },
              {
                "value": "calendar_event",
                "label": "Calendar event"
              },
              {
                "value": "carrier",
                "label": "Carrier"
              },
              {
                "value": "carrier_account",
                "label": "Carrier account"
              },
              {
                "value": "certificate_standard",
                "label": "Certificate standard"
              },
              {
                "value": "charge",
                "label": "Charge"
              },
              {
                "value": "clause",
                "label": "Clause"
              },
              {
                "value": "combined_tax_rate",
                "label": "Combined tax rate"
              },
              {
                "value": "company",
                "label": "Company"
              },
              {
                "value": "company_address",
                "label": "Company address"
              },
              {
                "value": "company_segment",
                "label": "Company segment"
              },
              {
                "value": "condition",
                "label": "Condition"
              },
              {
                "value": "consignor_statement",
                "label": "Consignor statement"
              },
              {
                "value": "contact",
                "label": "Contact"
              },
              {
                "value": "contact_role",
                "label": "Contact role"
              },
              {
                "value": "corepilot_legacy_migration",
                "label": "CorePilot legacy migration"
              },
              {
                "value": "customer",
                "label": "Customer"
              },
              {
                "value": "customer_exchange",
                "label": "Customer exchange"
              },
              {
                "value": "customer_lease",
                "label": "Customer lease"
              },
              {
                "value": "customer_no_quote_reason",
                "label": "Customer no quote reason"
              },
              {
                "value": "customer_quote",
                "label": "Customer quote"
              },
              {
                "value": "customer_quote_archive_reason",
                "label": "Customer quote archive reason"
              },
              {
                "value": "customer_quote_lost_reason",
                "label": "Customer quote lost reason"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "customer_return_reason",
                "label": "Customer return reason"
              },
              {
                "value": "customer_tax_exemption",
                "label": "Customer tax exemption"
              },
              {
                "value": "direct_rfq_condition",
                "label": "Direct RFQ condition"
              },
              {
                "value": "direct_rfq_repair_service",
                "label": "Direct RFQ repair service"
              },
              {
                "value": "direct_rfq_tag_type",
                "label": "Direct RFQ tag type"
              },
              {
                "value": "document_template",
                "label": "Document template"
              },
              {
                "value": "email_banner",
                "label": "Email banner"
              },
              {
                "value": "email_layout",
                "label": "Email layout"
              },
              {
                "value": "email_layout_block",
                "label": "Email layout block"
              },
              {
                "value": "email_sender_rule",
                "label": "Email sender rule"
              },
              {
                "value": "email_sending_settings",
                "label": "Email sending settings"
              },
              {
                "value": "email_suppression",
                "label": "Email suppression"
              },
              {
                "value": "email_template",
                "label": "Email template"
              },
              {
                "value": "employee",
                "label": "Employee"
              },
              {
                "value": "employee_skill",
                "label": "Employee skill"
              },
              {
                "value": "export",
                "label": "Export"
              },
              {
                "value": "facility",
                "label": "Facility"
              },
              {
                "value": "freight_term",
                "label": "Freight term"
              },
              {
                "value": "fx_rate",
                "label": "FX rate"
              },
              {
                "value": "import",
                "label": "Import"
              },
              {
                "value": "import_mapping",
                "label": "Import mapping"
              },
              {
                "value": "inbound_email_message",
                "label": "Inbound email message"
              },
              {
                "value": "inspection_checklist",
                "label": "Inspection checklist"
              },
              {
                "value": "inspection_checklist_item",
                "label": "Inspection checklist item"
              },
              {
                "value": "inventory_code",
                "label": "Inventory code"
              },
              {
                "value": "inventory_line",
                "label": "Inventory line"
              },
              {
                "value": "investor_statement",
                "label": "Investor statement"
              },
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "lead_time",
                "label": "Lead time"
              },
              {
                "value": "ledger_account",
                "label": "Ledger account"
              },
              {
                "value": "logged_message",
                "label": "Logged message"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "manufacturer",
                "label": "Manufacturer"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              },
              {
                "value": "marketplace_catalog",
                "label": "Marketplace catalog"
              },
              {
                "value": "marketplace_condition",
                "label": "Marketplace condition"
              },
              {
                "value": "marketplace_measurement_unit",
                "label": "Marketplace measurement unit"
              },
              {
                "value": "marketplace_repair_service",
                "label": "Marketplace repair service"
              },
              {
                "value": "marketplace_tag_type",
                "label": "Marketplace tag type"
              },
              {
                "value": "measurement_unit",
                "label": "Measurement unit"
              },
              {
                "value": "migration",
                "label": "Migration"
              },
              {
                "value": "organization",
                "label": "Organization"
              },
              {
                "value": "part",
                "label": "Part"
              },
              {
                "value": "part_classification",
                "label": "Part classification"
              },
              {
                "value": "customer_part_price",
                "label": "Part price"
              },
              {
                "value": "part_repair_service",
                "label": "Part repair service"
              },
              {
                "value": "payment_term",
                "label": "Payment term"
              },
              {
                "value": "print_request",
                "label": "Print request"
              },
              {
                "value": "printer",
                "label": "Printer"
              },
              {
                "value": "protection_reason",
                "label": "Protection reason"
              },
              {
                "value": "publication",
                "label": "Publication"
              },
              {
                "value": "publication_category",
                "label": "Publication category"
              },
              {
                "value": "publication_revision",
                "label": "Publication revision"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "quickbooks_integration",
                "label": "QuickBooks integration"
              },
              {
                "value": "receipt",
                "label": "Receipt"
              },
              {
                "value": "rejection",
                "label": "Rejection"
              },
              {
                "value": "rejection_reason",
                "label": "Rejection reason"
              },
              {
                "value": "release",
                "label": "Release"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "repair_order_stage",
                "label": "Repair order stage"
              },
              {
                "value": "customer_repair_price",
                "label": "Repair price"
              },
              {
                "value": "repair_service",
                "label": "Repair service"
              },
              {
                "value": "requirement",
                "label": "Requirement"
              },
              {
                "value": "rfq_reading",
                "label": "RFQ reading"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              },
              {
                "value": "salesforce_integration",
                "label": "Salesforce integration"
              },
              {
                "value": "salesperson",
                "label": "Salesperson"
              },
              {
                "value": "sending_address",
                "label": "Sending address"
              },
              {
                "value": "share",
                "label": "Share"
              },
              {
                "value": "ship_via",
                "label": "Ship via"
              },
              {
                "value": "skill",
                "label": "Skill"
              },
              {
                "value": "sourcing_request",
                "label": "Sourcing request"
              },
              {
                "value": "tax_category",
                "label": "Tax category"
              },
              {
                "value": "tax_destination",
                "label": "Tax destination"
              },
              {
                "value": "tax_origin",
                "label": "Tax origin"
              },
              {
                "value": "tax_rate",
                "label": "Tax rate"
              },
              {
                "value": "triage_rule",
                "label": "Triage rule"
              },
              {
                "value": "upload",
                "label": "Upload"
              },
              {
                "value": "upload_category",
                "label": "Upload category"
              },
              {
                "value": "vendor",
                "label": "Vendor"
              },
              {
                "value": "vendor_capability",
                "label": "Vendor capability"
              },
              {
                "value": "vendor_certificate",
                "label": "Vendor certificate"
              },
              {
                "value": "vendor_exchange",
                "label": "Vendor exchange"
              },
              {
                "value": "vendor_inventory_line",
                "label": "Vendor inventory line"
              },
              {
                "value": "vendor_lease",
                "label": "Vendor lease"
              },
              {
                "value": "vendor_part_price",
                "label": "Vendor part price"
              },
              {
                "value": "vendor_repair_price",
                "label": "Vendor repair price"
              },
              {
                "value": "vendor_return",
                "label": "Vendor return"
              },
              {
                "value": "vendor_rfq",
                "label": "Vendor RFQ"
              },
              {
                "value": "voucher",
                "label": "Voucher"
              },
              {
                "value": "warehouse",
                "label": "Warehouse"
              },
              {
                "value": "work_center",
                "label": "Work center"
              },
              {
                "value": "work_order",
                "label": "Work order"
              },
              {
                "value": "work_order_gate",
                "label": "Work order gate"
              },
              {
                "value": "work_order_material_disposition",
                "label": "Work order material disposition"
              },
              {
                "value": "work_order_material_inspection_compliance",
                "label": "Work order material inspection compliance"
              },
              {
                "value": "work_order_material_ndt_quantity_status",
                "label": "Work order material NDT quantity status"
              },
              {
                "value": "work_order_material_pick_status",
                "label": "Work order material pick status"
              },
              {
                "value": "work_order_material_removal_priority",
                "label": "Work order material removal priority"
              },
              {
                "value": "work_order_material_supply_status",
                "label": "Work order material supply status"
              },
              {
                "value": "work_order_settings",
                "label": "Work order settings"
              },
              {
                "value": "work_order_stage",
                "label": "Work order stage"
              },
              {
                "value": "work_order_task_stage",
                "label": "Work order task stage"
              },
              {
                "value": "work_order_template",
                "label": "Work order template"
              },
              {
                "value": "work_order_template_category",
                "label": "Work order template category"
              },
              {
                "value": "work_station",
                "label": "Work station"
              }
            ]
          },
          {
            "key": "action",
            "label": "Action",
            "kind": "options",
            "options": [
              {
                "value": "activated",
                "label": "Activated"
              },
              {
                "value": "added_to_receipt",
                "label": "Added to receipt"
              },
              {
                "value": "added_to_repair_order",
                "label": "Added to repair order"
              },
              {
                "value": "answered_no_quote",
                "label": "Answered no quote"
              },
              {
                "value": "approved",
                "label": "Approved"
              },
              {
                "value": "asked",
                "label": "Asked"
              },
              {
                "value": "asked_for",
                "label": "Asked for"
              },
              {
                "value": "assigned",
                "label": "Assigned"
              },
              {
                "value": "autoquoted",
                "label": "Autoquoted"
              },
              {
                "value": "bought_outright",
                "label": "Bought outright"
              },
              {
                "value": "calibrated",
                "label": "Calibrated"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              },
              {
                "value": "capabilities_changed",
                "label": "Capabilities changed"
              },
              {
                "value": "carried_over",
                "label": "Carried over"
              },
              {
                "value": "certificate_deleted",
                "label": "Certificate deleted"
              },
              {
                "value": "certificate_drafted",
                "label": "Certificate drafted"
              },
              {
                "value": "certificate_revised",
                "label": "Certificate revised"
              },
              {
                "value": "certificate_signed",
                "label": "Certificate signed"
              },
              {
                "value": "certificate_signed_by_hand",
                "label": "Certificate signed by hand"
              },
              {
                "value": "certificate_voided",
                "label": "Certificate voided"
              },
              {
                "value": "change_acknowledged",
                "label": "Change acknowledged"
              },
              {
                "value": "charge_billed",
                "label": "Charge billed"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "combined",
                "label": "Combined"
              },
              {
                "value": "combined_into",
                "label": "Combined into"
              },
              {
                "value": "company_linked",
                "label": "Company linked"
              },
              {
                "value": "company_unlinked",
                "label": "Company unlinked"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "contacts_changed",
                "label": "Contacts changed"
              },
              {
                "value": "conversion_reverted",
                "label": "Conversion reverted"
              },
              {
                "value": "converted",
                "label": "Converted"
              },
              {
                "value": "converted_to_cost_pool",
                "label": "Converted to cost pool"
              },
              {
                "value": "copied",
                "label": "Copied"
              },
              {
                "value": "copied_from",
                "label": "Copied from"
              },
              {
                "value": "core_added_to_repair_order",
                "label": "Core added to repair order"
              },
              {
                "value": "core_allocated",
                "label": "Core allocated"
              },
              {
                "value": "core_billed",
                "label": "Core billed"
              },
              {
                "value": "core_bought",
                "label": "Core bought"
              },
              {
                "value": "core_due_revised",
                "label": "Core due revised"
              },
              {
                "value": "core_owed",
                "label": "Core owed"
              },
              {
                "value": "core_purchase_removed",
                "label": "Core purchase removed"
              },
              {
                "value": "core_received",
                "label": "Core received"
              },
              {
                "value": "core_repair_billed",
                "label": "Core repair billed"
              },
              {
                "value": "core_returned_to_inventory",
                "label": "Core returned to inventory"
              },
              {
                "value": "core_scrapped",
                "label": "Core scrapped"
              },
              {
                "value": "core_shipped",
                "label": "Core shipped"
              },
              {
                "value": "core_unshipped",
                "label": "Core unshipped"
              },
              {
                "value": "corrected",
                "label": "Corrected"
              },
              {
                "value": "correction_generated",
                "label": "Correction generated"
              },
              {
                "value": "cost_pool_revised",
                "label": "Cost pool revised"
              },
              {
                "value": "cost_recovered",
                "label": "Cost recovered"
              },
              {
                "value": "cost_transferred_in",
                "label": "Cost transferred in"
              },
              {
                "value": "cost_transferred_out",
                "label": "Cost transferred out"
              },
              {
                "value": "cost_unpriced",
                "label": "Cost unpriced"
              },
              {
                "value": "cost_variance",
                "label": "Cost variance"
              },
              {
                "value": "created",
                "label": "Created"
              },
              {
                "value": "credit_generated",
                "label": "Credit generated"
              },
              {
                "value": "credit_memo_generated",
                "label": "Credit memo generated"
              },
              {
                "value": "credit_memo_sent",
                "label": "Credit memo sent"
              },
              {
                "value": "credited",
                "label": "Credited"
              },
              {
                "value": "currency_changed",
                "label": "Currency changed"
              },
              {
                "value": "custody_allocated",
                "label": "Custody allocated"
              },
              {
                "value": "custody_returned",
                "label": "Custody returned"
              },
              {
                "value": "customer_replied",
                "label": "Customer replied"
              },
              {
                "value": "customer_unit_received",
                "label": "Customer unit received"
              },
              {
                "value": "customer_unit_returned",
                "label": "Customer unit returned"
              },
              {
                "value": "customer_unit_scrapped",
                "label": "Customer unit scrapped"
              },
              {
                "value": "deactivated",
                "label": "Deactivated"
              },
              {
                "value": "declined",
                "label": "Declined"
              },
              {
                "value": "deleted",
                "label": "Deleted"
              },
              {
                "value": "did_not_arrive",
                "label": "Did not arrive"
              },
              {
                "value": "draft_discarded",
                "label": "Draft discarded"
              },
              {
                "value": "drafted_from_message",
                "label": "Drafted from message"
              },
              {
                "value": "due_back_revised",
                "label": "Due back revised"
              },
              {
                "value": "duplicated",
                "label": "Duplicated"
              },
              {
                "value": "duplicated_from",
                "label": "Duplicated from"
              },
              {
                "value": "email_bounced",
                "label": "Email bounced"
              },
              {
                "value": "email_reported_as_spam",
                "label": "Email reported as spam"
              },
              {
                "value": "emailed",
                "label": "Emailed"
              },
              {
                "value": "exchange_cancelled",
                "label": "Exchange cancelled"
              },
              {
                "value": "exchange_opened",
                "label": "Exchange opened"
              },
              {
                "value": "file_attached",
                "label": "File attached"
              },
              {
                "value": "file_removed",
                "label": "File removed"
              },
              {
                "value": "finding_added",
                "label": "Finding added"
              },
              {
                "value": "finding_removed",
                "label": "Finding removed"
              },
              {
                "value": "finding_updated",
                "label": "Finding updated"
              },
              {
                "value": "downloaded",
                "label": "Form downloaded"
              },
              {
                "value": "generated",
                "label": "Form generated"
              },
              {
                "value": "fx_rate_stamped",
                "label": "FX rate stamped"
              },
              {
                "value": "gate_reached",
                "label": "Gate reached"
              },
              {
                "value": "held_for_review",
                "label": "Held for review"
              },
              {
                "value": "hold_lifted",
                "label": "Hold lifted"
              },
              {
                "value": "hold_placed",
                "label": "Hold placed"
              },
              {
                "value": "humidity_over_limit",
                "label": "Humidity over limit"
              },
              {
                "value": "inspection_completed",
                "label": "Inspection completed"
              },
              {
                "value": "inspection_discarded",
                "label": "Inspection discarded"
              },
              {
                "value": "inspection_item_answered",
                "label": "Inspection item answered"
              },
              {
                "value": "inspection_item_waived",
                "label": "Inspection item waived"
              },
              {
                "value": "inspection_reopened",
                "label": "Inspection reopened"
              },
              {
                "value": "inspection_started",
                "label": "Inspection started"
              },
              {
                "value": "instruction_added",
                "label": "Instruction added"
              },
              {
                "value": "instruction_assigned",
                "label": "Instruction assigned"
              },
              {
                "value": "instruction_cancelled",
                "label": "Instruction cancelled"
              },
              {
                "value": "instruction_carried_forward",
                "label": "Instruction carried forward"
              },
              {
                "value": "instruction_completed",
                "label": "Instruction completed"
              },
              {
                "value": "instruction_removed",
                "label": "Instruction removed"
              },
              {
                "value": "instruction_reopened",
                "label": "Instruction reopened"
              },
              {
                "value": "instruction_updated",
                "label": "Instruction updated"
              },
              {
                "value": "instructions_imported",
                "label": "Instructions imported"
              },
              {
                "value": "inventory_line_minted",
                "label": "Inventory line minted"
              },
              {
                "value": "invoice_generated",
                "label": "Invoice generated"
              },
              {
                "value": "invoice_sent",
                "label": "Invoice sent"
              },
              {
                "value": "issue_allocated",
                "label": "Issue allocated"
              },
              {
                "value": "issue_quarantined",
                "label": "Issue quarantined"
              },
              {
                "value": "issue_removed",
                "label": "Issue removed"
              },
              {
                "value": "issue_seeded",
                "label": "Issue seeded"
              },
              {
                "value": "issue_split_planned",
                "label": "Issue split planned"
              },
              {
                "value": "kept_as_draft",
                "label": "Kept as draft"
              },
              {
                "value": "kept_from_autoquote",
                "label": "Kept from autoquote"
              },
              {
                "value": "labor_charged",
                "label": "Labor charged"
              },
              {
                "value": "labor_clocked_in",
                "label": "Labor clocked in"
              },
              {
                "value": "labor_clocked_out",
                "label": "Labor clocked out"
              },
              {
                "value": "labor_corrected",
                "label": "Labor corrected"
              },
              {
                "value": "labor_keyed",
                "label": "Labor keyed"
              },
              {
                "value": "labor_removed",
                "label": "Labor removed"
              },
              {
                "value": "layout_fell_back",
                "label": "Layout fell back"
              },
              {
                "value": "lease_opened",
                "label": "Lease opened"
              },
              {
                "value": "lease_unit_allocated",
                "label": "Lease unit allocated"
              },
              {
                "value": "line_added",
                "label": "Line added"
              },
              {
                "value": "line_allocated",
                "label": "Line allocated"
              },
              {
                "value": "line_cancelled",
                "label": "Line cancelled"
              },
              {
                "value": "line_deallocated",
                "label": "Line deallocated"
              },
              {
                "value": "line_estimate_approved",
                "label": "Line estimate approved"
              },
              {
                "value": "line_estimate_recorded",
                "label": "Line estimate recorded"
              },
              {
                "value": "line_final_cost_recorded",
                "label": "Line final cost recorded"
              },
              {
                "value": "line_matched",
                "label": "Line matched"
              },
              {
                "value": "line_moved",
                "label": "Line moved"
              },
              {
                "value": "line_picked",
                "label": "Line picked"
              },
              {
                "value": "line_promise_revised",
                "label": "Line promise revised"
              },
              {
                "value": "line_rejected",
                "label": "Line rejected"
              },
              {
                "value": "line_removed",
                "label": "Line removed"
              },
              {
                "value": "line_repointed",
                "label": "Line repointed"
              },
              {
                "value": "line_returned_to_inventory",
                "label": "Line returned to inventory"
              },
              {
                "value": "line_scrapped",
                "label": "Line scrapped"
              },
              {
                "value": "line_shipped",
                "label": "Line shipped"
              },
              {
                "value": "line_split",
                "label": "Line split"
              },
              {
                "value": "line_unpicked",
                "label": "Line unpicked"
              },
              {
                "value": "line_unshipped",
                "label": "Line unshipped"
              },
              {
                "value": "line_unverified",
                "label": "Line unverified"
              },
              {
                "value": "line_updated",
                "label": "Line updated"
              },
              {
                "value": "line_verified",
                "label": "Line verified"
              },
              {
                "value": "lines_aligned_to_requests",
                "label": "Lines aligned to requests"
              },
              {
                "value": "lines_imported",
                "label": "Lines imported"
              },
              {
                "value": "lines_moved_in",
                "label": "Lines moved in"
              },
              {
                "value": "lines_reordered",
                "label": "Lines reordered"
              },
              {
                "value": "lost",
                "label": "Lost"
              },
              {
                "value": "lost_reason_changed",
                "label": "Lost reason changed"
              },
              {
                "value": "material_added",
                "label": "Material added"
              },
              {
                "value": "material_added_to_repair_order",
                "label": "Material added to repair order"
              },
              {
                "value": "material_flagged_unused",
                "label": "Material flagged unused"
              },
              {
                "value": "material_issued",
                "label": "Material issued"
              },
              {
                "value": "material_moved",
                "label": "Material moved"
              },
              {
                "value": "material_ordered",
                "label": "Material ordered"
              },
              {
                "value": "material_reallocated",
                "label": "Material reallocated"
              },
              {
                "value": "material_rejected",
                "label": "Material rejected"
              },
              {
                "value": "material_removed",
                "label": "Material removed"
              },
              {
                "value": "material_returned",
                "label": "Material returned"
              },
              {
                "value": "material_turn_in_cancelled",
                "label": "Material turn in cancelled"
              },
              {
                "value": "material_turned_in",
                "label": "Material turned in"
              },
              {
                "value": "material_updated",
                "label": "Material updated"
              },
              {
                "value": "material_visually_checked",
                "label": "Material visually checked"
              },
              {
                "value": "materials_imported",
                "label": "Materials imported"
              },
              {
                "value": "noted_from_message",
                "label": "Noted from message"
              },
              {
                "value": "occurrence_cancelled",
                "label": "Occurrence cancelled"
              },
              {
                "value": "occurrence_revised",
                "label": "Occurrence changed"
              },
              {
                "value": "opened",
                "label": "Opened"
              },
              {
                "value": "ordered",
                "label": "Ordered"
              },
              {
                "value": "orders_left_waiting",
                "label": "Orders left waiting"
              },
              {
                "value": "outright_purchase_removed",
                "label": "Outright purchase removed"
              },
              {
                "value": "package_added",
                "label": "Package added"
              },
              {
                "value": "package_arrived",
                "label": "Package arrived"
              },
              {
                "value": "part_numbers_resolved",
                "label": "Part numbers resolved"
              },
              {
                "value": "part_removed",
                "label": "Part removed"
              },
              {
                "value": "participant_added",
                "label": "Participant added"
              },
              {
                "value": "parts_added",
                "label": "Parts added"
              },
              {
                "value": "parts_issued",
                "label": "Parts issued"
              },
              {
                "value": "parts_returned_to_inventory",
                "label": "Parts returned to inventory"
              },
              {
                "value": "parts_shipped",
                "label": "Parts shipped"
              },
              {
                "value": "parts_unshipped",
                "label": "Parts unshipped"
              },
              {
                "value": "payment_applied",
                "label": "Payment applied"
              },
              {
                "value": "payment_recorded",
                "label": "Payment recorded"
              },
              {
                "value": "payment_unapplied",
                "label": "Payment unapplied"
              },
              {
                "value": "payment_voided",
                "label": "Payment voided"
              },
              {
                "value": "period_billed",
                "label": "Period billed"
              },
              {
                "value": "period_charged",
                "label": "Period charged"
              },
              {
                "value": "phases_changed",
                "label": "Phases changed"
              },
              {
                "value": "print_expired",
                "label": "Print expired"
              },
              {
                "value": "print_failed",
                "label": "Print failed"
              },
              {
                "value": "print_requested",
                "label": "Print requested"
              },
              {
                "value": "printed",
                "label": "Printed"
              },
              {
                "value": "promise_revised",
                "label": "Promise revised"
              },
              {
                "value": "protection_held",
                "label": "Protection held"
              },
              {
                "value": "protection_released",
                "label": "Protection released"
              },
              {
                "value": "publications_applied",
                "label": "Publications applied"
              },
              {
                "value": "publications_changed",
                "label": "Publications changed"
              },
              {
                "value": "published",
                "label": "Published"
              },
              {
                "value": "purchased_without_coverage",
                "label": "Purchased without coverage"
              },
              {
                "value": "quote_line_added",
                "label": "Quote line added"
              },
              {
                "value": "quote_line_moved",
                "label": "Quote line moved"
              },
              {
                "value": "quote_line_removed",
                "label": "Quote line removed"
              },
              {
                "value": "quote_line_updated",
                "label": "Quote line updated"
              },
              {
                "value": "quote_lines_aligned_to_requests",
                "label": "Quote lines aligned to requests"
              },
              {
                "value": "quoted_unit_unavailable",
                "label": "Quoted unit unavailable"
              },
              {
                "value": "quoted_vendor_inventory_unavailable",
                "label": "Quoted vendor inventory unavailable"
              },
              {
                "value": "rate_revised",
                "label": "Rate revised"
              },
              {
                "value": "receipt_created",
                "label": "Receipt created"
              },
              {
                "value": "receipt_received",
                "label": "Receipt received"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "refund_clamped",
                "label": "Refund clamped"
              },
              {
                "value": "reissued",
                "label": "Reissued"
              },
              {
                "value": "release_cancelled",
                "label": "Release cancelled"
              },
              {
                "value": "release_generated",
                "label": "Release generated"
              },
              {
                "value": "release_shipped",
                "label": "Release shipped"
              },
              {
                "value": "release_split",
                "label": "Release split"
              },
              {
                "value": "release_unshipped",
                "label": "Release unshipped"
              },
              {
                "value": "releases_combined",
                "label": "Releases combined"
              },
              {
                "value": "reopened",
                "label": "Reopened"
              },
              {
                "value": "replacement_ordered",
                "label": "Replacement ordered"
              },
              {
                "value": "reply_handled",
                "label": "Reply handled"
              },
              {
                "value": "reprint_requested",
                "label": "Reprint requested"
              },
              {
                "value": "reprinted",
                "label": "Reprinted"
              },
              {
                "value": "request_line_added",
                "label": "Request line added"
              },
              {
                "value": "request_line_moved",
                "label": "Request line moved"
              },
              {
                "value": "request_line_removed",
                "label": "Request line removed"
              },
              {
                "value": "request_line_updated",
                "label": "Request line updated"
              },
              {
                "value": "requested_for",
                "label": "Requested for"
              },
              {
                "value": "requirement_added",
                "label": "Requirement added"
              },
              {
                "value": "requirement_removed",
                "label": "Requirement removed"
              },
              {
                "value": "requirement_waived",
                "label": "Requirement waived"
              },
              {
                "value": "requirements_changed",
                "label": "Requirements changed"
              },
              {
                "value": "resent",
                "label": "Resent"
              },
              {
                "value": "restated_from_message",
                "label": "Restated from message"
              },
              {
                "value": "restored",
                "label": "Restored"
              },
              {
                "value": "return_opened",
                "label": "Return opened"
              },
              {
                "value": "returned_to_inventory",
                "label": "Returned to inventory"
              },
              {
                "value": "returned_to_vendor",
                "label": "Returned to vendor"
              },
              {
                "value": "revision_adopted",
                "label": "Revision adopted"
              },
              {
                "value": "scrapped",
                "label": "Scrapped"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "sent_to_purchasing",
                "label": "Sent to purchasing"
              },
              {
                "value": "sent_to_sourcing",
                "label": "Sent to sourcing"
              },
              {
                "value": "shipment_cancelled",
                "label": "Shipment cancelled"
              },
              {
                "value": "shipped",
                "label": "Shipped"
              },
              {
                "value": "shop_supply_added",
                "label": "Shop supply added"
              },
              {
                "value": "shop_supply_removed",
                "label": "Shop supply removed"
              },
              {
                "value": "shop_supply_updated",
                "label": "Shop supply updated"
              },
              {
                "value": "signer_skill_changed",
                "label": "Signer skill changed"
              },
              {
                "value": "sold_outright",
                "label": "Sold outright"
              },
              {
                "value": "sourcing_request_carried_over",
                "label": "Sourcing request carried over"
              },
              {
                "value": "split",
                "label": "Split"
              },
              {
                "value": "split_from",
                "label": "Split from"
              },
              {
                "value": "statement_sent",
                "label": "Statement sent"
              },
              {
                "value": "status_changed",
                "label": "Status changed"
              },
              {
                "value": "superseded",
                "label": "Superseded"
              },
              {
                "value": "supply_claimed",
                "label": "Supply claimed"
              },
              {
                "value": "supply_landed",
                "label": "Supply landed"
              },
              {
                "value": "supply_reassigned",
                "label": "Supply reassigned"
              },
              {
                "value": "supply_released",
                "label": "Supply released"
              },
              {
                "value": "task_added",
                "label": "Task added"
              },
              {
                "value": "task_assigned",
                "label": "Task assigned"
              },
              {
                "value": "task_cancelled",
                "label": "Task cancelled"
              },
              {
                "value": "task_removed",
                "label": "Task removed"
              },
              {
                "value": "task_skills_changed",
                "label": "Task skills changed"
              },
              {
                "value": "task_status_changed",
                "label": "Task status changed"
              },
              {
                "value": "task_updated",
                "label": "Task updated"
              },
              {
                "value": "tasks_imported",
                "label": "Tasks imported"
              },
              {
                "value": "tasks_made_ready",
                "label": "Tasks made ready to work"
              },
              {
                "value": "tasks_repriced",
                "label": "Tasks repriced"
              },
              {
                "value": "tax_applied",
                "label": "Tax applied"
              },
              {
                "value": "tax_suppressed",
                "label": "Tax suppressed"
              },
              {
                "value": "teardown_completed",
                "label": "Teardown completed"
              },
              {
                "value": "teardown_undone",
                "label": "Teardown undone"
              },
              {
                "value": "template_applied",
                "label": "Template applied"
              },
              {
                "value": "template_instructions_copied",
                "label": "Template instructions copied"
              },
              {
                "value": "template_materials_copied",
                "label": "Template materials copied"
              },
              {
                "value": "following_revised",
                "label": "This and following changed"
              },
              {
                "value": "trashed",
                "label": "Trashed"
              },
              {
                "value": "trigger_skipped",
                "label": "Trigger skipped"
              },
              {
                "value": "unit_added_to_repair_order",
                "label": "Unit added to repair order"
              },
              {
                "value": "unit_returned",
                "label": "Unit returned"
              },
              {
                "value": "unit_shipped_back",
                "label": "Unit shipped back"
              },
              {
                "value": "unit_unshipped",
                "label": "Unit unshipped"
              },
              {
                "value": "unrecovered_cost_billed",
                "label": "Unrecovered cost billed"
              },
              {
                "value": "updated",
                "label": "Updated"
              },
              {
                "value": "value_adjusted",
                "label": "Value adjusted"
              },
              {
                "value": "verified",
                "label": "Verified"
              },
              {
                "value": "version_added",
                "label": "Version added"
              },
              {
                "value": "voucher_generated",
                "label": "Voucher generated"
              },
              {
                "value": "vouchered",
                "label": "Vouchered"
              },
              {
                "value": "won",
                "label": "Won"
              },
              {
                "value": "work_completed",
                "label": "Work completed"
              },
              {
                "value": "work_started",
                "label": "Work started"
              },
              {
                "value": "written_off",
                "label": "Written off"
              }
            ]
          }
        ]
      }
    },
    "/exports": {
      "get": {
        "operationId": "list_exports",
        "summary": "List exports",
        "tags": [
          "exports"
        ],
        "parameters": [
          {
            "name": "host[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a manifest, a work order, a work order template or a company"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manifest[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a manifest"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order_template[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a work order template"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "record",
                  "summary",
                  "marketplace"
                ],
                "description": "`record`: One row per record of a family, in the layout its import reads back; `summary`: A report's rows, worked out and grouped: tallies over a period, materials by task, or a list's summary; `marketplace`: A marketplace's listings, in the file that marketplace takes",
                "x-enum-descriptions": [
                  "One row per record of a family, in the layout its import reads back",
                  "A report's rows, worked out and grouped: tallies over a period, materials by task, or a list's summary",
                  "A marketplace's listings, in the file that marketplace takes"
                ],
                "x-enum-labels": [
                  "Records",
                  "Summary",
                  "Marketplace file"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "report[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "parts",
                  "companies",
                  "contacts",
                  "warehouses",
                  "inventories",
                  "inventory_lines",
                  "manifest_lines",
                  "customer_part_prices",
                  "customer_repair_prices",
                  "repair_capabilities",
                  "work_order_tasks",
                  "work_instructions",
                  "work_order_materials",
                  "work_order_template_tasks",
                  "work_order_template_materials",
                  "vendor_part_prices",
                  "requests_by_response_time",
                  "requests_by_channel",
                  "requests_by_part",
                  "requests_by_salesperson",
                  "unused_bom_parts",
                  "listings",
                  "capability_listings",
                  "customer_quotes_summary",
                  "customer_rfq_lines_summary",
                  "inventory_lines_summary",
                  "purchase_order_lines_summary",
                  "repair_order_lines_summary",
                  "sales_orders_summary"
                ],
                "description": "`parts`: Parts as the list narrows them, under the columns the parts import reads back; `companies`: Companies as the list narrows them, under the columns the companies import reads back; `contacts`: Contacts as the list narrows them, under the columns the contacts import reads back; `warehouses`: Warehouses as the list narrows them, under the columns the warehouses import reads back; `inventories`: Inventory codes as the list narrows them, under the columns the inventory codes import reads back; `inventory_lines`: Inventory lines as the list narrows them, under the columns the inventory lines import reads back; `manifest_lines`: Manifest lines as the list narrows them, under the columns the manifest lines import reads back; `customer_part_prices`: Part prices as the list narrows them, under the columns the part prices import reads back; `customer_repair_prices`: Repair prices as the list narrows them, under the columns the repair prices import reads back; `repair_capabilities`: Repair capabilities as the list narrows them, under the columns the repair capabilities import reads back; `work_order_tasks`: Work order tasks as the list narrows them, under the columns the work order tasks import reads back; `work_instructions`: Work instructions as the list narrows them, under the columns the work instructions import reads back; `work_order_materials`: Work order materials as the list narrows them, under the columns the work order materials import reads back; `work_order_template_tasks`: Work order template tasks as the list narrows them, under the columns the work order template tasks import reads back; `work_order_template_materials`: Work order template materials as the list narrows them, under the columns the work order template materials import reads back; `vendor_part_prices`: Vendor part prices as the list narrows them, under the columns the vendor part prices import reads back; `requests_by_response_time`: Sales › Reports' requests by response time, counted over the quotes received in the period; `requests_by_channel`: Sales › Reports' requests by channel, counted over the quotes received in the period; `requests_by_part`: Sales › Reports' requests by part, counted over the quotes received in the period; `requests_by_salesperson`: Sales › Reports' requests by salesperson, counted over the quotes received in the period; `unused_bom_parts`: Materials Handling's unused BOM parts: each material with issued parts flagged unused, by work order, task and material; `listings`: A marketplace's listings for one organization, in the file that marketplace takes, with each line it would reject left out and why; `capability_listings`: A marketplace's repair capabilities for one organization, in the file that marketplace takes, with each part it would reject left out and why; `customer_quotes_summary`: The customer quotes list's summary: its rows totaled by the measures chosen, downloaded as a sheet; `customer_rfq_lines_summary`: The customer RFQ lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet; `inventory_lines_summary`: The inventory lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet; `purchase_order_lines_summary`: The purchase order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet; `repair_order_lines_summary`: The repair order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet; `sales_orders_summary`: The sales orders list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                "x-enum-descriptions": [
                  "Parts as the list narrows them, under the columns the parts import reads back",
                  "Companies as the list narrows them, under the columns the companies import reads back",
                  "Contacts as the list narrows them, under the columns the contacts import reads back",
                  "Warehouses as the list narrows them, under the columns the warehouses import reads back",
                  "Inventory codes as the list narrows them, under the columns the inventory codes import reads back",
                  "Inventory lines as the list narrows them, under the columns the inventory lines import reads back",
                  "Manifest lines as the list narrows them, under the columns the manifest lines import reads back",
                  "Part prices as the list narrows them, under the columns the part prices import reads back",
                  "Repair prices as the list narrows them, under the columns the repair prices import reads back",
                  "Repair capabilities as the list narrows them, under the columns the repair capabilities import reads back",
                  "Work order tasks as the list narrows them, under the columns the work order tasks import reads back",
                  "Work instructions as the list narrows them, under the columns the work instructions import reads back",
                  "Work order materials as the list narrows them, under the columns the work order materials import reads back",
                  "Work order template tasks as the list narrows them, under the columns the work order template tasks import reads back",
                  "Work order template materials as the list narrows them, under the columns the work order template materials import reads back",
                  "Vendor part prices as the list narrows them, under the columns the vendor part prices import reads back",
                  "Sales › Reports' requests by response time, counted over the quotes received in the period",
                  "Sales › Reports' requests by channel, counted over the quotes received in the period",
                  "Sales › Reports' requests by part, counted over the quotes received in the period",
                  "Sales › Reports' requests by salesperson, counted over the quotes received in the period",
                  "Materials Handling's unused BOM parts: each material with issued parts flagged unused, by work order, task and material",
                  "A marketplace's listings for one organization, in the file that marketplace takes, with each line it would reject left out and why",
                  "A marketplace's repair capabilities for one organization, in the file that marketplace takes, with each part it would reject left out and why",
                  "The customer quotes list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                  "The customer RFQ lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                  "The inventory lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                  "The purchase order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                  "The repair order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
                  "The sales orders list's summary: its rows totaled by the measures chosen, downloaded as a sheet"
                ],
                "x-enum-labels": [
                  "Parts",
                  "Companies",
                  "Contacts",
                  "Warehouses",
                  "Inventory codes",
                  "Inventory lines",
                  "Manifest lines",
                  "Part prices",
                  "Repair prices",
                  "Repair capabilities",
                  "Work order tasks",
                  "Work instructions",
                  "Work order materials",
                  "Work order template tasks",
                  "Work order template materials",
                  "Vendor part prices",
                  "Requests by response time",
                  "Requests by channel",
                  "Requests by part",
                  "Requests by salesperson",
                  "Unused BOM parts",
                  "Marketplace listings",
                  "Repair capabilities",
                  "Customer quotes summary",
                  "Customer RFQ lines summary",
                  "Inventory lines summary",
                  "Purchase order lines summary",
                  "Repair order lines summary",
                  "Sales orders summary"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "building",
                  "completed",
                  "failed",
                  "downloaded"
                ],
                "description": "`pending`: Queued; the file has not started building; `building`: The spreadsheet is being written; `completed`: Built; the file is ready to download; `failed`: The build stopped with an error; `downloaded`: Downloaded straight from the report; no copy is kept",
                "x-enum-descriptions": [
                  "Queued; the file has not started building",
                  "The spreadsheet is being written",
                  "Built; the file is ready to download",
                  "The build stopped with an error",
                  "Downloaded straight from the report; no copy is kept"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Building",
                  "Completed",
                  "Failed",
                  "Downloaded"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "completed_at",
                "-completed_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExportListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "record",
                "label": "Records"
              },
              {
                "value": "summary",
                "label": "Summary"
              },
              {
                "value": "marketplace",
                "label": "Marketplace file"
              }
            ]
          },
          {
            "key": "report",
            "label": "Report",
            "kind": "options",
            "options": [
              {
                "value": "parts",
                "label": "Parts"
              },
              {
                "value": "companies",
                "label": "Companies"
              },
              {
                "value": "contacts",
                "label": "Contacts"
              },
              {
                "value": "warehouses",
                "label": "Warehouses"
              },
              {
                "value": "inventories",
                "label": "Inventory codes"
              },
              {
                "value": "inventory_lines",
                "label": "Inventory lines"
              },
              {
                "value": "manifest_lines",
                "label": "Manifest lines"
              },
              {
                "value": "customer_part_prices",
                "label": "Part prices"
              },
              {
                "value": "customer_repair_prices",
                "label": "Repair prices"
              },
              {
                "value": "repair_capabilities",
                "label": "Repair capabilities"
              },
              {
                "value": "work_order_tasks",
                "label": "Work order tasks"
              },
              {
                "value": "work_instructions",
                "label": "Work instructions"
              },
              {
                "value": "work_order_materials",
                "label": "Work order materials"
              },
              {
                "value": "work_order_template_tasks",
                "label": "Work order template tasks"
              },
              {
                "value": "work_order_template_materials",
                "label": "Work order template materials"
              },
              {
                "value": "vendor_part_prices",
                "label": "Vendor part prices"
              },
              {
                "value": "requests_by_response_time",
                "label": "Requests by response time"
              },
              {
                "value": "requests_by_channel",
                "label": "Requests by channel"
              },
              {
                "value": "requests_by_part",
                "label": "Requests by part"
              },
              {
                "value": "requests_by_salesperson",
                "label": "Requests by salesperson"
              },
              {
                "value": "unused_bom_parts",
                "label": "Unused BOM parts"
              },
              {
                "value": "listings",
                "label": "Marketplace listings"
              },
              {
                "value": "capability_listings",
                "label": "Repair capabilities"
              },
              {
                "value": "customer_quotes_summary",
                "label": "Customer quotes summary"
              },
              {
                "value": "customer_rfq_lines_summary",
                "label": "Customer RFQ lines summary"
              },
              {
                "value": "inventory_lines_summary",
                "label": "Inventory lines summary"
              },
              {
                "value": "purchase_order_lines_summary",
                "label": "Purchase order lines summary"
              },
              {
                "value": "repair_order_lines_summary",
                "label": "Repair order lines summary"
              },
              {
                "value": "sales_orders_summary",
                "label": "Sales orders summary"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "building",
                "label": "Building"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "downloaded",
                "label": "Downloaded"
              }
            ]
          },
          {
            "key": "manifest",
            "label": "Manifest",
            "kind": "options",
            "references": [
              "manifest"
            ],
            "searchable": true
          },
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          },
          {
            "key": "work_order_template",
            "label": "Work order template",
            "kind": "options",
            "references": [
              "work_order_template"
            ],
            "searchable": true
          },
          {
            "key": "marketplace",
            "label": "Marketplace",
            "kind": "options",
            "references": [
              "marketplace"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "query",
            "label": "Query",
            "field": "query",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "building": "Building",
              "completed": "Completed",
              "failed": "Failed",
              "downloaded": "Downloaded"
            }
          },
          {
            "key": "total_rows",
            "label": "Rows",
            "field": "total_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "label",
            "label": "Report",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "record": "Records",
              "summary": "Summary",
              "marketplace": "Marketplace file"
            }
          },
          {
            "key": "filename",
            "label": "File",
            "field": "filename",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Exported by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "host",
            "label": "Onto",
            "field": "host",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Requested",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "completed_at",
            "label": "Completed",
            "field": "completed_at",
            "sort": "completed_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_export",
        "summary": "Create an export",
        "tags": [
          "exports"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "omissions"
                ]
              }
            },
            "description": "Inline `omissions` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExportField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The export",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Export"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/exports/{uuid}": {
      "get": {
        "operationId": "get_export",
        "summary": "Retrieve an export",
        "tags": [
          "exports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "omissions"
                ]
              }
            },
            "description": "Inline `omissions` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExportField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The export",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Export"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/exports/{export_uuid}/omissions": {
      "get": {
        "operationId": "list_export_omissions",
        "summary": "List export omissions",
        "tags": [
          "exports"
        ],
        "parameters": [
          {
            "name": "export_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "condition_unlisted",
                  "no_description",
                  "part_number_spaces",
                  "part_number_too_long",
                  "quantity_below_one",
                  "quantity_over_limit",
                  "serial_repeated",
                  "unit_too_long"
                ],
                "description": "`condition_unlisted`: Its condition maps to none the marketplace takes; `no_description`: Its part has no description; `part_number_spaces`: Its part number has a space; `part_number_too_long`: Its part number is longer than the marketplace takes; `quantity_below_one`: Less than one whole unit is available; `quantity_over_limit`: More is available than the marketplace takes on one row; `serial_repeated`: Its serial is already listed for the same part number and condition; `unit_too_long`: Its unit of measure is longer than the marketplace takes",
                "x-enum-descriptions": [
                  "Its condition maps to none the marketplace takes",
                  "Its part has no description",
                  "Its part number has a space",
                  "Its part number is longer than the marketplace takes",
                  "Less than one whole unit is available",
                  "More is available than the marketplace takes on one row",
                  "Its serial is already listed for the same part number and condition",
                  "Its unit of measure is longer than the marketplace takes"
                ],
                "x-enum-labels": [
                  "Condition not taken",
                  "No description",
                  "Space in part number",
                  "Part number too long",
                  "Under one unit",
                  "Quantity over the limit",
                  "Serial repeated",
                  "Unit too long"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "part_number",
                "-part_number",
                "inventory_line_identifier",
                "-inventory_line_identifier",
                "reason",
                "-reason",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `reason` sorts in its own order, condition_unlisted, no_description, part_number_too_long, quantity_over_limit, serial_repeated, part_number_spaces, quantity_below_one, unit_too_long, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExportOmissionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportOmissionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "options": [
              {
                "value": "condition_unlisted",
                "label": "Condition not taken"
              },
              {
                "value": "no_description",
                "label": "No description"
              },
              {
                "value": "part_number_spaces",
                "label": "Space in part number"
              },
              {
                "value": "part_number_too_long",
                "label": "Part number too long"
              },
              {
                "value": "quantity_below_one",
                "label": "Under one unit"
              },
              {
                "value": "quantity_over_limit",
                "label": "Quantity over the limit"
              },
              {
                "value": "serial_repeated",
                "label": "Serial repeated"
              },
              {
                "value": "unit_too_long",
                "label": "Unit too long"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "#",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line_identifier",
            "sort": "inventory_line_identifier",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "sellable",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part number",
            "field": "part_number",
            "sort": "part_number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Reason",
            "field": "reason",
            "sort": "reason",
            "kind": "text",
            "currency": null
          },
          {
            "key": "why",
            "label": "Why",
            "field": "explanation",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/exports/{export_uuid}/omissions/{uuid}": {
      "get": {
        "operationId": "get_export_omission",
        "summary": "Retrieve an export omission",
        "tags": [
          "exports"
        ],
        "parameters": [
          {
            "name": "export_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExportOmissionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The export omission",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportOmission"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/external_streams": {
      "get": {
        "operationId": "list_external_streams",
        "summary": "List external streams",
        "tags": [
          "external_streams"
        ],
        "parameters": [
          {
            "name": "external_system[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An external system's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "label",
                "-label",
                "records_count",
                "-records_count",
                "last_pulled_at",
                "-last_pulled_at",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalStreamListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalStreamList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "external_system",
            "label": "System",
            "kind": "options",
            "references": [
              "external_system"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Object",
            "field": "label",
            "sort": "label",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "API name",
            "field": "name",
            "sort": "name",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "selected",
            "label": "Included in pulls",
            "field": "selected",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "records_count",
            "label": "Records",
            "field": "records_count",
            "sort": "records_count",
            "kind": "number",
            "currency": null
          },
          {
            "key": "removed_records_count",
            "label": "Removed",
            "field": "removed_records_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "last_pulled_at",
            "label": "Last pulled",
            "field": "last_pulled_at",
            "sort": "last_pulled_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_pull_error",
            "label": "Last pull's error",
            "field": "last_pull_error",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "packages",
            "label": "Package",
            "field": "packages",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "avsight": "AvSight"
            }
          }
        ]
      }
    },
    "/external_streams/{uuid}": {
      "get": {
        "operationId": "get_external_stream",
        "summary": "Retrieve an external stream",
        "tags": [
          "external_streams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalStreamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external stream",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalStream"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_external_stream",
        "summary": "Update an external stream",
        "tags": [
          "external_streams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalStreamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalStreamUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external stream",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalStream"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_streams/{external_stream_uuid}/records": {
      "get": {
        "operationId": "list_external_records",
        "summary": "List external records",
        "description": "A stream's records as the outside system holds them, landed raw, newest change first",
        "tags": [
          "external_streams"
        ],
        "parameters": [
          {
            "name": "external_stream_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "removed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the records the system has removed, `false` those it still holds"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "changed_at",
                "-changed_at",
                "key",
                "-key",
                "updated_at",
                "-updated_at"
              ],
              "default": "-changed_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalRecordListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalRecordList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "removed",
            "label": "Removed at the source",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "title",
            "label": "Name",
            "field": "title",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "key",
            "label": "Id",
            "field": "key",
            "sort": "key",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "changed_at",
            "label": "Changed",
            "field": "changed_at",
            "sort": "changed_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "source_modified_at",
            "label": "Modified at the source",
            "field": "source_modified_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "first_seen_at",
            "label": "First seen",
            "field": "first_seen_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "removed_at",
            "label": "Removed",
            "field": "removed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/external_streams/{external_stream_uuid}/records/{uuid}": {
      "get": {
        "operationId": "get_external_record",
        "summary": "Retrieve an external record",
        "tags": [
          "external_streams"
        ],
        "parameters": [
          {
            "name": "external_stream_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalRecordField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalRecord"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/external_systems": {
      "get": {
        "operationId": "list_external_systems",
        "summary": "List external systems",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "bot",
                "-bot",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "System",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "bot",
            "label": "Linked by",
            "field": "bot.name",
            "sort": "bot",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "keys_count",
            "label": "Records linked",
            "field": "keys_count",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_external_system",
        "summary": "Create an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The external system",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{uuid}": {
      "get": {
        "operationId": "get_external_system",
        "summary": "Retrieve an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external system",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_external_system",
        "summary": "Update an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalSystemUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external system",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_external_system",
        "summary": "Delete an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{uuid}/activate": {
      "post": {
        "operationId": "activate_external_system",
        "summary": "Activate an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The external system",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_external_system",
        "summary": "Deactivate an external system",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalSystemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The external system",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalSystem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{external_system_uuid}/import_mappings": {
      "get": {
        "operationId": "list_import_mappings",
        "summary": "List import mappings",
        "description": "Each import type's saved matching for one outside system: which column each of its headers fills, and its values matched to a country, a currency or an ATA chapter",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "external_system_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "import_type",
                "-import_type",
                "updated_at",
                "-updated_at"
              ],
              "default": "import_type"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportMappingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportMappingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{external_system_uuid}/import_mappings/{import_type}": {
      "get": {
        "operationId": "get_import_mapping",
        "summary": "Retrieve an import mapping",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "external_system_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "import_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportMappingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The import mapping",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportMapping"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_import_mapping",
        "summary": "Update an import mapping",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "external_system_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "import_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportMappingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportMappingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import mapping",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportMapping"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_import_mapping",
        "summary": "Delete an import mapping",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "external_system_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "import_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/external_systems/{external_system_uuid}/import_mappings/{import_mapping_import_type}/value_matches": {
      "get": {
        "operationId": "list_import_value_matches",
        "summary": "List import value matches",
        "description": "The values in a system's files its saved mapping matches to a list CorePilot supplies, such as countries, currencies or ATA chapters",
        "tags": [
          "external_systems"
        ],
        "parameters": [
          {
            "name": "external_system_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "import_mapping_import_type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "column_key",
                "-column_key",
                "source_value",
                "-source_value",
                "updated_at",
                "-updated_at"
              ],
              "default": "column_key"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportValueMatchListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportValueMatchList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/facilities": {
      "get": {
        "operationId": "list_facilities",
        "summary": "List facilities",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "role[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "shipping"
                ],
                "description": "`shipping`: An address goods ship to or from",
                "x-enum-descriptions": [
                  "An address goods ship to or from"
                ],
                "x-enum-labels": [
                  "Shipping"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "label",
                "-label",
                "city",
                "-city",
                "attn",
                "-attn",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "tax_origin",
                "-tax_origin",
                "updated_at",
                "-updated_at"
              ],
              "default": "label"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `label`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FacilityList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "role",
            "label": "Used for",
            "kind": "options",
            "options": [
              {
                "value": "shipping",
                "label": "Shipping"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Label",
            "field": "label",
            "sort": "label",
            "kind": "text",
            "currency": null
          },
          {
            "key": "attn",
            "label": "Attn",
            "field": "attn",
            "sort": "attn",
            "kind": "text",
            "currency": null
          },
          {
            "key": "city",
            "label": "City",
            "field": "city",
            "sort": "city",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Address",
            "field": "lines",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "roles",
            "label": "Used for",
            "field": "shipping",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "default_for",
            "label": "Default for",
            "field": "default_shipping",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_origin_label",
            "label": "Tax origin",
            "field": "tax_origin.name",
            "sort": "tax_origin",
            "kind": "text",
            "currency": null
          },
          {
            "key": "default_receiving_bin",
            "label": "Receiving bin",
            "field": "default_receiving_bin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "default_inspection_bin",
            "label": "Inspection bin",
            "field": "default_inspection_bin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_facility",
        "summary": "Create a facility",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FacilityCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The facility",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Facility"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/facilities/{uuid}": {
      "get": {
        "operationId": "get_facility",
        "summary": "Retrieve a facility",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The facility",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Facility"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_facility",
        "summary": "Update a facility",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FacilityUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The facility",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Facility"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/facilities/{uuid}/activate": {
      "post": {
        "operationId": "activate_facility",
        "summary": "Activate a facility",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The facility",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Facility"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/facilities/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_facility",
        "summary": "Deactivate a facility",
        "tags": [
          "facilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FacilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The facility",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Facility"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/freight_terms": {
      "get": {
        "operationId": "list_freight_terms",
        "summary": "List freight terms",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "created_at",
                "-created_at",
                "description",
                "-description",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTermList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_freight_term",
        "summary": "Create a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreightTermCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The freight term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/freight_terms/{uuid}": {
      "get": {
        "operationId": "get_freight_term",
        "summary": "Retrieve a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The freight term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_freight_term",
        "summary": "Update a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FreightTermUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The freight term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_freight_term",
        "summary": "Delete a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/freight_terms/{uuid}/activate": {
      "post": {
        "operationId": "activate_freight_term",
        "summary": "Activate a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The freight term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/freight_terms/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_freight_term",
        "summary": "Deactivate a freight term",
        "tags": [
          "freight_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FreightTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The freight term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FreightTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/fx_rates": {
      "get": {
        "operationId": "list_fx_rates",
        "summary": "List FX rates",
        "tags": [
          "fx_rates"
        ],
        "parameters": [
          {
            "name": "currency_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "as_of",
                "-as_of",
                "currency_code",
                "-currency_code",
                "rate",
                "-rate",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-as_of"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FxRateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FxRateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "currency_code",
            "label": "Currency",
            "kind": "options",
            "references": [
              "currency"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": "currency_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "as_of",
            "label": "In effect from",
            "field": "as_of",
            "sort": "as_of",
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Recorded",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "rate",
            "label": "Rate",
            "field": "rate",
            "sort": "rate",
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_fx_rate",
        "summary": "Create an FX rate",
        "tags": [
          "fx_rates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FxRateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The FX rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/fx_rates/{uuid}": {
      "get": {
        "operationId": "get_fx_rate",
        "summary": "Retrieve an FX rate",
        "tags": [
          "fx_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The FX rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_fx_rate",
        "summary": "Update an FX rate",
        "tags": [
          "fx_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/FxRateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FxRateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The FX rate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FxRate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_fx_rate",
        "summary": "Delete an FX rate",
        "tags": [
          "fx_rates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/identity": {
      "get": {
        "operationId": "get_identity",
        "summary": "Retrieve the identity",
        "tags": [
          "identity"
        ],
        "parameters": [],
        "responses": {
          "200": {
            "description": "The identity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Identity"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/import_types": {
      "get": {
        "operationId": "list_import_types",
        "summary": "List import types",
        "tags": [
          "import_types"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportTypeListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportTypeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/imports": {
      "get": {
        "operationId": "list_imports",
        "summary": "List imports",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "host[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company, a manifest, a work order or a work order template"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manifest[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a manifest"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order_template[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a work order template"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "import_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "parts",
                  "companies",
                  "contacts",
                  "company_addresses",
                  "facilities",
                  "warehouses",
                  "bins",
                  "inventories",
                  "inventory_lines",
                  "alternates",
                  "manifest_lines",
                  "customer_part_prices",
                  "customer_repair_prices",
                  "repair_capabilities",
                  "work_order_tasks",
                  "work_instructions",
                  "work_order_materials",
                  "work_order_template_tasks",
                  "work_order_template_materials",
                  "vendor_inventory_lines",
                  "vendor_part_prices",
                  "customer_quotes",
                  "sales_orders",
                  "sales_order_lines",
                  "sales_order_shipments",
                  "purchase_orders",
                  "purchase_order_lines",
                  "purchase_order_receipts",
                  "invoices",
                  "members"
                ],
                "x-enum-labels": [
                  "Parts",
                  "Companies",
                  "Contacts",
                  "Company addresses",
                  "Facilities",
                  "Warehouses",
                  "Bins",
                  "Inventory codes",
                  "Inventory lines",
                  "Alternates",
                  "Manifest lines",
                  "Part prices",
                  "Repair prices",
                  "Repair capabilities",
                  "Work order tasks",
                  "Work instructions",
                  "Work order materials",
                  "Work order template tasks",
                  "Work order template materials",
                  "Vendor inventory lines",
                  "Vendor part prices",
                  "Customer quotes",
                  "Sales orders",
                  "Sales order lines",
                  "Sales order shipments",
                  "Purchase orders",
                  "Purchase order lines",
                  "Purchase order receipts",
                  "Invoices",
                  "Members"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "checking",
                  "checked",
                  "applying",
                  "completed",
                  "failed"
                ],
                "description": "`pending`: Uploaded; checking has not started; `checking`: Its rows are being checked for problems; `checked`: Checked; rows wait to be fixed, skipped or applied; `applying`: Its rows are being written as records; `completed`: Applied; every ready row was attempted; `failed`: Stopped: the file was unusable, or applying broke off",
                "x-enum-descriptions": [
                  "Uploaded; checking has not started",
                  "Its rows are being checked for problems",
                  "Checked; rows wait to be fixed, skipped or applied",
                  "Its rows are being written as records",
                  "Applied; every ready row was attempted",
                  "Stopped: the file was unusable, or applying broke off"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Checking",
                  "Checked",
                  "Applying",
                  "Completed",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "unfinished",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only imports not yet done: still to check or apply, failed, or applied with rows that failed"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "completed_at",
                "-completed_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `twin` or `mapped_from` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "import_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "parts",
                "label": "Parts"
              },
              {
                "value": "companies",
                "label": "Companies"
              },
              {
                "value": "contacts",
                "label": "Contacts"
              },
              {
                "value": "company_addresses",
                "label": "Company addresses"
              },
              {
                "value": "facilities",
                "label": "Facilities"
              },
              {
                "value": "warehouses",
                "label": "Warehouses"
              },
              {
                "value": "bins",
                "label": "Bins"
              },
              {
                "value": "inventories",
                "label": "Inventory codes"
              },
              {
                "value": "inventory_lines",
                "label": "Inventory lines"
              },
              {
                "value": "alternates",
                "label": "Alternates"
              },
              {
                "value": "manifest_lines",
                "label": "Manifest lines"
              },
              {
                "value": "customer_part_prices",
                "label": "Part prices"
              },
              {
                "value": "customer_repair_prices",
                "label": "Repair prices"
              },
              {
                "value": "repair_capabilities",
                "label": "Repair capabilities"
              },
              {
                "value": "work_order_tasks",
                "label": "Work order tasks"
              },
              {
                "value": "work_instructions",
                "label": "Work instructions"
              },
              {
                "value": "work_order_materials",
                "label": "Work order materials"
              },
              {
                "value": "work_order_template_tasks",
                "label": "Work order template tasks"
              },
              {
                "value": "work_order_template_materials",
                "label": "Work order template materials"
              },
              {
                "value": "vendor_inventory_lines",
                "label": "Vendor inventory lines"
              },
              {
                "value": "vendor_part_prices",
                "label": "Vendor part prices"
              },
              {
                "value": "customer_quotes",
                "label": "Customer quotes"
              },
              {
                "value": "sales_orders",
                "label": "Sales orders"
              },
              {
                "value": "sales_order_lines",
                "label": "Sales order lines"
              },
              {
                "value": "sales_order_shipments",
                "label": "Sales order shipments"
              },
              {
                "value": "purchase_orders",
                "label": "Purchase orders"
              },
              {
                "value": "purchase_order_lines",
                "label": "Purchase order lines"
              },
              {
                "value": "purchase_order_receipts",
                "label": "Purchase order receipts"
              },
              {
                "value": "invoices",
                "label": "Invoices"
              },
              {
                "value": "members",
                "label": "Members"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "checking",
                "label": "Checking"
              },
              {
                "value": "checked",
                "label": "Checked"
              },
              {
                "value": "applying",
                "label": "Applying"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "failed",
                "label": "Failed"
              }
            ]
          },
          {
            "key": "company",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "manifest",
            "label": "Manifest",
            "kind": "options",
            "references": [
              "manifest"
            ],
            "searchable": true
          },
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          },
          {
            "key": "work_order_template",
            "label": "Work order template",
            "kind": "options",
            "references": [
              "work_order_template"
            ],
            "searchable": true
          },
          {
            "key": "unfinished",
            "label": "Unfinished only",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "checking": "Checking",
              "checked": "Checked",
              "applying": "Applying",
              "completed": "Completed",
              "failed": "Failed"
            }
          },
          {
            "key": "total_rows",
            "label": "Rows",
            "field": "total_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "problem_rows",
            "label": "Problems",
            "field": "problem_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "skipped_rows",
            "label": "Skipped",
            "field": "skipped_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "created_rows",
            "label": "Created",
            "field": "created_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "updated_rows",
            "label": "Updated",
            "field": "updated_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "matched_rows",
            "label": "Matched",
            "field": "matched_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "failed_rows",
            "label": "Failed",
            "field": "failed_rows",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "label",
            "label": "Import",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "filename",
            "label": "File",
            "field": "filename",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Imported by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "host",
            "label": "Onto",
            "field": "host",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Requested",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "started_at",
            "label": "Started",
            "field": "started_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "completed_at",
            "label": "Completed",
            "field": "completed_at",
            "sort": "completed_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_import",
        "summary": "Create an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportCreate"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ImportCreateMultipart"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}": {
      "get": {
        "operationId": "get_import",
        "summary": "Retrieve an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_import",
        "summary": "Update an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/apply": {
      "post": {
        "operationId": "apply_import",
        "summary": "Apply an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/check": {
      "post": {
        "operationId": "check_import",
        "summary": "Check an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "check",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{import_uuid}/lines": {
      "get": {
        "operationId": "list_import_rows",
        "summary": "List import rows",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "import_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "ok",
                  "problem",
                  "skipped",
                  "imported",
                  "failed"
                ],
                "description": "`pending`: Not checked yet; `ok`: Checked and ready to apply; `problem`: Checked and found a problem to fix or skip; `skipped`: Set aside; it will not be applied; `imported`: Applied; its record was written; `failed`: Applying it raised an error",
                "x-enum-descriptions": [
                  "Not checked yet",
                  "Checked and ready to apply",
                  "Checked and found a problem to fix or skip",
                  "Set aside; it will not be applied",
                  "Applied; its record was written",
                  "Applying it raised an error"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Ok",
                  "Problem",
                  "Skipped",
                  "Imported",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "listed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only the rows to review: each row with a problem or skipped, each row a problem names by number (such as the other half of a repeat), and each row that checks out with a `note`; every row once the import is completed. None unless the import is checked or completed"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "row_number",
                "-row_number",
                "attention",
                "-attention",
                "updated_at",
                "-updated_at"
              ],
              "default": "row_number"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `attention` puts the rows to fix first, with any other row neither skipped nor noted, then the skipped rows, then the rows that check out with a `note`; once the import is completed, every row not imported comes first and the imported rows last. Rows equal under the sort follow by `row_number`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportRowListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRowList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/imports/{import_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_import_row",
        "summary": "Retrieve an import row",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "import_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportRowField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The import row",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRow"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_import_row",
        "summary": "Update an import row",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "import_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportRowField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportRowUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import row",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportRow"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/replace_file": {
      "post": {
        "operationId": "replace_file_import",
        "summary": "Replace the file of an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportReplaceFile"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ImportReplaceFileMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_file",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/resume": {
      "post": {
        "operationId": "resume_import",
        "summary": "Resume an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resume",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/retry": {
      "post": {
        "operationId": "retry_import",
        "summary": "Retry an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "retry",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_import",
        "summary": "Revise the lines of an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/skip": {
      "post": {
        "operationId": "skip_import",
        "summary": "Skip an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportSkip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "skip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/imports/{uuid}/unskip": {
      "post": {
        "operationId": "unskip_import",
        "summary": "Unskip an import",
        "tags": [
          "imports"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "locked_values",
                  "saved_mappings",
                  "twin",
                  "mapped_from"
                ]
              }
            },
            "description": "Inline `locked_values`, `saved_mappings`, `twin`, or `mapped_from` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ImportField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportUnskip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The import",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Import"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unskip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklist_items": {
      "get": {
        "operationId": "list_inspection_checklist_items",
        "summary": "List inspection checklist items",
        "tags": [
          "inspection_checklist_items"
        ],
        "parameters": [
          {
            "name": "inspection_checklist[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inspection checklist's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "prompt",
                "-prompt",
                "kind",
                "-kind",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `position`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistItemListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_inspection_checklist_item",
        "summary": "Create an inspection checklist item",
        "tags": [
          "inspection_checklist_items"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionChecklistItemCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inspection checklist item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklist_items/{uuid}": {
      "get": {
        "operationId": "get_inspection_checklist_item",
        "summary": "Retrieve an inspection checklist item",
        "tags": [
          "inspection_checklist_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection checklist item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inspection_checklist_item",
        "summary": "Update an inspection checklist item",
        "tags": [
          "inspection_checklist_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionChecklistItemUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inspection checklist item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_inspection_checklist_item",
        "summary": "Delete an inspection checklist item",
        "tags": [
          "inspection_checklist_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklists": {
      "get": {
        "operationId": "list_inspection_checklists",
        "summary": "List inspection checklists",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "step[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving",
                  "outbound_qc"
                ],
                "description": "`receiving`: Units on the Inspection hold, before they are released into inventory; `outbound_qc`: Part lines on a release, before they are verified for shipping",
                "x-enum-descriptions": [
                  "Units on the Inspection hold, before they are released into inventory",
                  "Part lines on a release, before they are verified for shipping"
                ],
                "x-enum-labels": [
                  "Receiving inspection",
                  "Outbound QC"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "step",
                "-step",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "step",
            "label": "Step",
            "kind": "options",
            "options": [
              {
                "value": "receiving",
                "label": "Receiving inspection"
              },
              {
                "value": "outbound_qc",
                "label": "Outbound QC"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "step",
            "label": "Step",
            "field": "step",
            "sort": "step",
            "kind": "text",
            "currency": null,
            "labels": {
              "receiving": "Receiving inspection",
              "outbound_qc": "Outbound QC"
            }
          },
          {
            "key": "instructions",
            "label": "Instructions",
            "field": "instructions",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "skill",
            "label": "Skill",
            "field": "skill.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "items",
            "label": "Items",
            "field": "items",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_inspection_checklist",
        "summary": "Create an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionChecklistCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inspection checklist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklist"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklists/{uuid}": {
      "get": {
        "operationId": "get_inspection_checklist",
        "summary": "Retrieve an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection checklist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklist"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inspection_checklist",
        "summary": "Update an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionChecklistUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inspection checklist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklist"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_inspection_checklist",
        "summary": "Delete an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklists/{uuid}/activate": {
      "post": {
        "operationId": "activate_inspection_checklist",
        "summary": "Activate an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection checklist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklist"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_checklists/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_inspection_checklist",
        "summary": "Deactivate an inspection checklist",
        "tags": [
          "inspection_checklists"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionChecklistField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection checklist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklist"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:checklists",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_items": {
      "get": {
        "operationId": "list_inspection_items",
        "summary": "List inspection items",
        "tags": [
          "inspection_items"
        ],
        "parameters": [
          {
            "name": "inspection[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inspection's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "position",
                "-position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `position` sorts only beside a single `inspection[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionItemListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inspection_items/{uuid}": {
      "get": {
        "operationId": "get_inspection_item",
        "summary": "Retrieve an inspection item",
        "tags": [
          "inspection_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inspection_item",
        "summary": "Update an inspection item",
        "tags": [
          "inspection_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionItemUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inspection item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspection_items/{uuid}/waive": {
      "post": {
        "operationId": "waive_inspection_item",
        "summary": "Waive an inspection item",
        "tags": [
          "inspection_items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionItemWaive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inspection item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionItem"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "waive",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspections": {
      "get": {
        "operationId": "list_inspections",
        "summary": "List inspections",
        "tags": [
          "inspections"
        ],
        "parameters": [
          {
            "name": "inventory_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "release[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A release's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "step[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving",
                  "outbound_qc"
                ],
                "description": "`receiving`: Units on the Inspection hold, before they are released into inventory; `outbound_qc`: Part lines on a release, before they are verified for shipping",
                "x-enum-descriptions": [
                  "Units on the Inspection hold, before they are released into inventory",
                  "Part lines on a release, before they are verified for shipping"
                ],
                "x-enum-labels": [
                  "Receiving inspection",
                  "Outbound QC"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "outcome[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "in_progress",
                  "passed",
                  "failed"
                ],
                "description": "`in_progress`: Started and not yet completed; `passed`: Completed with no failing item that blocks, and every failing item that warns waived; `failed`: Completed with a failing item that blocks",
                "x-enum-descriptions": [
                  "Started and not yet completed",
                  "Completed with no failing item that blocks, and every failing item that warns waived",
                  "Completed with a failing item that blocks"
                ],
                "x-enum-labels": [
                  "In progress",
                  "Passed",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "started_at",
                "-started_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-started_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_inspection",
        "summary": "Create an inspection",
        "tags": [
          "inspections"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inspection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Inspection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspections/{uuid}": {
      "get": {
        "operationId": "get_inspection",
        "summary": "Retrieve an inspection",
        "tags": [
          "inspections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Inspection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inspections/{uuid}/complete": {
      "post": {
        "operationId": "complete_inspection",
        "summary": "Complete an inspection",
        "tags": [
          "inspections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inspection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Inspection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "complete",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inspections/{uuid}/reopen": {
      "post": {
        "operationId": "reopen_inspection",
        "summary": "Reopen an inspection",
        "tags": [
          "inspections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InspectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InspectionReopen"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inspection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Inspection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reopen",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes": {
      "get": {
        "operationId": "list_inventory_codes",
        "summary": "List inventory codes",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "parent[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unit_costed",
                  "cost_pool",
                  "consignment",
                  "custody"
                ],
                "x-enum-labels": [
                  "Unit-costed",
                  "Cost pool",
                  "Consignment",
                  "Held for others"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "pooled",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the codes holding a cost pool, consignments among them, `false` every other code"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `consignor_participation` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCodeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "unit_costed",
                "label": "Unit-costed"
              },
              {
                "value": "cost_pool",
                "label": "Cost pool"
              },
              {
                "value": "consignment",
                "label": "Consignment"
              },
              {
                "value": "custody",
                "label": "Held for others"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "acquisition_cost",
            "label": "Acquisition cost",
            "field": "cost_pool.acquisition_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "remaining_cost",
            "label": "Pool remaining",
            "field": "cost_pool.remaining_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "chargeout_rate",
            "label": "Chargeout rate",
            "field": "cost_pool.chargeout_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "acquired_on",
            "label": "Acquired",
            "field": "cost_pool.acquired_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "funded",
            "label": "Funded from parent",
            "field": "cost_pool.funded_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "consignor_name",
            "label": "Consignor",
            "field": "consignor_participation.company.name",
            "sort": null,
            "kind": "text",
            "currency": null,
            "expand": "consignor_participation"
          },
          {
            "key": "consignment_rate",
            "label": "Consignor share",
            "field": "consignor_participation.rate",
            "sort": null,
            "kind": "number",
            "currency": null,
            "expand": "consignor_participation"
          },
          {
            "key": "consigned_on",
            "label": "Consigned",
            "field": "consignor_participation.started_on",
            "sort": null,
            "kind": "date",
            "currency": null,
            "expand": "consignor_participation"
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "consignor_participation.outstanding_cents",
            "sort": null,
            "kind": "money",
            "currency": "account",
            "expand": "consignor_participation"
          }
        ]
      },
      "post": {
        "operationId": "create_inventory_code",
        "summary": "Create an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `external_keys`, `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}": {
      "get": {
        "operationId": "get_inventory_code",
        "summary": "Retrieve an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `external_keys`, `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inventory_code",
        "summary": "Update an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `external_keys`, `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_inventory_code",
        "summary": "Delete an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "inventory:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/activate": {
      "post": {
        "operationId": "activate_inventory_code",
        "summary": "Activate an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/add_cost_pool": {
      "post": {
        "operationId": "add_cost_pool_inventory_code",
        "summary": "Add a cost pool under an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeAddCostPool"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_cost_pool",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/adjust_value": {
      "post": {
        "operationId": "adjust_value_inventory_code",
        "summary": "Adjust the value of an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeAdjustValue"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "adjust_value",
        "x-risk": "reversible",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/assign_costs": {
      "post": {
        "operationId": "assign_costs_inventory_code",
        "summary": "Assign the costs of an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeAssignCosts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "assign_costs",
        "x-risk": "reversible",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/bill_unrecovered_cost": {
      "post": {
        "operationId": "bill_unrecovered_cost_inventory_code",
        "summary": "Bill the unrecovered cost of an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeBillUnrecoveredCost"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "bill_unrecovered_cost",
        "x-risk": "destructive",
        "x-grant": "inventory:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/close_pool": {
      "post": {
        "operationId": "close_pool_inventory_code",
        "summary": "Close the cost pool of an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeClosePool"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close_pool",
        "x-risk": "destructive",
        "x-grant": "inventory:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_inventory_code",
        "summary": "Create a receipt for an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeCreateReceipt"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_inventory_code",
        "summary": "Deactivate an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/fund_from_parent": {
      "post": {
        "operationId": "fund_from_parent_inventory_code",
        "summary": "Fund an inventory code from its parent",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeFundFromParent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "fund_from_parent",
        "x-risk": "reversible",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{inventory_code_uuid}/ledger_defaults": {
      "get": {
        "operationId": "list_inventory_ledger_defaults",
        "summary": "List inventory ledger defaults",
        "description": "The GL account an inventory code posts each purpose to, where it departs from its organization's",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "inventory_code_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLedgerDefaultListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLedgerDefaultList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{inventory_code_uuid}/ledger_defaults/{key}": {
      "patch": {
        "operationId": "update_inventory_ledger_default",
        "summary": "Update an inventory ledger default",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "inventory_code_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLedgerDefaultField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLedgerDefaultUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory ledger default",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLedgerDefault"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_inventory_ledger_default",
        "summary": "Delete an inventory ledger default",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "inventory_code_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{inventory_code_uuid}/unit_costs": {
      "get": {
        "operationId": "list_inventory_unit_costs",
        "summary": "List inventory unit costs",
        "description": "A cost pool's units with the cost each carries, split into on hand, sold, charged out and other",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "inventory_code_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryUnitCostListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryUnitCostList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inventory_codes/{uuid}/write_off": {
      "post": {
        "operationId": "write_off_inventory_code",
        "summary": "Write off an inventory code",
        "tags": [
          "inventory_codes"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "sales_summary",
                  "consignor_participation"
                ]
              }
            },
            "description": "Inline `overview_counts`, `sales_summary`, or `consignor_participation` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryCodeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryCodeWriteOff"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory code",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryCode"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "write_off",
        "x-risk": "destructive",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_entries": {
      "get": {
        "operationId": "list_inventory_entries",
        "summary": "List inventory entries",
        "tags": [
          "inventory_entries"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt",
                  "quantity_adjustment",
                  "issue",
                  "value_adjustment",
                  "scrap",
                  "transfer_out",
                  "cost_assignment",
                  "acquisition",
                  "chargeout",
                  "accrual",
                  "settlement",
                  "transfer_in",
                  "write_off"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "acquisition_cost_cents",
                "-acquisition_cost_cents",
                "repair_cost_cents",
                "-repair_cost_cents",
                "accrued_cents",
                "-accrued_cents",
                "sale_cents",
                "-sale_cents",
                "cost_cents",
                "-cost_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `quantity` sorts only beside a single `inventory_line[]`. `acquisition_cost_cents` sorts only beside a single `inventory_line[]`. `repair_cost_cents` sorts only beside a single `inventory_line[]`. `accrued_cents` sorts only beside a single `inventory_line[]`. `sale_cents` sorts only beside a single `inventory_line[]`. `cost_cents` sorts only beside a single `inventory_line[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryEntryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryEntryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Entry",
            "kind": "options",
            "options": [
              {
                "value": "receipt",
                "label": "Receipt"
              },
              {
                "value": "quantity_adjustment",
                "label": "Quantity adjustment"
              },
              {
                "value": "issue",
                "label": "Issue"
              },
              {
                "value": "value_adjustment",
                "label": "Value adjustment"
              },
              {
                "value": "scrap",
                "label": "Scrap"
              },
              {
                "value": "transfer_out",
                "label": "Transfer out"
              },
              {
                "value": "cost_assignment",
                "label": "Cost assignment"
              },
              {
                "value": "acquisition",
                "label": "Acquisition"
              },
              {
                "value": "chargeout",
                "label": "Chargeout"
              },
              {
                "value": "accrual",
                "label": "Accrual"
              },
              {
                "value": "settlement",
                "label": "Settlement"
              },
              {
                "value": "transfer_in",
                "label": "Transfer in"
              },
              {
                "value": "write_off",
                "label": "Write off"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "receipt": "Receipt",
              "quantity_adjustment": "Quantity adjustment",
              "issue": "Issue",
              "value_adjustment": "Value adjustment",
              "scrap": "Scrap",
              "transfer_out": "Transfer out",
              "cost_assignment": "Cost assignment",
              "acquisition": "Acquisition",
              "chargeout": "Chargeout",
              "accrual": "Accrual",
              "settlement": "Settlement",
              "transfer_in": "Transfer in",
              "write_off": "Write off"
            }
          },
          {
            "key": "acquisition_cost",
            "label": "Acquisition cost",
            "field": "acquisition_cost_cents",
            "sort": "acquisition_cost_cents",
            "kind": "money",
            "currency": "account",
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "repair_cost",
            "label": "Repair cost",
            "field": "repair_cost_cents",
            "sort": "repair_cost_cents",
            "kind": "money",
            "currency": "account",
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "accrued",
            "label": "Accrued",
            "field": "accrued_cents",
            "sort": "accrued_cents",
            "kind": "money",
            "currency": "account",
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "sale",
            "label": "Sale",
            "field": "sale_cents",
            "sort": "sale_cents",
            "kind": "money",
            "currency": "account",
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "cost",
            "label": "Cost",
            "field": "cost_cents",
            "sort": "cost_cents",
            "kind": "money",
            "currency": "account",
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "note",
            "label": "Note",
            "field": "note",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null,
            "beside": [
              "inventory_line"
            ]
          },
          {
            "key": "creator",
            "label": "Creator",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line_identifier",
            "label": "Inventory line identifier",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reference_label",
            "label": "Reference label",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "participant_name",
            "label": "Participant name",
            "field": "participation",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "statement_identifier",
            "label": "Statement identifier",
            "field": "statement",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/inventory_lines": {
      "get": {
        "operationId": "list_inventory_lines",
        "summary": "List inventory lines",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_exchange[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer exchange's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor_lease[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A vendor lease's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "source[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an AvSight migration, a CorePilot legacy migration, a customer return, a customer exchange, a customer lease, an import, a manifest, a purchase order, a repair order, a sales order or a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "available",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units free to sell as the system of record counts them: ours to sell, active, unprotected, in no bin held back from sale, and not all reserved"
          },
          {
            "name": "reservable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units any demand may reserve here: as `available`, but including units in a bin held back from sale and leaving out the ones an outside system's migration holds. While an outside system is the system of record it keeps the inventory, so none is reservable here"
          },
          {
            "name": "unreserved",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units with some quantity not yet reserved, whoever owns them"
          },
          {
            "name": "owned",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units we own: none a consignor's or a customer's. An inventory summary counts these unless it is sent `false`"
          },
          {
            "name": "teardown_candidate",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units a repair order can tear down into a cost pool: ours to sell, active, unprotected, with none of it reserved, in no cost pool already, and not an exchange core, even in a bin held back from sale"
          },
          {
            "name": "serial_missing",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units of a serialized part still waiting for their serial, which can't ship until it is set"
          },
          {
            "name": "owner_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tagged_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Units any of these companies tagged, never one whose tagger is only a typed name",
            "explode": true
          },
          {
            "name": "serial_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Lines under any of these serial numbers, matched whole in any case",
            "explode": true
          },
          {
            "name": "batch_lot_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part_classification[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part classification's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "tag_types[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "faa_8130_3",
                  "easa_form_1",
                  "uk_caa_form_1",
                  "tcca_form_one",
                  "casa_form_1",
                  "caac_release",
                  "coc",
                  "other"
                ],
                "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
                "x-enum-descriptions": [
                  "FAA Form 8130-3, the FAA's authorized release certificate",
                  "EASA Form 1, the EU authorized release certificate",
                  "UK CAA Form 1, the UK authorized release certificate",
                  "TCCA Form One, Transport Canada's authorized release certificate",
                  "CASA Form 1, Australia's authorized release certificate",
                  "The CAAC's authorized release certificate (China)",
                  "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                  "Another release document, named in the certificate number or notes"
                ],
                "x-enum-labels": [
                  "FAA 8130-3",
                  "EASA Form 1",
                  "UK CAA Form 1",
                  "TCCA Form One",
                  "CASA Form 1",
                  "CAAC Form AAC",
                  "Certificate of Conformance",
                  "Other"
                ]
              }
            },
            "description": "Lines whose tag names any of these authorities",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "bin[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A bin's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "warehouse[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A warehouse's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "custody",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units another company owns, held in our custody"
          },
          {
            "name": "tool",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units of a part marked as a tool"
          },
          {
            "name": "calibration[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue",
                  "due_soon",
                  "current",
                  "uncalibrated",
                  "not_required"
                ],
                "description": "`overdue`: A tool whose calibration due date has come; `due_soon`: A tool due for calibration within 30 days; `current`: A tool calibrated and not due for more than 30 days; `uncalibrated`: A tool that requires calibration and has never had one; `not_required`: A tool whose part needs no calibration",
                "x-enum-descriptions": [
                  "A tool whose calibration due date has come",
                  "A tool due for calibration within 30 days",
                  "A tool calibrated and not due for more than 30 days",
                  "A tool that requires calibration and has never had one",
                  "A tool whose part needs no calibration"
                ],
                "x-enum-labels": [
                  "Out of calibration",
                  "Due within 30 days",
                  "Current",
                  "Never calibrated",
                  "Calibration not required"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sold",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units sold on a sales order and not returned, spent ones included"
          },
          {
            "name": "lineage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an inventory line"
              }
            },
            "description": "The lines the named ones used to be, before each came back from a repair as a new line",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "converted"
                ],
                "description": "`open`: A unit in the books, whether or not any of it is left on hand; `converted`: Torn down into a cost pool, which took its cost",
                "x-enum-descriptions": [
                  "A unit in the books, whether or not any of it is left on hand",
                  "Torn down into a cost pool, which took its cost"
                ],
                "x-enum-labels": [
                  "Open",
                  "Converted"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "quantity_on_hand",
                "-quantity_on_hand",
                "serial_number",
                "-serial_number",
                "received_on",
                "-received_on",
                "quantity_sold",
                "-quantity_sold",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "kind": "options",
            "references": [
              "warehouse"
            ],
            "fenced": true
          },
          {
            "key": "part_classification",
            "label": "Part classification",
            "kind": "options",
            "references": [
              "part_classification"
            ]
          },
          {
            "key": "organization",
            "label": "Organization",
            "kind": "options",
            "references": [
              "organization"
            ]
          },
          {
            "key": "received",
            "label": "Received on",
            "kind": "range"
          },
          {
            "key": "owned",
            "label": "Owned only",
            "kind": "toggle"
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          },
          {
            "key": "tag_types",
            "label": "Tag types",
            "kind": "options",
            "options": [
              {
                "value": "faa_8130_3",
                "label": "FAA 8130-3"
              },
              {
                "value": "easa_form_1",
                "label": "EASA Form 1"
              },
              {
                "value": "uk_caa_form_1",
                "label": "UK CAA Form 1"
              },
              {
                "value": "tcca_form_one",
                "label": "TCCA Form One"
              },
              {
                "value": "casa_form_1",
                "label": "CASA Form 1"
              },
              {
                "value": "caac_release",
                "label": "CAAC Form AAC"
              },
              {
                "value": "coc",
                "label": "Certificate of Conformance"
              },
              {
                "value": "other",
                "label": "Other"
              }
            ]
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "kind": "options",
            "references": [
              "inventory_code"
            ]
          },
          {
            "key": "tagged_by",
            "label": "Tagged by",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "custody",
            "label": "Held for others only",
            "kind": "toggle"
          },
          {
            "key": "tool",
            "label": "Tools only",
            "kind": "toggle"
          },
          {
            "key": "serial_missing",
            "label": "Serial missing only",
            "kind": "toggle"
          },
          {
            "key": "include_consumed",
            "label": "Include consumed",
            "kind": "toggle",
            "lifts": {
              "key": "status",
              "values": [
                "open",
                "converted"
              ]
            }
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "calibration",
            "label": "Calibration",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Out of calibration"
              },
              {
                "value": "due_soon",
                "label": "Due within 30 days"
              },
              {
                "value": "current",
                "label": "Current"
              },
              {
                "value": "uncalibrated",
                "label": "Never calibrated"
              },
              {
                "value": "not_required",
                "label": "Calibration not required"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "field": "standard_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "offered_condition",
            "label": "Offered condition",
            "field": "offered_condition.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": "serial_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "batch_lot_number",
            "label": "Batch/lot number",
            "field": "batch_lot_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity_on_hand",
            "label": "On hand",
            "field": "quantity_on_hand",
            "sort": "quantity_on_hand",
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_reserved",
            "label": "Reserved",
            "field": "quantity_reserved",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_available",
            "label": "Available",
            "field": "quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "field": "warehouse.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sub_location",
            "label": "Sub-location",
            "field": "sub_location",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "total_cost",
            "label": "Total cost",
            "field": "total_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "received_on",
            "label": "Received",
            "field": "received_on",
            "sort": "received_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "acquisition_cost",
            "label": "Acquisition cost",
            "field": "acquisition_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "repair_cost",
            "label": "Repair cost",
            "field": "repair_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "trace",
            "label": "Trace",
            "field": "trace_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "air_carrier": "Air carrier",
              "repair_station": "Repair station",
              "oem": "OEM",
              "distributor": "Distributor",
              "government": "Government",
              "other": "Other"
            }
          },
          {
            "key": "tag_types",
            "label": "Tag types",
            "field": "tag_types",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "faa_8130_3": "FAA 8130-3",
              "easa_form_1": "EASA Form 1",
              "uk_caa_form_1": "UK CAA Form 1",
              "tcca_form_one": "TCCA Form One",
              "casa_form_1": "CASA Form 1",
              "caac_release": "CAAC Form AAC",
              "coc": "Certificate of Conformance",
              "other": "Other"
            }
          },
          {
            "key": "certificate_number",
            "label": "Certificate number",
            "field": "certificate_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tag_number",
            "label": "Tag number",
            "field": "tag_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_on",
            "label": "Tagged on",
            "field": "tagged_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "tagged_by",
            "label": "Tagged by",
            "field": "tagged_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tail_number",
            "label": "Tail number",
            "field": "tail_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "engine_serial_number",
            "label": "Engine serial number",
            "field": "engine_serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "receiver_number",
            "label": "Receiver",
            "field": "receiver_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "date_of_manufacture",
            "label": "Date of manufacture",
            "field": "date_of_manufacture",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "shelf_life_expires_on",
            "label": "Shelf life expires",
            "field": "shelf_life_expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "warranty_expires_on",
            "label": "Warranty expires",
            "field": "warranty_expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "parent_identifier",
            "label": "Parent",
            "field": "parent.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "protected",
            "label": "Protected",
            "field": "protected",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "open_rejection_identifier",
            "label": "Open rejection",
            "field": "open_rejection.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tool",
            "label": "Tool",
            "field": "tool",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "calibration",
            "label": "Calibration",
            "field": "calibration_due_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "calibration_interval_months",
            "label": "Interval",
            "field": "calibration_interval_months",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "away_repair_order",
            "label": "Out for repair",
            "field": "away_repair_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "converted": "Converted"
            }
          },
          {
            "key": "quantity_sold",
            "label": "Qty sold",
            "field": "quantity_sold",
            "sort": "quantity_sold",
            "kind": "number",
            "currency": null
          },
          {
            "key": "sold_for",
            "label": "Sold for",
            "field": "sold_for_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "cost_of_sale",
            "label": "Cost of sale",
            "field": "cost_of_sale_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "margin",
            "label": "Margin",
            "field": "margin_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "sold_on",
            "label": "Sold on",
            "field": "sold_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sold_orders",
            "label": "Sales order",
            "field": "sold_orders.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sold_to",
            "label": "Customer",
            "field": "sold_to.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "converted_to_code",
            "label": "Converted to",
            "field": "converted_to.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "shipped_back_on",
            "label": "Shipped back on",
            "field": "shipped_back_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "ownership",
            "label": "Ownership",
            "field": "owner_company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_order",
            "label": "Repair order",
            "field": "repair_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_inventory_line",
        "summary": "Create an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_inventory_line_by_external_key",
        "summary": "Retrieve an inventory line by its external key",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/summary": {
      "get": {
        "operationId": "get_inventory_line_summary",
        "summary": "Retrieve the inventory line summary",
        "description": "The inventory list's lines on hand totaled by named measures, grouped by a dimension, over a period of the days they were received; owned units by default (`owned` is true unless sent `false`), so a consignor's and a customer's units are left out",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "value_on_hand",
                  "quantity_on_hand",
                  "lines"
                ],
                "x-enum-descriptions": [
                  "What the units on hand cost, acquisition and repair together, as the cost ledger holds them, in the home currency",
                  "Units on hand, in each part's own unit of measure, reserved units among them",
                  "Inventory lines holding units on hand"
                ],
                "x-enum-labels": [
                  "Value on hand",
                  "Quantity on hand",
                  "Inventory lines"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "condition",
                "part_classification",
                "organization",
                "shelf_age",
                "received_on",
                "received_on:day",
                "received_on:week",
                "received_on:month",
                "received_on:quarter",
                "received_on:year"
              ],
              "x-enum-descriptions": [
                "The condition the units are tagged in",
                "How the part is classified (rotable, expendable…), as its part record says",
                "The organization whose inventory holds the units",
                "How long since the units were received, in the business's days: under 90 days, 90–180 days, 180 days to a year, one to two years, or over two years; a line with no received date has none",
                "The day the units were received",
                "The day the units were received, by day",
                "The day the units were received, by week",
                "The day the units were received, by month",
                "The day the units were received, by quarter",
                "The day the units were received, by year"
              ],
              "x-enum-labels": [
                "Condition",
                "Part classification",
                "Organization",
                "Shelf age",
                "Received on",
                "Received on, by day",
                "Received on, by week",
                "Received on, by month",
                "Received on, by quarter",
                "Received on, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `received` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_exchange[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer exchange's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor_lease[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A vendor lease's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "source[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an AvSight migration, a CorePilot legacy migration, a customer return, a customer exchange, a customer lease, an import, a manifest, a purchase order, a repair order, a sales order or a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "available",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units free to sell as the system of record counts them: ours to sell, active, unprotected, in no bin held back from sale, and not all reserved"
          },
          {
            "name": "reservable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units any demand may reserve here: as `available`, but including units in a bin held back from sale and leaving out the ones an outside system's migration holds. While an outside system is the system of record it keeps the inventory, so none is reservable here"
          },
          {
            "name": "unreserved",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units with some quantity not yet reserved, whoever owns them"
          },
          {
            "name": "owned",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units we own: none a consignor's or a customer's. An inventory summary counts these unless it is sent `false`"
          },
          {
            "name": "teardown_candidate",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units a repair order can tear down into a cost pool: ours to sell, active, unprotected, with none of it reserved, in no cost pool already, and not an exchange core, even in a bin held back from sale"
          },
          {
            "name": "serial_missing",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units of a serialized part still waiting for their serial, which can't ship until it is set"
          },
          {
            "name": "owner_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tagged_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Units any of these companies tagged, never one whose tagger is only a typed name",
            "explode": true
          },
          {
            "name": "serial_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Lines under any of these serial numbers, matched whole in any case",
            "explode": true
          },
          {
            "name": "batch_lot_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part_classification[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part classification's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "tag_types[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "faa_8130_3",
                  "easa_form_1",
                  "uk_caa_form_1",
                  "tcca_form_one",
                  "casa_form_1",
                  "caac_release",
                  "coc",
                  "other"
                ],
                "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
                "x-enum-descriptions": [
                  "FAA Form 8130-3, the FAA's authorized release certificate",
                  "EASA Form 1, the EU authorized release certificate",
                  "UK CAA Form 1, the UK authorized release certificate",
                  "TCCA Form One, Transport Canada's authorized release certificate",
                  "CASA Form 1, Australia's authorized release certificate",
                  "The CAAC's authorized release certificate (China)",
                  "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                  "Another release document, named in the certificate number or notes"
                ],
                "x-enum-labels": [
                  "FAA 8130-3",
                  "EASA Form 1",
                  "UK CAA Form 1",
                  "TCCA Form One",
                  "CASA Form 1",
                  "CAAC Form AAC",
                  "Certificate of Conformance",
                  "Other"
                ]
              }
            },
            "description": "Lines whose tag names any of these authorities",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "bin[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A bin's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "warehouse[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A warehouse's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "custody",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units another company owns, held in our custody"
          },
          {
            "name": "tool",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units of a part marked as a tool"
          },
          {
            "name": "calibration[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue",
                  "due_soon",
                  "current",
                  "uncalibrated",
                  "not_required"
                ],
                "description": "`overdue`: A tool whose calibration due date has come; `due_soon`: A tool due for calibration within 30 days; `current`: A tool calibrated and not due for more than 30 days; `uncalibrated`: A tool that requires calibration and has never had one; `not_required`: A tool whose part needs no calibration",
                "x-enum-descriptions": [
                  "A tool whose calibration due date has come",
                  "A tool due for calibration within 30 days",
                  "A tool calibrated and not due for more than 30 days",
                  "A tool that requires calibration and has never had one",
                  "A tool whose part needs no calibration"
                ],
                "x-enum-labels": [
                  "Out of calibration",
                  "Due within 30 days",
                  "Current",
                  "Never calibrated",
                  "Calibration not required"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sold",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only units sold on a sales order and not returned, spent ones included"
          },
          {
            "name": "lineage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an inventory line"
              }
            },
            "description": "The lines the named ones used to be, before each came back from a repair as a new line",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "converted"
                ],
                "description": "`open`: A unit in the books, whether or not any of it is left on hand; `converted`: Torn down into a cost pool, which took its cost",
                "x-enum-descriptions": [
                  "A unit in the books, whether or not any of it is left on hand",
                  "Torn down into a cost pool, which took its cost"
                ],
                "x-enum-labels": [
                  "Open",
                  "Converted"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLineSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}": {
      "get": {
        "operationId": "get_inventory_line",
        "summary": "Retrieve an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inventory_line",
        "summary": "Update an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/activate": {
      "post": {
        "operationId": "activate_inventory_line",
        "summary": "Activate an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/adjust_quantity": {
      "post": {
        "operationId": "adjust_quantity_inventory_line",
        "summary": "Adjust the quantity of an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineAdjustQuantity"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "adjust_quantity",
        "x-risk": "reversible",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/adjust_value": {
      "post": {
        "operationId": "adjust_value_inventory_line",
        "summary": "Adjust the value of an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineAdjustValue"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "adjust_value",
        "x-risk": "reversible",
        "x-grant": "inventory:adjust",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_inventory_line",
        "summary": "Deactivate an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{inventory_line_uuid}/external_keys": {
      "get": {
        "operationId": "list_inventory_line_external_keys",
        "summary": "List an inventory line's external keys",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "inventory_line_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{inventory_line_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_inventory_line_external_key",
        "summary": "Retrieve an inventory line by its external key",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "inventory_line_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inventory_line_external_key",
        "summary": "Link an inventory line's external key",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "inventory_line_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_inventory_line_external_key",
        "summary": "Unlink an inventory line's external key",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "inventory_line_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/reject": {
      "post": {
        "operationId": "reject_inventory_line",
        "summary": "Reject an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineReject"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rejection it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reject",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/release_protection": {
      "post": {
        "operationId": "release_protection_inventory_line",
        "summary": "Release the protection on an inventory line",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `external_keys`, `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "release_protection",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_lines/{uuid}/split": {
      "post": {
        "operationId": "split_inventory_line",
        "summary": "Split an inventory line",
        "description": "Moves whole units, with their share of the line's cost, onto new inventory lines on the same receipt line, posting nothing",
        "tags": [
          "inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryLineSplit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new lines, in the order given",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLineList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "split",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_participations": {
      "get": {
        "operationId": "list_inventory_participations",
        "summary": "List inventory participations",
        "tags": [
          "inventory_participations"
        ],
        "parameters": [
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "investor",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only investors' shares, the consignor's left out"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "rate",
                "-rate",
                "started_on",
                "-started_on",
                "company_name",
                "-company_name",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `company_name` sorts only beside a single `inventory_code[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryParticipationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryParticipationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "company",
            "label": "Investor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "started_on",
            "label": "Started",
            "field": "started_on",
            "sort": "started_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "company_name",
            "label": "Company name",
            "field": "company.name",
            "sort": "company_name",
            "kind": "text",
            "currency": null,
            "beside": [
              "inventory_code"
            ]
          },
          {
            "key": "rate",
            "label": "Rate",
            "field": "rate",
            "sort": "rate",
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "outstanding_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "accrued",
            "label": "Accrued",
            "field": "accrued_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "adjusted",
            "label": "Adjusted",
            "field": "adjusted_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "settled",
            "label": "Settled",
            "field": "settled_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          }
        ]
      },
      "post": {
        "operationId": "create_inventory_participation",
        "summary": "Create an inventory participation",
        "tags": [
          "inventory_participations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryParticipationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryParticipationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The inventory participation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryParticipation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/inventory_participations/{uuid}": {
      "get": {
        "operationId": "get_inventory_participation",
        "summary": "Retrieve an inventory participation",
        "tags": [
          "inventory_participations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryParticipationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The inventory participation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryParticipation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_inventory_participation",
        "summary": "Update an inventory participation",
        "tags": [
          "inventory_participations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryParticipationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryParticipationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The inventory participation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryParticipation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements": {
      "get": {
        "operationId": "list_investor_statements",
        "summary": "List investor statements",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "settlement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpaid",
                  "partially_paid",
                  "paid",
                  "overpaid",
                  "credited",
                  "corrected"
                ],
                "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
                "x-enum-descriptions": [
                  "Owed in full: nothing paid yet",
                  "Some of it paid, a balance left",
                  "Payments cleared the balance",
                  "Payments came to more than was owed",
                  "Credits cleared the balance with no payment",
                  "Corrections cleared the balance with no payment or credit"
                ],
                "x-enum-labels": [
                  "Unpaid",
                  "Partially paid",
                  "Paid",
                  "Overpaid",
                  "Credited",
                  "Corrected"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; its lines can still change; `sent`: Sent to the payee and final; what it nets is payable; `cancelled`: Called off; nothing on it is payable",
                "x-enum-descriptions": [
                  "Being prepared; its lines can still change",
                  "Sent to the payee and final; what it nets is payable",
                  "Called off; nothing on it is payable"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "investor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "statement_date",
                "-statement_date",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "settlement",
                "-settlement",
                "updated_at",
                "-updated_at"
              ],
              "default": "-statement_date"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, sent, cancelled, not the alphabet. `settlement` sorts in its own order, unpaid, partially_paid, paid, overpaid, credited, corrected, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "investor",
            "label": "Investor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "kind": "options",
            "options": [
              {
                "value": "unpaid",
                "label": "Unpaid"
              },
              {
                "value": "partially_paid",
                "label": "Partially paid"
              },
              {
                "value": "paid",
                "label": "Paid"
              },
              {
                "value": "overpaid",
                "label": "Overpaid"
              },
              {
                "value": "credited",
                "label": "Credited"
              },
              {
                "value": "corrected",
                "label": "Corrected"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "statement_date",
            "label": "Date",
            "field": "statement_date",
            "sort": "statement_date",
            "kind": "date",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory",
            "label": "Inventory code name",
            "field": "inventory_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "investor",
            "label": "Investor",
            "field": "investor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "rate",
            "label": "Investor share",
            "field": "rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "net",
            "label": "Net due",
            "field": "net_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "paid",
            "label": "Paid",
            "field": "paid_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "balance",
            "label": "Balance",
            "field": "balance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "field": "settlement",
            "sort": "settlement",
            "kind": "text",
            "currency": null,
            "labels": {
              "unpaid": "Unpaid",
              "partially_paid": "Partially paid",
              "paid": "Paid",
              "overpaid": "Overpaid",
              "credited": "Credited",
              "corrected": "Corrected"
            }
          }
        ]
      },
      "post": {
        "operationId": "create_investor_statement",
        "summary": "Create an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvestorStatementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{uuid}": {
      "get": {
        "operationId": "get_investor_statement",
        "summary": "Retrieve an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_investor_statement",
        "summary": "Update an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvestorStatementUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{investor_statement_uuid}/applications": {
      "get": {
        "operationId": "list_investor_statement_applications",
        "summary": "List payable applications",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/investor_statements/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_investor_statement",
        "summary": "Cancel an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{uuid}/email": {
      "post": {
        "operationId": "email_investor_statement",
        "summary": "Email an investor statement",
        "description": "Emails the statement's form as a PDF from the organization's sending address, tied to the statement's conversation and narrated `emailed`. A draft is marked sent first, as `POST /investor_statements/{uuid}/send` would, settling its entries; a failure after that leaves it sent, and the refusal says so. A sent one goes out again unchanged",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvestorStatementEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/investor_statements/{investor_statement_uuid}/lines": {
      "get": {
        "operationId": "list_investor_statement_lines",
        "summary": "List investor statement lines",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "accrual",
                  "value_adjustment"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "settled_on",
                "-settled_on",
                "amount_cents",
                "-amount_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "settled_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatementLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Entry",
            "kind": "options",
            "options": [
              {
                "value": "accrual",
                "label": "Accrual"
              },
              {
                "value": "value_adjustment",
                "label": "Value adjustment"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "accrual": "Accrual",
              "value_adjustment": "Value adjustment"
            }
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reference_label",
            "label": "Reference label",
            "field": "reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "settled_on",
            "label": "Settled",
            "field": "settled_on",
            "sort": "settled_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "sale",
            "label": "Sale",
            "field": "sale_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "cost",
            "label": "Cost",
            "field": "cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "margin",
            "label": "Margin",
            "field": "margin_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          }
        ]
      }
    },
    "/investor_statements/{investor_statement_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_investor_statement_line",
        "summary": "Retrieve an investor statement line",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatementLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_investor_statement_line",
        "summary": "Delete an investor statement line",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_investor_statement",
        "summary": "Preview an investor statement's email",
        "description": "Renders the email `POST /investor_statements/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and a draft stays a draft",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvestorStatementPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{uuid}/send": {
      "post": {
        "operationId": "send_investor_statement",
        "summary": "Send an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/investor_statements/{investor_statement_uuid}/trash": {
      "post": {
        "operationId": "trash_investor_statement",
        "summary": "Trash an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_investor_statement",
        "summary": "Restore an investor statement",
        "tags": [
          "investor_statements"
        ],
        "parameters": [
          {
            "name": "investor_statement_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `email_drafts` or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvestorStatementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The investor statement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvestorStatement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices": {
      "get": {
        "operationId": "list_invoices",
        "summary": "List invoices",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "settlement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpaid",
                  "partially_paid",
                  "paid",
                  "overpaid",
                  "credited",
                  "corrected"
                ],
                "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
                "x-enum-descriptions": [
                  "Owed in full: nothing paid yet",
                  "Some of it paid, a balance left",
                  "Payments cleared the balance",
                  "Payments came to more than was owed",
                  "Credits cleared the balance with no payment",
                  "Corrections cleared the balance with no payment or credit"
                ],
                "x-enum-labels": [
                  "Unpaid",
                  "Partially paid",
                  "Paid",
                  "Overpaid",
                  "Credited",
                  "Corrected"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "due[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: Still owed past its due date",
                "x-enum-descriptions": [
                  "Still owed past its due date"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet issued to the customer; `sent`: Issued to the customer and posted to the books; `cancelled`: Called off before it was issued; it bills nothing",
                "x-enum-descriptions": [
                  "Being written; not yet issued to the customer",
                  "Issued to the customer and posted to the books",
                  "Called off before it was issued; it bills nothing"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "invoice",
                  "credit_memo",
                  "correction"
                ],
                "description": "`invoice`: Bills what a release shipped; `credit_memo`: Credits what a customer returned; `correction`: Corrects an invoice already sent",
                "x-enum-descriptions": [
                  "Bills what a release shipped",
                  "Credits what a customer returned",
                  "Corrects an invoice already sent"
                ],
                "x-enum-labels": [
                  "Invoice",
                  "Credit memo",
                  "Correction"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "waiting_to_email",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only drafts billing a customer set to Email invoices, which the next automatic run issues and emails unless something refuses it; no run emails any in a sandbox, or while emailing isn't released"
          },
          {
            "name": "not_emailed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only sent invoices never emailed, or whose last email bounced"
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "invoice_date",
                "-invoice_date",
                "sent_at",
                "-sent_at",
                "status",
                "-status",
                "settlement",
                "-settlement",
                "due_on",
                "-due_on",
                "payment_term",
                "-payment_term",
                "clause",
                "-clause",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, sent, cancelled, not the alphabet. `settlement` sorts in its own order, unpaid, partially_paid, paid, overpaid, credited, corrected, not the alphabet. `payment_term` sorts only beside a single `sales_order[]`. `clause` sorts only beside a single `sales_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "credit_memo",
                "label": "Credit memo"
              },
              {
                "value": "correction",
                "label": "Correction"
              }
            ]
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "kind": "options",
            "options": [
              {
                "value": "unpaid",
                "label": "Unpaid"
              },
              {
                "value": "partially_paid",
                "label": "Partially paid"
              },
              {
                "value": "paid",
                "label": "Paid"
              },
              {
                "value": "overpaid",
                "label": "Overpaid"
              },
              {
                "value": "credited",
                "label": "Credited"
              },
              {
                "value": "corrected",
                "label": "Corrected"
              }
            ]
          },
          {
            "key": "due",
            "label": "Due",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "waiting_to_email",
            "label": "Waiting to email",
            "kind": "toggle"
          },
          {
            "key": "not_emailed",
            "label": "Not emailed",
            "kind": "toggle"
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "invoice_date",
            "label": "Invoice date",
            "field": "invoice_date",
            "sort": "invoice_date",
            "kind": "date",
            "currency": null
          },
          {
            "key": "customer_po_number",
            "label": "Customer PO",
            "field": "customer_po_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "correction": "Correction"
            }
          },
          {
            "key": "editable",
            "label": "Editable",
            "field": "editable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": "payment_term",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": "clause",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order"
            ]
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": "sent_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Subtotal",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home subtotal",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "home_cogs",
            "label": "COGS",
            "field": "home_cogs_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "paid",
            "label": "Paid",
            "field": "paid_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "credited",
            "label": "Credited",
            "field": "credited_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "balance",
            "label": "Balance",
            "field": "balance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "field": "settlement",
            "sort": "settlement",
            "kind": "text",
            "currency": null,
            "labels": {
              "unpaid": "Unpaid",
              "partially_paid": "Partially paid",
              "paid": "Paid",
              "overpaid": "Overpaid",
              "credited": "Credited",
              "corrected": "Corrected"
            }
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_tax",
            "label": "Home tax",
            "field": "home_tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "grand_total",
            "label": "Total",
            "field": "grand_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "tax_applies",
            "label": "Taxable",
            "field": "tax_applies",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_destination",
            "label": "Tax destination",
            "field": "tax_destination.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_suppressed",
            "label": "Tax suppressed",
            "field": "tax_suppressed",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_exemption",
            "label": "Tax exemption",
            "field": "tax_exemption",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/invoices/{uuid}": {
      "get": {
        "operationId": "get_invoice",
        "summary": "Retrieve an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_invoice",
        "summary": "Update an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{invoice_uuid}/applications": {
      "get": {
        "operationId": "list_invoice_applications",
        "summary": "List receivable applications",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceivableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceivableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/invoices/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_invoice",
        "summary": "Cancel an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/correct": {
      "post": {
        "operationId": "correct_invoice",
        "summary": "Correct an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "correct",
        "x-risk": "reversible",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/email": {
      "post": {
        "operationId": "email_invoice",
        "summary": "Email an invoice or credit memo",
        "description": "Emails the invoice's form, or a credit memo's, as a PDF from the organization's sending address, tied to the invoice's conversation and narrated `emailed`. A draft is issued first, as `POST /invoices/{uuid}/send` would, posting it to accounting; a failure after that leaves it issued, and the refusal says so. An issued one goes out again unchanged",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/invoices/{invoice_uuid}/lines": {
      "get": {
        "operationId": "list_invoice_lines",
        "summary": "List invoice lines",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_invoice_line",
        "summary": "Create an invoice line",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The invoice line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{invoice_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_invoice_line",
        "summary": "Retrieve an invoice line",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_invoice_line",
        "summary": "Update an invoice line",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoice line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_invoice_line",
        "summary": "Delete an invoice line",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_invoice",
        "summary": "Preview an invoice's email",
        "description": "Renders the email `POST /invoices/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and a draft stays a draft",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoicePreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/resolve_part_numbers": {
      "post": {
        "operationId": "resolve_part_numbers_invoice",
        "summary": "Resolve the part numbers on an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceResolvePartNumbers"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resolve_part_numbers",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_invoice",
        "summary": "Revise the lines of an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{uuid}/send": {
      "post": {
        "operationId": "send_invoice",
        "summary": "Send an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/invoices/{invoice_uuid}/trash": {
      "post": {
        "operationId": "trash_invoice",
        "summary": "Trash an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_invoice",
        "summary": "Restore an invoice",
        "tags": [
          "invoices"
        ],
        "parameters": [
          {
            "name": "invoice_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The invoice",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/issued_parts": {
      "get": {
        "operationId": "list_issued_parts",
        "summary": "List issued parts",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "allocated",
                  "at_vendor",
                  "settled"
                ],
                "description": "`pending`: No part reserved for the issue yet; `allocated`: Parts reserved and not yet shipped to the vendor; `at_vendor`: Parts shipped to the vendor; `settled`: Every part accounted for: issued to the vendor or put back",
                "x-enum-descriptions": [
                  "No part reserved for the issue yet",
                  "Parts reserved and not yet shipped to the vendor",
                  "Parts shipped to the vendor",
                  "Every part accounted for: issued to the vendor or put back"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Allocated",
                  "At vendor",
                  "Settled"
                ]
              }
            },
            "description": "Rows matching any of the values given. Only beside `order[]`, `purchase_order[]` or `repair_order[]`, since it is worked out row by row",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a purchase order line or a repair order line"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a purchase order or a repair order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity_issued",
                "-quantity_issued",
                "quantity_put_back",
                "-quantity_put_back",
                "market_value_cents",
                "-market_value_cents",
                "line_position",
                "-line_position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `line_position` sorts only beside a single `order[]`, `purchase_order[]` or `repair_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/IssuedPartListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPartList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "stage",
            "label": "Stage",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "allocated",
                "label": "Allocated"
              },
              {
                "value": "at_vendor",
                "label": "At vendor"
              },
              {
                "value": "settled",
                "label": "Settled"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "market_value",
            "label": "Declared",
            "field": "market_value_cents",
            "sort": "market_value_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "stage",
            "label": "Stage",
            "field": "stage",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "allocated": "Allocated",
              "at_vendor": "At vendor",
              "settled": "Settled"
            }
          },
          {
            "key": "purchase_order_identifier",
            "label": "Purchase order identifier",
            "field": "order",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "line",
            "label": "For line",
            "field": "line_position",
            "sort": "line_position",
            "kind": "number",
            "currency": null,
            "beside": [
              "order",
              "purchase_order",
              "repair_order"
            ]
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Issuing",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_allocated",
            "label": "Allocated",
            "field": "quantity_allocated",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_issued",
            "label": "Issued",
            "field": "quantity_issued",
            "sort": "quantity_issued",
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_put_back",
            "label": "Returned to inventory",
            "field": "quantity_put_back",
            "sort": "quantity_put_back",
            "kind": "number",
            "currency": null
          },
          {
            "key": "shipped_quantity",
            "label": "At vendor",
            "field": "quantity_shipped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_to_issue",
            "label": "To issue",
            "field": "quantity_to_issue",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_to_put_back",
            "label": "To return to inventory",
            "field": "quantity_to_put_back",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_issued_part",
        "summary": "Create an issued part",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/IssuedPartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuedPartCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The issued part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/issued_parts/{uuid}": {
      "get": {
        "operationId": "get_issued_part",
        "summary": "Retrieve an issued part",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/IssuedPartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The issued part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_issued_part",
        "summary": "Update an issued part",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/IssuedPartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuedPartUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The issued part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_issued_part",
        "summary": "Delete an issued part",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/issued_parts/{uuid}/put_back": {
      "post": {
        "operationId": "put_back_issued_part",
        "summary": "Put back an issued part",
        "tags": [
          "issued_parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/IssuedPartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssuedPartPutBack"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The issued part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssuedPart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "put_back",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/items": {
      "get": {
        "operationId": "list_items",
        "summary": "List items",
        "tags": [
          "items"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at",
                "relevance"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `relevance` needs `q`; it ranks what `q` finds across parts and charges alike, the part number or charge name typed exactly first, then the part numbers and charge codes holding it, then the names and descriptions naming it, on one page of at most 20 with no next cursor, equal ranks by uuid. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ItemListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "part",
                "label": "Part"
              },
              {
                "value": "charge",
                "label": "Charge"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Part or charge",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "part": "Part",
              "charge": "Charge"
            }
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_category",
            "label": "Tax category",
            "field": "tax_category.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inactive_at",
            "label": "Inactive",
            "field": "inactive_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/items/{uuid}": {
      "get": {
        "operationId": "get_item",
        "summary": "Retrieve an item",
        "tags": [
          "items"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ItemField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/labor_entries": {
      "get": {
        "operationId": "list_labor_entries",
        "summary": "List labor entries",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "employee[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "started",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "started_at",
                "-started_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-started_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "employee",
            "label": "Employee",
            "kind": "options",
            "references": [
              "employee"
            ],
            "fenced": true
          },
          {
            "key": "skill",
            "label": "Skill",
            "kind": "options",
            "references": [
              "skill"
            ]
          },
          {
            "key": "started",
            "label": "Started",
            "kind": "range"
          },
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "work_order",
            "label": "Work order",
            "field": "work_order.identifier",
            "sort": null,
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "task",
            "label": "Task",
            "field": "work_order_task",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "employee",
            "label": "Employee",
            "field": "employee.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "skill",
            "label": "Skill",
            "field": "skill.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "started_at",
            "label": "Start",
            "field": "started_at",
            "sort": "started_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "ended_at",
            "label": "End",
            "field": "ended_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "hours",
            "label": "Hours",
            "field": "hours",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "cost",
            "label": "Cost",
            "field": "cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "bill",
            "label": "Bill",
            "field": "bill_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "cost_rate",
            "label": "Cost rate",
            "field": "cost_rate_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "bill_rate",
            "label": "Bill rate",
            "field": "bill_rate_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "origin",
            "label": "Origin",
            "field": "origin",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "clocked": "Clocked",
              "keyed": "Keyed"
            }
          },
          {
            "key": "entered_by",
            "label": "Entered by",
            "field": "entered_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_labor_entry",
        "summary": "Create a labor entry",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaborEntryCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The labor entry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:labor",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/labor_entries/{uuid}": {
      "get": {
        "operationId": "get_labor_entry",
        "summary": "Retrieve a labor entry",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The labor entry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/labor_entries/{uuid}/clock_out": {
      "post": {
        "operationId": "clock_out_labor_entry",
        "summary": "Clock out of a labor entry",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The labor entry",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "clock_out",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/labor_entries/{uuid}/correct": {
      "post": {
        "operationId": "correct_labor_entry",
        "summary": "Correct a labor entry",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaborEntryCorrect"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The labor entry it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "correct",
        "x-risk": "reversible",
        "x-grant": "repairs:labor",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/labor_entries/{uuid}/remove": {
      "post": {
        "operationId": "remove_labor_entry",
        "summary": "Remove a labor entry",
        "tags": [
          "labor_entries"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The labor entry it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "remove",
        "x-risk": "destructive",
        "x-grant": "repairs:labor",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/lead_times": {
      "get": {
        "operationId": "list_lead_times",
        "summary": "List lead times",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "in_stock",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only the lead time the account was founded with as In Stock, whatever it is called now, which a unit on the shelf takes"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "days",
                "-days",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTimeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "days",
            "label": "Days",
            "field": "days",
            "sort": "days",
            "kind": "number",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_lead_time",
        "summary": "Create a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LeadTimeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The lead time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTime"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/lead_times/{uuid}": {
      "get": {
        "operationId": "get_lead_time",
        "summary": "Retrieve a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The lead time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTime"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_lead_time",
        "summary": "Update a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LeadTimeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The lead time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTime"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_lead_time",
        "summary": "Delete a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/lead_times/{uuid}/activate": {
      "post": {
        "operationId": "activate_lead_time",
        "summary": "Activate a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The lead time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTime"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/lead_times/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_lead_time",
        "summary": "Deactivate a lead time",
        "tags": [
          "lead_times"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LeadTimeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The lead time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadTime"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ledger_account_activities": {
      "get": {
        "operationId": "list_ledger_account_activities",
        "summary": "List ledger account activities",
        "tags": [
          "ledger_account_activities"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "ledger_account[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a ledger account"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "kind",
                "-kind",
                "debit_cents",
                "-debit_cents",
                "credit_cents",
                "-credit_cents",
                "net_change_cents",
                "-net_change_cents",
                "posted_to_date_cents",
                "-posted_to_date_cents",
                "pending_to_date_cents",
                "-pending_to_date_cents",
                "net_to_date_cents",
                "-net_to_date_cents"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Accounts list inside their type, in the chart's order (asset, liability, equity, revenue, cost of goods sold, expense), unless the sort is `kind`; rows equal under the sort follow by `code`, then the account's uuid, ascending either way."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountActivityListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count",
                  "totals"
                ]
              }
            },
            "description": "Add `total_count` and `totals` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccountActivityList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "dated",
            "label": "Date",
            "kind": "range"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Account",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "asset": "Asset",
              "liability": "Liability",
              "equity": "Equity",
              "revenue": "Revenue",
              "cogs": "Cost of goods sold",
              "expense": "Expense"
            }
          },
          {
            "key": "debit",
            "label": "Debits",
            "field": "debit_cents",
            "sort": "debit_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "credit",
            "label": "Credits",
            "field": "credit_cents",
            "sort": "credit_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "net_change",
            "label": "Net change",
            "field": "net_change_cents",
            "sort": "net_change_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "posted_to_date",
            "label": "Posted to date",
            "field": "posted_to_date_cents",
            "sort": "posted_to_date_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "pending_to_date",
            "label": "Pending to date",
            "field": "pending_to_date_cents",
            "sort": "pending_to_date_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "net_to_date",
            "label": "Net to date",
            "field": "net_to_date_cents",
            "sort": "net_to_date_cents",
            "kind": "money",
            "currency": "account"
          }
        ]
      }
    },
    "/ledger_accounts": {
      "get": {
        "operationId": "list_ledger_accounts",
        "summary": "List ledger accounts",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "asset",
                  "liability",
                  "equity",
                  "revenue",
                  "cogs",
                  "expense"
                ],
                "x-enum-labels": [
                  "Asset",
                  "Liability",
                  "Equity",
                  "Revenue",
                  "Cost of goods sold",
                  "Expense"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "description",
                "-description",
                "kind",
                "-kind",
                "active",
                "-active",
                "quickbooks",
                "-quickbooks",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccountList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "asset",
                "label": "Asset"
              },
              {
                "value": "liability",
                "label": "Liability"
              },
              {
                "value": "equity",
                "label": "Equity"
              },
              {
                "value": "revenue",
                "label": "Revenue"
              },
              {
                "value": "cogs",
                "label": "Cost of goods sold"
              },
              {
                "value": "expense",
                "label": "Expense"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Usage",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "asset": "Asset",
              "liability": "Liability",
              "equity": "Equity",
              "revenue": "Revenue",
              "cogs": "Cost of goods sold",
              "expense": "Expense"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "quickbooks",
            "label": "QuickBooks",
            "field": "quickbooks_assignment",
            "sort": "quickbooks",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_ledger_account",
        "summary": "Create a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerAccountCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The ledger account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/ledger_accounts/{uuid}": {
      "get": {
        "operationId": "get_ledger_account",
        "summary": "Retrieve a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The ledger account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_ledger_account",
        "summary": "Update a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerAccountUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The ledger account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_ledger_account",
        "summary": "Delete a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ledger_accounts/{uuid}/activate": {
      "post": {
        "operationId": "activate_ledger_account",
        "summary": "Activate a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The ledger account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ledger_accounts/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_ledger_account",
        "summary": "Deactivate a ledger account",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The ledger account",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccount"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ledger_accounts/{ledger_account_uuid}/lines": {
      "get": {
        "operationId": "list_ledger_account_lines",
        "summary": "List ledger account lines",
        "description": "One general ledger account's postings, each with what the account holds to date once it posts",
        "tags": [
          "ledger_accounts"
        ],
        "parameters": [
          {
            "name": "ledger_account_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "posted_on",
                "-posted_on",
                "accounting_transaction_number",
                "-accounting_transaction_number",
                "activity",
                "-activity",
                "accounting_transaction_status",
                "-accounting_transaction_status",
                "description",
                "-description",
                "home_debit_cents",
                "-home_debit_cents",
                "home_credit_cents",
                "-home_credit_cents",
                "home_net_to_date_cents",
                "-home_net_to_date_cents",
                "purpose",
                "-purpose",
                "inventory_code",
                "-inventory_code",
                "entity_name",
                "-entity_name",
                "updated_at",
                "-updated_at"
              ],
              "default": "posted_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `accounting_transaction_status` sorts in its own order, pending, posted, failed, skipped, not the alphabet. `purpose` sorts in its own order, accounts_payable, accounts_receivable, cogs_acquisition, cogs_repair, capitalized_cost, consignor_accrual, consignor_payable, core_charge_revenue, credit_card_fee_revenue, customer_deposits, exchange_core_repair, exchange_core_awaiting, fx_gain_loss, freight_expense, freight_revenue, inventory_adjustment, inventory_on_lease, inventory_acquisition, inventory_repair, investor_accrual, investor_expense, investor_payable, lease_cogs, lease_expense, lease_revenue, non_inventory_expense, opening_balance_equity, rma_clearing, repair_expense, repair_inventory_accrual, rounding, revenue, sales_tax_payable, teardown_wip, unbilled_expense, voucher_variance, vouchers_payable, wire_transfer_fee_revenue, wo_cogs, wo_cogs_labor, wo_cogs_misc_charge, wo_cogs_parts, wo_labor, wo_revenue, wo_revenue_labor, wo_revenue_parts, wo_wip_labor, wo_wip_misc_charge, wo_wip_parts, wo_warranty_expense, not the alphabet. Rows equal under the sort follow by `posting_order`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LedgerAccountLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerAccountLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "dated",
            "label": "Date",
            "kind": "range"
          }
        ],
        "x-columns": [
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "home_debit",
            "label": "Debit",
            "field": "home_debit_cents",
            "sort": "home_debit_cents",
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "home_credit",
            "label": "Credit",
            "field": "home_credit_cents",
            "sort": "home_credit_cents",
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "purpose",
            "label": "Purpose",
            "field": "purpose_label",
            "sort": "purpose",
            "kind": "text",
            "currency": null
          },
          {
            "key": "posted_on",
            "label": "Date",
            "field": "posted_on",
            "sort": "posted_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "activity",
            "label": "Activity",
            "field": "activity",
            "sort": "activity",
            "kind": "text",
            "currency": null,
            "labels": {
              "receipt": "Receipt",
              "issue": "Issue",
              "scrap": "Scrap",
              "value_adjustment": "Value adjustment",
              "quantity_adjustment": "Quantity adjustment",
              "acquisition": "Acquisition",
              "chargeout": "Chargeout",
              "accrual": "Accrual",
              "settlement": "Settlement",
              "transfer_out": "Transfer out",
              "transfer_in": "Transfer in",
              "write_off": "Write off",
              "return_release": "Return release",
              "core_charge": "Core charge",
              "lease_writedown": "Lease writedown",
              "return_credit": "Return credit",
              "labor": "Labor",
              "invoice": "Invoice",
              "credit_memo": "Credit memo",
              "correction": "Correction",
              "bill": "Bill",
              "vendor_credit": "Vendor credit",
              "voucher_correction": "Voucher correction"
            }
          },
          {
            "key": "home_net_to_date",
            "label": "Net to date",
            "field": "home_net_to_date_cents",
            "sort": "home_net_to_date_cents",
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "transaction",
            "label": "Transaction",
            "field": "accounting_transaction.identifier",
            "sort": "accounting_transaction_number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "accounting_transaction_status",
            "label": "Status",
            "field": "accounting_transaction_status",
            "sort": "accounting_transaction_status",
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "posted": "Posted",
              "failed": "Failed",
              "skipped": "Skipped"
            }
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": "inventory_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "entity",
            "label": "Entity",
            "field": "entity.name",
            "sort": "entity_name",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/ledger_defaults": {
      "get": {
        "operationId": "list_organization_ledger_defaults",
        "summary": "List organization ledger defaults",
        "tags": [
          "ledger_defaults"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationLedgerDefaultListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationLedgerDefaultList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/ledger_defaults/{key}": {
      "patch": {
        "operationId": "update_organization_ledger_default",
        "summary": "Update an organization ledger default",
        "tags": [
          "ledger_defaults"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationLedgerDefaultField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationLedgerDefaultUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The organization ledger default",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationLedgerDefault"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_organization_ledger_default",
        "summary": "Delete an organization ledger default",
        "tags": [
          "ledger_defaults"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests": {
      "get": {
        "operationId": "list_manifests",
        "summary": "List manifests",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "complete",
                  "cancelled"
                ],
                "description": "`open`: A line is still expected, some of it neither received, scrapped nor cancelled, or none is listed yet; `complete`: Nothing more is expected: every line is received, scrapped or cancelled, or the manifest was completed; `cancelled`: Called off: no line on it is receivable any more",
                "x-enum-descriptions": [
                  "A line is still expected, some of it neither received, scrapped nor cancelled, or none is listed yet",
                  "Nothing more is expected: every line is received, scrapped or cancelled, or the manifest was completed",
                  "Called off: no line on it is receivable any more"
                ],
                "x-enum-labels": [
                  "Open",
                  "Complete",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receivable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only manifests a receipt can go on: neither completed nor cancelled, the code is active, and a lot order funding it has gone to the vendor"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "name",
                "-name",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "complete",
                "label": "Complete"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Manifest",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "complete": "Complete",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory",
            "label": "Inventory",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_quantity",
            "label": "Expected",
            "field": "quantity_expected",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "received_quantity",
            "label": "Received",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "scrapped_quantity",
            "label": "Scrapped",
            "field": "quantity_scrapped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "line_count",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "receipt_count",
            "label": "Receipts",
            "field": "receipt_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "open",
            "label": "Open",
            "field": "open",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "funding",
            "label": "Funded by",
            "field": "funding",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "source_unit",
            "label": "Parts of",
            "field": "source_unit",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/manifests/{uuid}": {
      "get": {
        "operationId": "get_manifest",
        "summary": "Retrieve a manifest",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines"
                ]
              }
            },
            "description": "Inline `lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The manifest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manifest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_manifest",
        "summary": "Update a manifest",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines"
                ]
              }
            },
            "description": "Inline `lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manifest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manifest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_manifest",
        "summary": "Create a receipt for a manifest",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestCreateReceipt"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{uuid}/import_lines": {
      "post": {
        "operationId": "import_lines_manifest",
        "summary": "Import lines into a manifest",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestImportLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manifest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manifest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "import_lines",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{manifest_uuid}/lines": {
      "get": {
        "operationId": "list_manifest_lines",
        "summary": "List manifest lines",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "complete",
                  "cancelled"
                ],
                "description": "`outstanding`: Expected still: some is neither received, scrapped nor cancelled; `complete`: All of it received or scrapped; `cancelled`: No longer expected",
                "x-enum-descriptions": [
                  "Expected still: some is neither received, scrapped nor cancelled",
                  "All of it received or scrapped",
                  "No longer expected"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Complete",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sendable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines matched to a part with something outstanding, which `POST /manifests/{uuid}/create_receipt` takes"
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a receipt"
              }
            },
            "description": "Leaves out the lines `receipt[]` would list: what a receipt could still take from its manifest, beside `sendable`",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "outstanding",
                "label": "Outstanding"
              },
              {
                "value": "complete",
                "label": "Complete"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_manifest_line",
        "summary": "Create a manifest line",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The manifest line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{manifest_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_manifest_line",
        "summary": "Retrieve a manifest line",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The manifest line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_manifest_line",
        "summary": "Update a manifest line",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manifest line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_manifest_line",
        "summary": "Delete a manifest line",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{manifest_uuid}/lines/{uuid}/scrap": {
      "post": {
        "operationId": "scrap_manifest_line",
        "summary": "Scrap a manifest line",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "manifest_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestLineScrap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manifest line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManifestLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "scrap",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manifests/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_manifest",
        "summary": "Revise the lines of a manifest",
        "tags": [
          "manifests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManifestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manifest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manifest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manufacturers": {
      "get": {
        "operationId": "list_manufacturers",
        "summary": "List manufacturers",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "cage_code",
                "-cage_code",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ManufacturerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "cage_code",
            "label": "CAGE code",
            "field": "cage_code",
            "sort": "cage_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_manufacturer",
        "summary": "Create a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManufacturerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The manufacturer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manufacturer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/manufacturers/{uuid}": {
      "get": {
        "operationId": "get_manufacturer",
        "summary": "Retrieve a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The manufacturer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manufacturer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_manufacturer",
        "summary": "Update a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManufacturerUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The manufacturer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manufacturer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_manufacturer",
        "summary": "Delete a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/manufacturers/{uuid}/activate": {
      "post": {
        "operationId": "activate_manufacturer",
        "summary": "Activate a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The manufacturer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manufacturer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/manufacturers/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_manufacturer",
        "summary": "Deactivate a manufacturer",
        "tags": [
          "manufacturers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ManufacturerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The manufacturer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Manufacturer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_catalogs": {
      "get": {
        "operationId": "list_marketplace_catalogs",
        "summary": "List marketplace catalogs",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "marketplace_integration[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace integration's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "name",
                "-name",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalogList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "lists",
            "label": "Lists",
            "field": "lists",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "inventory": "Inventory",
              "capabilities": "Capabilities"
            }
          },
          {
            "key": "buyer_group",
            "label": "Buyer group",
            "field": "buyer_group",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_marketplace_catalog",
        "summary": "Create a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceCatalogCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalog"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_catalogs/{uuid}": {
      "get": {
        "operationId": "get_marketplace_catalog",
        "summary": "Retrieve a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalog"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_catalog",
        "summary": "Update a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceCatalogUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalog"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_catalog",
        "summary": "Delete a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_catalogs/{uuid}/activate": {
      "post": {
        "operationId": "activate_marketplace_catalog",
        "summary": "Activate a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalog"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_catalogs/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_marketplace_catalog",
        "summary": "Deactivate a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceCatalogField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace catalog",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCatalog"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_catalogs/{uuid}/refresh_listings": {
      "post": {
        "operationId": "refresh_listings_marketplace_catalog",
        "summary": "Refresh the listings of a marketplace catalog",
        "tags": [
          "marketplace_catalogs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ListingRefreshField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "202": {
            "description": "The listing refresh it made, queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefresh"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The refresh already waiting to run, when one is",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefresh"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "refresh_listings",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_conditions": {
      "get": {
        "operationId": "list_marketplace_conditions",
        "summary": "List marketplace conditions",
        "tags": [
          "marketplace_conditions"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceConditionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceConditionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_marketplace_condition",
        "summary": "Create a marketplace condition",
        "tags": [
          "marketplace_conditions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceConditionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_conditions/{uuid}": {
      "get": {
        "operationId": "get_marketplace_condition",
        "summary": "Retrieve a marketplace condition",
        "tags": [
          "marketplace_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_condition",
        "summary": "Update a marketplace condition",
        "tags": [
          "marketplace_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceConditionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceConditionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace condition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceCondition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_condition",
        "summary": "Delete a marketplace condition",
        "tags": [
          "marketplace_conditions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations": {
      "get": {
        "operationId": "list_marketplace_integrations",
        "summary": "List marketplace integrations",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "takes_listings",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only integrations with a marketplace that takes listings, which Smart Listing refreshes"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegrationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "takes_listings",
            "label": "Takes listings",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "marketplace",
            "label": "Marketplace",
            "field": "marketplace.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "mode",
            "label": "Mode",
            "field": "mode",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "manual": "Manual",
              "automatic": "Automatic"
            }
          },
          {
            "key": "last_refresh",
            "label": "Last refresh",
            "field": "last_refresh",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "listed",
            "label": "Listed",
            "field": "last_refresh",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "file",
            "label": "File",
            "field": "last_refresh",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_marketplace_integration",
        "summary": "Create a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceIntegrationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations/{uuid}": {
      "get": {
        "operationId": "get_marketplace_integration",
        "summary": "Retrieve a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_integration",
        "summary": "Update a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceIntegrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_integration",
        "summary": "Delete a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations/{uuid}/activate": {
      "post": {
        "operationId": "activate_marketplace_integration",
        "summary": "Activate a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_marketplace_integration",
        "summary": "Deactivate a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations/{marketplace_integration_uuid}/listing_refreshes": {
      "get": {
        "operationId": "list_listing_refreshes",
        "summary": "List listing refreshes",
        "description": "An integration's runs: the listings file each built, how it reached the marketplace, and what changed since the run before",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "marketplace_integration_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "trigger[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "scheduled",
                  "requested"
                ],
                "description": "`scheduled`: The integration's schedule came due; `requested`: A person or an API caller asked for it",
                "x-enum-descriptions": [
                  "The integration's schedule came due",
                  "A person or an API caller asked for it"
                ],
                "x-enum-labels": [
                  "Scheduled",
                  "Requested"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "building",
                  "completed",
                  "failed"
                ],
                "description": "`pending`: Queued, and nothing built yet; `building`: Building the listings file; `completed`: Built the file and counted what changed since the last refresh; `failed`: Stopped by an error, before or after its file was built",
                "x-enum-descriptions": [
                  "Queued, and nothing built yet",
                  "Building the listings file",
                  "Built the file and counted what changed since the last refresh",
                  "Stopped by an error, before or after its file was built"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Building",
                  "Completed",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "outcome[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ready_to_download",
                  "sent",
                  "under_review",
                  "delivered",
                  "withheld",
                  "failed"
                ],
                "description": "`ready_to_download`: The file waits to be downloaded and uploaded by hand; `sent`: Sent to the marketplace, which is still processing the file; `under_review`: The marketplace's team is reviewing the file by hand; `delivered`: The marketplace took the file; `withheld`: Built in a sandbox, which never sends listings anywhere; `failed`: The file couldn't be built or sent",
                "x-enum-descriptions": [
                  "The file waits to be downloaded and uploaded by hand",
                  "Sent to the marketplace, which is still processing the file",
                  "The marketplace's team is reviewing the file by hand",
                  "The marketplace took the file",
                  "Built in a sandbox, which never sends listings anywhere",
                  "The file couldn't be built or sent"
                ],
                "x-enum-labels": [
                  "Ready to download",
                  "Sent",
                  "Under review",
                  "Delivered",
                  "Withheld",
                  "Failed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "started_at",
                "-started_at",
                "listed_count",
                "-listed_count",
                "omitted_count",
                "-omitted_count",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ListingRefreshListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefreshList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "trigger",
            "label": "Trigger",
            "kind": "options",
            "options": [
              {
                "value": "scheduled",
                "label": "Scheduled"
              },
              {
                "value": "requested",
                "label": "Requested"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "building",
                "label": "Building"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "failed",
                "label": "Failed"
              }
            ]
          },
          {
            "key": "outcome",
            "label": "Result",
            "kind": "options",
            "options": [
              {
                "value": "ready_to_download",
                "label": "Ready to download"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "under_review",
                "label": "Under review"
              },
              {
                "value": "delivered",
                "label": "Delivered"
              },
              {
                "value": "withheld",
                "label": "Withheld"
              },
              {
                "value": "failed",
                "label": "Failed"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "started",
            "label": "Started",
            "field": "started_at",
            "sort": "started_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "catalog",
            "label": "Catalog",
            "field": "marketplace_catalog.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "trigger",
            "label": "Trigger",
            "field": "trigger",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "scheduled": "Scheduled",
              "requested": "Requested"
            }
          },
          {
            "key": "requester",
            "label": "Asked by",
            "field": "requester.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "result",
            "label": "Result",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "building": "Building",
              "completed": "Completed",
              "failed": "Failed"
            }
          },
          {
            "key": "listed",
            "label": "Listed",
            "field": "listed_count",
            "sort": "listed_count",
            "kind": "number",
            "currency": null
          },
          {
            "key": "changes",
            "label": "Added, dropped, changed",
            "field": "added_count",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "left_out",
            "label": "Left out",
            "field": "omitted_count",
            "sort": "omitted_count",
            "kind": "number",
            "currency": null
          },
          {
            "key": "file",
            "label": "File",
            "field": "export.label",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/marketplace_integrations/{marketplace_integration_uuid}/listing_refreshes/{uuid}": {
      "get": {
        "operationId": "get_listing_refresh",
        "summary": "Retrieve a listing refresh",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "marketplace_integration_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ListingRefreshField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The listing refresh",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefresh"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_integrations/{uuid}/refresh_listings": {
      "post": {
        "operationId": "refresh_listings_marketplace_integration",
        "summary": "Refresh the listings of a marketplace integration",
        "tags": [
          "marketplace_integrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ListingRefreshField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "202": {
            "description": "The listing refresh it made, queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefresh"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The refresh already waiting to run, when one is",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingRefresh"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "refresh_listings",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_listing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_measurement_units": {
      "get": {
        "operationId": "list_marketplace_measurement_units",
        "summary": "List marketplace measurement units",
        "tags": [
          "marketplace_measurement_units"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceMeasurementUnitList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_marketplace_measurement_unit",
        "summary": "Create a marketplace measurement unit",
        "tags": [
          "marketplace_measurement_units"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceMeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_measurement_units/{uuid}": {
      "get": {
        "operationId": "get_marketplace_measurement_unit",
        "summary": "Retrieve a marketplace measurement unit",
        "tags": [
          "marketplace_measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceMeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_measurement_unit",
        "summary": "Update a marketplace measurement unit",
        "tags": [
          "marketplace_measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMeasurementUnitUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceMeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_measurement_unit",
        "summary": "Delete a marketplace measurement unit",
        "tags": [
          "marketplace_measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_repair_services": {
      "get": {
        "operationId": "list_marketplace_repair_services",
        "summary": "List marketplace repair services",
        "tags": [
          "marketplace_repair_services"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceRepairServiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_marketplace_repair_service",
        "summary": "Create a marketplace repair service",
        "tags": [
          "marketplace_repair_services"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_repair_services/{uuid}": {
      "get": {
        "operationId": "get_marketplace_repair_service",
        "summary": "Retrieve a marketplace repair service",
        "tags": [
          "marketplace_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_repair_service",
        "summary": "Update a marketplace repair service",
        "tags": [
          "marketplace_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceRepairServiceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceRepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_repair_service",
        "summary": "Delete a marketplace repair service",
        "tags": [
          "marketplace_repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_tag_types": {
      "get": {
        "operationId": "list_marketplace_tag_types",
        "summary": "List marketplace tag types",
        "tags": [
          "marketplace_tag_types"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceTagTypeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceTagTypeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_marketplace_tag_type",
        "summary": "Create a marketplace tag type",
        "tags": [
          "marketplace_tag_types"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceTagTypeCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplace_tag_types/{uuid}": {
      "get": {
        "operationId": "get_marketplace_tag_type",
        "summary": "Retrieve a marketplace tag type",
        "tags": [
          "marketplace_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace_tag_type",
        "summary": "Update a marketplace tag type",
        "tags": [
          "marketplace_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceTagTypeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceTagTypeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace tag type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceTagType"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace_tag_type",
        "summary": "Delete a marketplace tag type",
        "tags": [
          "marketplace_tag_types"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces": {
      "get": {
        "operationId": "list_marketplaces",
        "summary": "List marketplaces",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "code",
                "-code",
                "created_at",
                "-created_at",
                "known_as",
                "-known_as",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "known_as",
            "label": "Known as",
            "field": "known_as",
            "sort": "known_as",
            "kind": "text",
            "currency": null,
            "labels": {
              "ils": "ILS",
              "partsbase": "PartsBase",
              "the145": "The145",
              "b2b_aero": "B2B-Aero"
            }
          },
          {
            "key": "includes_prices",
            "label": "Include prices",
            "field": "includes_prices",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "includes_vendor_inventory",
            "label": "Include vendor inventory",
            "field": "includes_vendor_inventory",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "marketplace_conditions",
            "label": "Conditions",
            "field": "marketplace_conditions",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "marketplace_tag_types",
            "label": "Tag types",
            "field": "marketplace_tag_types",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "marketplace_measurement_units",
            "label": "Units",
            "field": "marketplace_measurement_units",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "marketplace_repair_services",
            "label": "Repair services",
            "field": "marketplace_repair_services",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_marketplace",
        "summary": "Create a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}": {
      "get": {
        "operationId": "get_marketplace",
        "summary": "Retrieve a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_marketplace",
        "summary": "Update a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_marketplace",
        "summary": "Delete a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}/activate": {
      "post": {
        "operationId": "activate_marketplace",
        "summary": "Activate a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_marketplace",
        "summary": "Deactivate a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{marketplace_uuid}/listings": {
      "get": {
        "operationId": "list_listings",
        "summary": "List listings",
        "description": "What a marketplace was last sent: each line of ours, and each vendor inventory row when it includes vendor inventory, as its general catalog's last refresh sent them",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "marketplace_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ListingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "organization",
            "label": "Organization",
            "kind": "options",
            "references": [
              "organization"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "part_number",
            "label": "Part number",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "alternate_part_numbers",
            "label": "Alternates",
            "field": "alternate_part_numbers",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "traceability",
            "label": "Tag type",
            "field": "traceability",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity_available",
            "label": "Available",
            "field": "quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_of_measure",
            "label": "Unit of measure",
            "field": "unit_of_measure",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "manufacturer",
            "label": "Manufacturer",
            "field": "manufacturer",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "cage_code",
            "label": "CAGE code",
            "field": "cage_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "trace_source",
            "label": "Traced to",
            "field": "trace_source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line_identifier",
            "sort": null,
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "sellable",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/marketplaces/{uuid}/map_condition": {
      "post": {
        "operationId": "map_condition_marketplace",
        "summary": "Map one of our conditions to the conditions of a marketplace it lists as and answers",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMapCondition"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_condition",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}/map_measurement_unit": {
      "post": {
        "operationId": "map_measurement_unit_marketplace",
        "summary": "Map a measurement unit to a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMapMeasurementUnit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_measurement_unit",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}/map_repair_service": {
      "post": {
        "operationId": "map_repair_service_marketplace",
        "summary": "Map a repair service to a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMapRepairService"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_repair_service",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/marketplaces/{uuid}/map_tag_type": {
      "post": {
        "operationId": "map_tag_type_marketplace",
        "summary": "Map a tag type to a marketplace",
        "tags": [
          "marketplaces"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MarketplaceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketplaceMapTagType"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The marketplace",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marketplace"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_tag_type",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_unit_listings": {
      "get": {
        "operationId": "list_measurement_unit_listings",
        "summary": "List measurement unit listings",
        "tags": [
          "measurement_unit_listings"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "measurement_unit[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A measurement unit's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitListingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnitListingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_measurement_unit_listing",
        "summary": "Create a measurement unit listing",
        "tags": [
          "measurement_unit_listings"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementUnitListingCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The measurement unit listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnitListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_unit_listings/{uuid}": {
      "get": {
        "operationId": "get_measurement_unit_listing",
        "summary": "Retrieve a measurement unit listing",
        "tags": [
          "measurement_unit_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The measurement unit listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnitListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_measurement_unit_listing",
        "summary": "Update a measurement unit listing",
        "tags": [
          "measurement_unit_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementUnitListingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The measurement unit listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnitListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_measurement_unit_listing",
        "summary": "Delete a measurement unit listing",
        "tags": [
          "measurement_unit_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_units": {
      "get": {
        "operationId": "list_measurement_units",
        "summary": "List measurement units",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "dimension[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "count",
                  "length",
                  "weight",
                  "volume",
                  "time"
                ],
                "description": "`count`: Counted in whole or part units, such as each or kit; `length`: Measured along one dimension, such as inches or meters; `weight`: Weighed, such as pounds or kilograms; `volume`: Measured by volume, such as gallons or liters; `time`: Measured in time, such as hours of labor",
                "x-enum-descriptions": [
                  "Counted in whole or part units, such as each or kit",
                  "Measured along one dimension, such as inches or meters",
                  "Weighed, such as pounds or kilograms",
                  "Measured by volume, such as gallons or liters",
                  "Measured in time, such as hours of labor"
                ],
                "x-enum-labels": [
                  "Count",
                  "Length",
                  "Weight",
                  "Volume",
                  "Time"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "dimension",
                "-dimension",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnitList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "dimension",
            "label": "Dimension",
            "kind": "options",
            "options": [
              {
                "value": "count",
                "label": "Count"
              },
              {
                "value": "length",
                "label": "Length"
              },
              {
                "value": "weight",
                "label": "Weight"
              },
              {
                "value": "volume",
                "label": "Volume"
              },
              {
                "value": "time",
                "label": "Time"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "dimension",
            "label": "Dimension",
            "field": "dimension",
            "sort": "dimension",
            "kind": "text",
            "currency": null,
            "labels": {
              "count": "Count",
              "length": "Length",
              "weight": "Weight",
              "volume": "Volume",
              "time": "Time"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_measurement_unit",
        "summary": "Create a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementUnitCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_units/{uuid}": {
      "get": {
        "operationId": "get_measurement_unit",
        "summary": "Retrieve a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_measurement_unit",
        "summary": "Update a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeasurementUnitUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_measurement_unit",
        "summary": "Delete a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_units/{uuid}/activate": {
      "post": {
        "operationId": "activate_measurement_unit",
        "summary": "Activate a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/measurement_units/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_measurement_unit",
        "summary": "Deactivate a measurement unit",
        "tags": [
          "measurement_units"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MeasurementUnitField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The measurement unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeasurementUnit"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships": {
      "get": {
        "operationId": "list_memberships",
        "summary": "List memberships",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "user",
                  "bot"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "employee",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the people working here as an active employee, `false` everyone else"
          },
          {
            "name": "away_today",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the people away at some time today, the business's day, by an away event they attend or a closure of their organization; `false` everyone else"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "tier",
                "-tier",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `tier` sorts in its own order, owner, admin, standard, not the alphabet. Rows equal under the sort follow by uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access"
                ]
              }
            },
            "description": "Inline `access` on each row; `access` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MembershipList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "user",
                "label": "User"
              },
              {
                "value": "bot",
                "label": "Bot"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "user": "User",
              "bot": "Bot",
              "staff": "Staff"
            }
          },
          {
            "key": "tier",
            "label": "Access",
            "field": "access.tier",
            "sort": "tier",
            "kind": "text",
            "currency": null,
            "expand": "access",
            "labels": {
              "owner": "Owner",
              "admin": "Admin",
              "standard": "Standard"
            }
          },
          {
            "key": "email_address",
            "label": "Email address",
            "field": "access.email_address",
            "sort": null,
            "kind": "text",
            "currency": null,
            "expand": "access"
          },
          {
            "key": "role_names",
            "label": "Roles",
            "field": "access.roles.name",
            "sort": null,
            "kind": "text",
            "currency": null,
            "expand": "access"
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "away_until",
            "label": "Away until",
            "field": "away_until",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_membership",
        "summary": "Create a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record; `access` needs the `settings:manage` grant, and is refused 403 without it; `source_fields` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{uuid}": {
      "get": {
        "operationId": "get_membership",
        "summary": "Retrieve a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record; `access` needs the `settings:manage` grant, and is refused 403 without it; `source_fields` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_membership",
        "summary": "Update a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record; `access` needs the `settings:manage` grant, and is refused 403 without it; `source_fields` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{uuid}/activate": {
      "post": {
        "operationId": "activate_membership",
        "summary": "Activate a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{membership_uuid}/avatar": {
      "get": {
        "operationId": "download_membership_avatar",
        "summary": "Download a membership's avatar",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "membership_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_membership",
        "summary": "Deactivate a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{uuid}/invite": {
      "post": {
        "operationId": "invite_membership",
        "summary": "Invite a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MembershipInvite"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "invite",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/memberships/{uuid}/resend_invitation": {
      "post": {
        "operationId": "resend_invitation_membership",
        "summary": "Resend the invitation for a membership",
        "tags": [
          "memberships"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "access",
                  "source_fields"
                ]
              }
            },
            "description": "Inline `access` or `source_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MembershipField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The membership",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Membership"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resend_invitation",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/message_files/{message_file_uuid}/content": {
      "get": {
        "operationId": "download_message_file",
        "summary": "Download a message file's file",
        "tags": [
          "message_files"
        ],
        "parameters": [
          {
            "name": "message_file_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "disposition",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "attachment",
                "inline"
              ],
              "default": "attachment"
            },
            "description": "`inline` opens the file in the browser; `attachment` downloads it"
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "200": {
            "description": "The file itself, when `disposition=inline` is asked of an image or a PDF, sent with `Content-Security-Policy: sandbox` and `X-Content-Type-Options: nosniff` so a browser opening it runs no script from it",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/tiff": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/bmp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.adobe.photoshop": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.microsoft.icon": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Disposition": {
                "description": "`inline`, with the file's name",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer. Answers a download, a `variant`, and a file asked `inline` that is not an image or a PDF",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/message_recipients/{message_recipient_uuid}/junk_help": {
      "get": {
        "operationId": "get_junk_help",
        "summary": "Retrieve a junk help",
        "tags": [
          "message_recipients"
        ],
        "parameters": [
          {
            "name": "message_recipient_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/JunkHelpField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The junk help",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JunkHelp"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/messages": {
      "get": {
        "operationId": "list_messages",
        "summary": "List messages",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email",
                  "phone",
                  "chat"
                ],
                "description": "`email`: Received or sent as email; `phone`: Said on a phone call, as a person logged it; `chat`: Said in a chat (WhatsApp, SMS, Teams and the like), as a person logged it or pasted it",
                "x-enum-descriptions": [
                  "Received or sent as email",
                  "Said on a phone call, as a person logged it",
                  "Said in a chat (WhatsApp, SMS, Teams and the like), as a person logged it or pasted it"
                ],
                "x-enum-labels": [
                  "Email",
                  "Phone",
                  "Chat"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inbound",
                  "outbound"
                ],
                "x-enum-labels": [
                  "Received",
                  "Sent"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "processing",
                  "completed",
                  "failed",
                  "ignored",
                  "held"
                ],
                "description": "`pending`: Received and waiting for its first pass; `processing`: A pass is reading it now; `completed`: Processed and passed on to what its address is for; `failed`: The last pass hit an error; a person can process it again; `ignored`: Left alone: mail no person needs to read, a copy of an earlier email, Gmail's forwarding confirmation, or ignored by a person; `held`: Waiting for a person: to place it in a conversation, or to judge an email the mail scan suspected or that failed its sender's domain's authentication",
                "x-enum-descriptions": [
                  "Received and waiting for its first pass",
                  "A pass is reading it now",
                  "Processed and passed on to what its address is for",
                  "The last pass hit an error; a person can process it again",
                  "Left alone: mail no person needs to read, a copy of an earlier email, Gmail's forwarding confirmation, or ignored by a person",
                  "Waiting for a person: to place it in a conversation, or to judge an email the mail scan suspected or that failed its sender's domain's authentication"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Processing",
                  "Completed",
                  "Failed",
                  "Ignored",
                  "Held"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "by_hand",
                  "copy_of_earlier_message",
                  "footer_from_stranger",
                  "unmatched_reply",
                  "suspected_malware",
                  "failed_authentication",
                  "suspected_spam",
                  "unconfirmed_sender",
                  "blocked_sender",
                  "marked_spam",
                  "forwarding_confirmation",
                  "own_email",
                  "automatic_reply",
                  "bulk",
                  "bounce",
                  "over_model_limit"
                ],
                "description": "`by_hand`: A person ignored it; `copy_of_earlier_message`: A copy of an email already received; `footer_from_stranger`: Quotes our email from outside the conversation it quotes; `unmatched_reply`: A reply to an email we can't find; `suspected_malware`: The mail scan found a virus in it: never read, and its files download only behind a warning; `failed_authentication`: It failed the DMARC check of the domain in its From, which asks for such mail to be quarantined or rejected, and none of your own domains forwarded it; Reprocess reads it when it is genuine; `suspected_spam`: The mail scan marked it as spam; Reprocess reads it when the scan is wrong; `unconfirmed_sender`: It names a conversation only by answering one of our emails, at the reply address or by its headers, from a sender that failed its domain's check or whose domain looks like one of your companies'; Move places it in that conversation when it is genuine; `blocked_sender`: Its From address, or that address's domain, is blocked on Sender rules: never read while the block stands, and read by Reprocess once it is unblocked; `marked_spam`: A person marked it as spam, which also blocked its From address; `forwarding_confirmation`: Google asking to confirm a Gmail account's forwarding to this address: never read, and its link shown on the Smart Quoting page; `own_email`: Our own email delivered back to us; `automatic_reply`: An out-of-office or other message a machine sent; `bulk`: Bulk or junk mail; `bounce`: A bounce or delivery report; `over_model_limit`: Not read: Smart Quoting had reached this month's model limit; it is read once the limit is raised or the month turns",
                "x-enum-descriptions": [
                  "A person ignored it",
                  "A copy of an email already received",
                  "Quotes our email from outside the conversation it quotes",
                  "A reply to an email we can't find",
                  "The mail scan found a virus in it: never read, and its files download only behind a warning",
                  "It failed the DMARC check of the domain in its From, which asks for such mail to be quarantined or rejected, and none of your own domains forwarded it; Reprocess reads it when it is genuine",
                  "The mail scan marked it as spam; Reprocess reads it when the scan is wrong",
                  "It names a conversation only by answering one of our emails, at the reply address or by its headers, from a sender that failed its domain's check or whose domain looks like one of your companies'; Move places it in that conversation when it is genuine",
                  "Its From address, or that address's domain, is blocked on Sender rules: never read while the block stands, and read by Reprocess once it is unblocked",
                  "A person marked it as spam, which also blocked its From address",
                  "Google asking to confirm a Gmail account's forwarding to this address: never read, and its link shown on the Smart Quoting page",
                  "Our own email delivered back to us",
                  "An out-of-office or other message a machine sent",
                  "Bulk or junk mail",
                  "A bounce or delivery report",
                  "Not read: Smart Quoting had reached this month's model limit; it is read once the limit is raised or the month turns"
                ],
                "x-enum-labels": [
                  "By hand",
                  "A copy of an earlier email",
                  "Quotes our email from outside its conversation",
                  "A reply to an email we can't find",
                  "Suspected malware",
                  "Failed its domain's authentication",
                  "Suspected spam",
                  "Couldn't confirm its sender",
                  "From a blocked sender",
                  "Marked as spam",
                  "Gmail forwarding confirmation",
                  "Our own email",
                  "Automatic reply",
                  "Bulk mail",
                  "Bounce",
                  "Over this month's model limit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "delivery_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sending",
                  "sent",
                  "delayed",
                  "delivered",
                  "rejected",
                  "failed",
                  "bounced",
                  "complained"
                ],
                "description": "`sending`: Not yet taken by the mail service; `sent`: Taken by the mail service, not yet confirmed delivered; `delayed`: The recipient's server hasn't accepted it yet and it is still being tried; `delivered`: The recipient's server accepted it; `rejected`: The mail service found a virus in it and sent it to no one; `failed`: The mail service couldn't be reached, or turned it down as it was handed over, so it wasn't sent; `bounced`: The recipient's server returned it, such as for an address that doesn't exist; `complained`: The recipient reported it as spam",
                "x-enum-descriptions": [
                  "Not yet taken by the mail service",
                  "Taken by the mail service, not yet confirmed delivered",
                  "The recipient's server hasn't accepted it yet and it is still being tried",
                  "The recipient's server accepted it",
                  "The mail service found a virus in it and sent it to no one",
                  "The mail service couldn't be reached, or turned it down as it was handed over, so it wasn't sent",
                  "The recipient's server returned it, such as for an address that doesn't exist",
                  "The recipient reported it as spam"
                ],
                "x-enum-labels": [
                  "Sending",
                  "Sent",
                  "Delayed",
                  "Delivered",
                  "Refused",
                  "Not sent",
                  "Bounced",
                  "Reported as spam"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "conversation[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A conversation's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_quote[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a customer quote"
              }
            },
            "description": "The messages of the conversations a quote came from or is discussed in",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "occurred_at",
                "-occurred_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-occurred_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MessageList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "inbound",
                "label": "Received"
              },
              {
                "value": "outbound",
                "label": "Sent"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "processing",
                "label": "Processing"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "ignored",
                "label": "Ignored"
              },
              {
                "value": "held",
                "label": "Held"
              }
            ]
          },
          {
            "key": "status_reason",
            "label": "Reason",
            "kind": "options",
            "options": [
              {
                "value": "by_hand",
                "label": "By hand"
              },
              {
                "value": "copy_of_earlier_message",
                "label": "A copy of an earlier email"
              },
              {
                "value": "footer_from_stranger",
                "label": "Quotes our email from outside its conversation"
              },
              {
                "value": "unmatched_reply",
                "label": "A reply to an email we can't find"
              },
              {
                "value": "suspected_malware",
                "label": "Suspected malware"
              },
              {
                "value": "failed_authentication",
                "label": "Failed its domain's authentication"
              },
              {
                "value": "suspected_spam",
                "label": "Suspected spam"
              },
              {
                "value": "unconfirmed_sender",
                "label": "Couldn't confirm its sender"
              },
              {
                "value": "blocked_sender",
                "label": "From a blocked sender"
              },
              {
                "value": "marked_spam",
                "label": "Marked as spam"
              },
              {
                "value": "forwarding_confirmation",
                "label": "Gmail forwarding confirmation"
              },
              {
                "value": "own_email",
                "label": "Our own email"
              },
              {
                "value": "automatic_reply",
                "label": "Automatic reply"
              },
              {
                "value": "bulk",
                "label": "Bulk mail"
              },
              {
                "value": "bounce",
                "label": "Bounce"
              },
              {
                "value": "over_model_limit",
                "label": "Over this month's model limit"
              }
            ]
          },
          {
            "key": "delivery_state",
            "label": "Delivery",
            "kind": "options",
            "options": [
              {
                "value": "sending",
                "label": "Sending"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "delayed",
                "label": "Delayed"
              },
              {
                "value": "delivered",
                "label": "Delivered"
              },
              {
                "value": "rejected",
                "label": "Refused"
              },
              {
                "value": "failed",
                "label": "Not sent"
              },
              {
                "value": "bounced",
                "label": "Bounced"
              },
              {
                "value": "complained",
                "label": "Reported as spam"
              }
            ]
          },
          {
            "key": "marketplace",
            "label": "Marketplace",
            "kind": "options",
            "references": [
              "marketplace"
            ]
          },
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          }
        ],
        "x-columns": [
          {
            "key": "subject",
            "label": "Subject",
            "field": "subject",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "from_address",
            "label": "From",
            "field": "from_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "channel",
            "label": "Channel",
            "field": "channel",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "email": "Email",
              "phone": "Phone",
              "chat": "Chat"
            }
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "processing": "Processing",
              "completed": "Completed",
              "failed": "Failed",
              "ignored": "Ignored",
              "held": "Held"
            }
          },
          {
            "key": "marketplace",
            "label": "Marketplace",
            "field": "marketplace.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "verdict",
            "label": "Reading",
            "field": "reading.verdict",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "rfq": "RFQ",
              "amendment": "Amendment",
              "separate_request": "Separate request",
              "repair_request": "Repair request",
              "negotiation": "Negotiation",
              "not_an_rfq": "Not an RFQ"
            }
          },
          {
            "key": "sender_check",
            "label": "Sender check",
            "field": "sender_check",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "verified": "Verified",
              "unverified": "Unverified",
              "failed": "Failed authentication"
            }
          },
          {
            "key": "to_addresses",
            "label": "To",
            "field": "to_addresses",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "delivery_state",
            "label": "Delivery",
            "field": "delivery.state",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "sending": "Sending",
              "sent": "Sent",
              "delayed": "Delayed",
              "delivered": "Delivered",
              "rejected": "Refused",
              "failed": "Not sent",
              "bounced": "Bounced",
              "complained": "Reported as spam"
            }
          },
          {
            "key": "occurred_at",
            "label": "Received",
            "field": "occurred_at",
            "sort": "occurred_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_message",
        "summary": "Create a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}": {
      "get": {
        "operationId": "get_message",
        "summary": "Retrieve a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/allow_sender": {
      "post": {
        "operationId": "allow_sender_message",
        "summary": "Allow the sender of a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageAllowSender"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "allow_sender",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/block_sender": {
      "post": {
        "operationId": "block_sender_message",
        "summary": "Block the sender of a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageBlockSender"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "block_sender",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{message_uuid}/content": {
      "get": {
        "operationId": "download_message",
        "summary": "Download a message's file",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "message_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/ignore": {
      "post": {
        "operationId": "ignore_message",
        "summary": "Ignore a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ignore",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/mark_as_spam": {
      "post": {
        "operationId": "mark_as_spam_message",
        "summary": "Mark a message as spam",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "mark_as_spam",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/move": {
      "post": {
        "operationId": "move_message",
        "summary": "Move a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "move",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{uuid}/reprocess": {
      "post": {
        "operationId": "reprocess_message",
        "summary": "Reprocess a message",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "rfq_reading_lines",
                  "unread_sheet_rows"
                ]
              }
            },
            "description": "Inline `rfq_reading_lines` or `unread_sheet_rows` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MessageField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MessageReprocess"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The message",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Message"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reprocess",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/messages/{message_uuid}/rfq_reading_lines": {
      "get": {
        "operationId": "list_rfq_reading_lines",
        "summary": "List RFQ reading lines",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "message_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "part_number",
                "-part_number",
                "quantity",
                "-quantity",
                "need_by",
                "-need_by",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RfqReadingLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RfqReadingLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "standard_code",
            "label": "Condition",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part number",
            "field": "part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "alternate_part_numbers",
            "label": "Alternates",
            "field": "alternate_part_numbers",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "conditions",
            "label": "Condition",
            "field": "conditions",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": "need_by",
            "kind": "date",
            "currency": null
          },
          {
            "key": "customer_comment",
            "label": "Customer notes",
            "field": "customer_comment",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "services",
            "label": "Services",
            "field": "services",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requested_types",
            "label": "Requested as",
            "field": "requested_types",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "repair": "Repair",
              "lease": "Lease"
            }
          },
          {
            "key": "tag_types",
            "label": "Tag types",
            "field": "tag_types",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/messages/{message_uuid}/rfq_reading_lines/{uuid}": {
      "get": {
        "operationId": "get_rfq_reading_line",
        "summary": "Retrieve an RFQ reading line",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "message_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RfqReadingLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The RFQ reading line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RfqReadingLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/messages/{message_uuid}/unread_sheet_rows": {
      "get": {
        "operationId": "list_unread_sheet_rows",
        "summary": "List unread sheet rows",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "message_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "result[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "left_out",
                  "reread",
                  "kept"
                ],
                "description": "`left_out`: No line was made from the row; `reread`: The model read the row again and made its lines; `kept`: The row was kept as a line, with the cell that couldn't be read in its customer notes",
                "x-enum-descriptions": [
                  "No line was made from the row",
                  "The model read the row again and made its lines",
                  "The row was kept as a line, with the cell that couldn't be read in its customer notes"
                ],
                "x-enum-labels": [
                  "No line made",
                  "Line made when the model read the row again",
                  "Kept as a line; the unreadable cell is in its customer notes"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "row",
                "-row",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UnreadSheetRowListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadSheetRowList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "result",
            "label": "Result",
            "kind": "options",
            "options": [
              {
                "value": "left_out",
                "label": "No line made"
              },
              {
                "value": "reread",
                "label": "Line made when the model read the row again"
              },
              {
                "value": "kept",
                "label": "Kept as a line; the unreadable cell is in its customer notes"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "sheet",
            "label": "Sheet",
            "field": "sheet",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "row",
            "label": "Row",
            "field": "row",
            "sort": "row",
            "kind": "number",
            "currency": null
          },
          {
            "key": "reasons",
            "label": "Problem",
            "field": "reasons",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "result",
            "label": "Result",
            "field": "left_out",
            "sort": null,
            "kind": "boolean",
            "currency": null
          }
        ]
      }
    },
    "/messages/{message_uuid}/unread_sheet_rows/{uuid}": {
      "get": {
        "operationId": "get_unread_sheet_row",
        "summary": "Retrieve an unread sheet row",
        "tags": [
          "messages"
        ],
        "parameters": [
          {
            "name": "message_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UnreadSheetRowField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The unread sheet row",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnreadSheetRow"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/migrations": {
      "get": {
        "operationId": "list_migrations",
        "summary": "List migrations",
        "tags": [
          "migrations"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "system_of_record_switched_at",
                "-system_of_record_switched_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MigrationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MigrationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/migrations/{uuid}": {
      "get": {
        "operationId": "get_migration",
        "summary": "Retrieve a migration",
        "tags": [
          "migrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The migration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Migration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/migrations/{migration_uuid}/comparisons/{family}": {
      "patch": {
        "operationId": "update_migration",
        "summary": "State a family's figures as the migrating system holds them",
        "description": "Keeps how many of the family's records the system holds and, where the family compares any, their totals, replacing the figures stated before. Reading the migration answers them beside what came over, and switching the system of record is refused while they differ, unless rows skipped with a reason account for it. Refused once switched",
        "tags": [
          "migrations"
        ],
        "parameters": [
          {
            "name": "migration_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "family",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The migration, with every family's comparison",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Migration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:migrate",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/migrations/{uuid}/switch_system_of_record": {
      "post": {
        "operationId": "switch_system_of_record_migration",
        "summary": "Make CorePilot the system of record in the migrating system's place",
        "description": "Lifts the holds on the records the migration's imports created, so they are CorePilot's to change, and refuses every later migrating import's apply outside a sandbox. A connected QuickBooks with no cut-over takes the business's day as its cut-over, so CorePilot posts from then on. Refused while an import of the migration is checking or applying, or has rows with a problem or that failed to apply, and once switched",
        "tags": [
          "migrations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The migration, with when CorePilot became the system of record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Migration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "switch_system_of_record",
        "x-risk": "destructive",
        "x-grant": "data:migrate",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/my_work/items": {
      "get": {
        "operationId": "list_my_work_items",
        "summary": "List my work items",
        "tags": [
          "my_work"
        ],
        "parameters": [
          {
            "name": "urgency[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue",
                  "today",
                  "week"
                ],
                "description": "`overdue`: Past the day it fell due; `today`: Falls due today, as an AOG order with no promise passed does; `week`: Waiting on you, with no day passed yet",
                "x-enum-descriptions": [
                  "Past the day it fell due",
                  "Falls due today, as an AOG order with no promise passed does",
                  "Waiting on you, with no day passed yet"
                ],
                "x-enum-labels": [
                  "Overdue",
                  "Today",
                  "This week"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "customer_quote",
                  "sales_order",
                  "repair_order",
                  "customer_exchange",
                  "customer_lease",
                  "release",
                  "rejection",
                  "work_order",
                  "purchase_order",
                  "vendor_rfq",
                  "vendor_exchange",
                  "voucher"
                ],
                "x-enum-labels": [
                  "Customer quote",
                  "Sales order",
                  "Repair order",
                  "Customer exchange",
                  "Customer lease",
                  "Release",
                  "Rejection",
                  "Work order",
                  "Purchase order",
                  "Vendor RFQ",
                  "Vendor exchange",
                  "Voucher"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_everyone",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "urgency",
                "-urgency",
                "due_on",
                "-due_on",
                "headline",
                "-headline"
              ],
              "default": "urgency"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `due_on`, then the record's uuid, ascending either way."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MyWorkItemListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MyWorkItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "urgency",
            "label": "Urgency",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              },
              {
                "value": "today",
                "label": "Today"
              },
              {
                "value": "week",
                "label": "This week"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "customer_quote",
                "label": "Customer quote"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "customer_exchange",
                "label": "Customer exchange"
              },
              {
                "value": "customer_lease",
                "label": "Customer lease"
              },
              {
                "value": "release",
                "label": "Release"
              },
              {
                "value": "rejection",
                "label": "Rejection"
              },
              {
                "value": "work_order",
                "label": "Work order"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "vendor_rfq",
                "label": "Vendor RFQ"
              },
              {
                "value": "vendor_exchange",
                "label": "Vendor exchange"
              },
              {
                "value": "voucher",
                "label": "Voucher"
              }
            ]
          },
          {
            "key": "include_everyone",
            "label": "Include everyone's work",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "urgency",
            "label": "Urgency",
            "field": "urgency",
            "sort": "urgency",
            "kind": "text",
            "currency": null,
            "labels": {
              "overdue": "Overdue",
              "today": "Today",
              "week": "This week"
            }
          },
          {
            "key": "subject",
            "label": "Record",
            "field": "subject",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "headline",
            "label": "Title",
            "field": "headline",
            "sort": "headline",
            "kind": "text",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "days_overdue",
            "label": "Overdue by",
            "field": "due_on",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "detail",
            "label": "Detail",
            "field": "detail",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tags",
            "label": "Reason",
            "field": "reasons",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "rfq_to_quote": "RFQ to quote",
              "customer_replied": "Customer replied",
              "expired": "Expired",
              "expires_today": "Expires today",
              "aog": "AOG",
              "critical": "Critical",
              "ready_to_release": "Ready to release",
              "at_vendor": "At vendor",
              "core_overdue": "Core overdue",
              "unit_overdue": "Unit overdue",
              "shipping": "Shipping",
              "unresolved": "Unresolved",
              "assigned": "Assigned",
              "task_assigned": "Task assigned",
              "check_due": "Check due",
              "past_promise": "Past promise",
              "vendor_late": "Vendor late",
              "awaiting_promise": "Awaiting promise",
              "to_send": "To send",
              "vendor_quoted": "Vendor quoted",
              "vendor_core_overdue": "Vendor core overdue",
              "unapproved": "Unapproved",
              "payment_overdue": "Payment overdue"
            }
          }
        ]
      }
    },
    "/notification_preferences": {
      "get": {
        "operationId": "get_notification_preferences",
        "summary": "Retrieve the notification preferences",
        "tags": [
          "notification_preferences"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationPreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The notification preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_notification_preferences",
        "summary": "Update the notification preferences",
        "tags": [
          "notification_preferences"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationPreferencesField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationPreferencesUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The notification preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationPreferences"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/notifications": {
      "get": {
        "operationId": "list_notifications",
        "summary": "List notifications",
        "tags": [
          "notifications"
        ],
        "parameters": [
          {
            "name": "unread",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only notifications not yet read"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, descending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "event"
                ]
              }
            },
            "description": "Inline `event` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/notifications/read": {
      "post": {
        "operationId": "read_notifications",
        "summary": "Read all notifications",
        "tags": [
          "notifications"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "Every notification as it now stands, a page at a time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotificationList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "read",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "too_many_requests"
        ]
      }
    },
    "/notifications/{uuid}": {
      "get": {
        "operationId": "get_notification",
        "summary": "Retrieve a notification",
        "tags": [
          "notifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "event"
                ]
              }
            },
            "description": "Inline `event` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The notification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Notification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/notifications/{uuid}/read": {
      "post": {
        "operationId": "read_notification",
        "summary": "Read a notification",
        "tags": [
          "notifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "event"
                ]
              }
            },
            "description": "Inline `event` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/NotificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The notification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Notification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "read",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/oauth_authorizations": {
      "get": {
        "operationId": "list_oauth_authorizations",
        "summary": "List OAuth authorizations",
        "tags": [
          "oauth_authorizations"
        ],
        "parameters": [
          {
            "name": "membership[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a membership"
              }
            },
            "description": "The apps acting as these seats",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "live",
                  "revoked"
                ],
                "description": "`live`: Acts as its member until someone disconnects it; `revoked`: Refused since someone disconnected it",
                "x-enum-descriptions": [
                  "Acts as its member until someone disconnects it",
                  "Refused since someone disconnected it"
                ],
                "x-enum-labels": [
                  "Connected",
                  "Disconnected"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "app",
                "-app",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OauthAuthorizationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OauthAuthorizationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "live",
                "label": "Connected"
              },
              {
                "value": "revoked",
                "label": "Disconnected"
              }
            ]
          },
          {
            "key": "membership",
            "label": "Acting as",
            "kind": "options",
            "references": [
              "membership"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "app",
            "label": "App",
            "field": "application",
            "sort": "app",
            "kind": "text",
            "currency": null
          },
          {
            "key": "acting_as",
            "label": "Acting as",
            "field": "membership.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "may",
            "label": "May",
            "field": "scopes",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "read": "Read",
              "write": "Write",
              "admin": "Admin",
              "sales:write": "Sales:write",
              "sales:manage": "Sales:manage",
              "purchasing:write": "Purchasing:write",
              "purchasing:manage": "Purchasing:manage",
              "repairs:write": "Repairs:write",
              "repairs:manage": "Repairs:manage",
              "operations:write": "Operations:write",
              "operations:manage": "Operations:manage",
              "inventory:write": "Inventory:write",
              "inventory:manage": "Inventory:manage",
              "accounting:write": "Accounting:write",
              "accounting:manage": "Accounting:manage",
              "catalog:write": "Catalog:write",
              "catalog:manage": "Catalog:manage",
              "settings:write": "Settings:write",
              "settings:manage": "Settings:manage",
              "sales:release_hold": "Sales:release hold",
              "inventory:adjust": "Inventory:adjust",
              "repairs:labor": "Repairs:labor",
              "catalog:approve": "Catalog:approve",
              "accounting:approve": "Accounting:approve",
              "accounting:void": "Accounting:void",
              "data:import": "Data:import",
              "data:migrate": "Data:migrate",
              "settings:requirements": "Settings:requirements",
              "settings:checklists": "Settings:checklists",
              "settings:views": "Settings:views",
              "settings:everyones_views": "Settings:everyones views",
              "settings:everyones_dashboards": "Settings:everyones dashboards"
            }
          },
          {
            "key": "through",
            "label": "Through",
            "field": "resource",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "live": "Connected",
              "revoked": "Disconnected"
            }
          },
          {
            "key": "since",
            "label": "Since",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_used",
            "label": "Last used",
            "field": "last_used_at",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/oauth_authorizations/{uuid}/revoke": {
      "post": {
        "operationId": "revoke_oauth_authorization",
        "summary": "Revoke an OAuth authorization",
        "tags": [
          "oauth_authorizations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OauthAuthorizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The OAuth authorization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OauthAuthorization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revoke",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/onboarding": {
      "get": {
        "operationId": "get_onboarding",
        "summary": "Retrieve the onboarding",
        "tags": [
          "onboarding"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Onboarding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/onboarding/dismiss": {
      "post": {
        "operationId": "dismiss_onboarding",
        "summary": "Dismiss the onboarding",
        "tags": [
          "onboarding"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Onboarding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "dismiss",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/onboarding/undismiss": {
      "post": {
        "operationId": "undismiss_onboarding",
        "summary": "Undismiss the onboarding",
        "tags": [
          "onboarding"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Onboarding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "undismiss",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/onboarding_steps": {
      "get": {
        "operationId": "list_onboarding_steps",
        "summary": "List onboarding steps",
        "tags": [
          "onboarding_steps"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingStepListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStepList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/onboarding_steps/{key}": {
      "get": {
        "operationId": "get_onboarding_step",
        "summary": "Retrieve an onboarding step",
        "tags": [
          "onboarding_steps"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingStepField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStep"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/onboarding_steps/{key}/confirm": {
      "post": {
        "operationId": "confirm_onboarding_step",
        "summary": "Confirm an onboarding step",
        "tags": [
          "onboarding_steps"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingStepField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStep"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "confirm",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/onboarding_steps/{key}/reopen": {
      "post": {
        "operationId": "reopen_onboarding_step",
        "summary": "Reopen an onboarding step",
        "tags": [
          "onboarding_steps"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingStepField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStep"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reopen",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/onboarding_steps/{key}/skip": {
      "post": {
        "operationId": "skip_onboarding_step",
        "summary": "Skip an onboarding step",
        "tags": [
          "onboarding_steps"
        ],
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The row's `key`, as the list names it"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OnboardingStepField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The onboarding step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnboardingStep"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "skip",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/organizations": {
      "get": {
        "operationId": "list_organizations",
        "summary": "List organizations",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrganizationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/organizations/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_organization_by_external_key",
        "summary": "Retrieve an organization by its external key",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The organization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{uuid}": {
      "get": {
        "operationId": "get_organization",
        "summary": "Retrieve an organization",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The organization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_organization",
        "summary": "Update an organization",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The organization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{organization_uuid}/autoquote_sends": {
      "get": {
        "operationId": "list_autoquote_sends",
        "summary": "List autoquote sends",
        "description": "The attempts that sent one of an organization's quotes by themselves, latest first, each counting toward the daily send limit on the business day it sent; one whose email then failed says so in `send_outcome`",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AutoquoteAttemptListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutoquoteAttemptList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{organization_uuid}/external_keys": {
      "get": {
        "operationId": "list_organization_external_keys",
        "summary": "List an organization's external keys",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{organization_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_organization_external_key",
        "summary": "Retrieve an organization by its external key",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_organization_external_key",
        "summary": "Link an organization's external key",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_organization_external_key",
        "summary": "Unlink an organization's external key",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{organization_uuid}/logo": {
      "get": {
        "operationId": "download_organization_logo",
        "summary": "Download an organization's logo",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{uuid}/remove_logo": {
      "post": {
        "operationId": "remove_logo_organization",
        "summary": "Remove the logo from an organization",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The organization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "remove_logo",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/organizations/{uuid}/upload_logo": {
      "post": {
        "operationId": "upload_logo_organization",
        "summary": "Upload a logo to an organization",
        "tags": [
          "organizations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/OrganizationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationUploadLogo"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationUploadLogoMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The organization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "upload_logo",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/part_classifications": {
      "get": {
        "operationId": "list_part_classifications",
        "summary": "List part classifications",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassificationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_part_classification",
        "summary": "Create a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartClassificationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The part classification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/part_classifications/{uuid}": {
      "get": {
        "operationId": "get_part_classification",
        "summary": "Retrieve a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The part classification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_part_classification",
        "summary": "Update a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartClassificationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The part classification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_part_classification",
        "summary": "Delete a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/part_classifications/{uuid}/activate": {
      "post": {
        "operationId": "activate_part_classification",
        "summary": "Activate a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The part classification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/part_classifications/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_part_classification",
        "summary": "Deactivate a part classification",
        "tags": [
          "part_classifications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartClassificationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The part classification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartClassification"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts": {
      "get": {
        "operationId": "list_parts",
        "summary": "List parts",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manufacturer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A manufacturer's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "classification[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part classification's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "applicability[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An applicability's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "publication[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A publication's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tool",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only parts marked as tools"
          },
          {
            "name": "hot",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only parts marked hot"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "part_number",
                "-part_number",
                "description",
                "-description",
                "nsn",
                "-nsn",
                "updated_at",
                "-updated_at",
                "relevance"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `relevance` needs `q`; it ranks what `q` finds, the part numbered exactly `q` first, then the numbers holding it, then the descriptions naming it, on one page of at most 20 with no next cursor, equal ranks by uuid. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "manufacturer",
            "label": "Manufacturer",
            "kind": "options",
            "references": [
              "manufacturer"
            ],
            "searchable": true
          },
          {
            "key": "classification",
            "label": "Classification",
            "kind": "options",
            "references": [
              "part_classification"
            ]
          },
          {
            "key": "applicability",
            "label": "Applicability",
            "kind": "options",
            "references": [
              "applicability"
            ]
          },
          {
            "key": "tool",
            "label": "Tool",
            "kind": "toggle"
          },
          {
            "key": "hot",
            "label": "Hot",
            "kind": "toggle"
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "keywords",
            "label": "Keywords",
            "field": "keywords",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "ata_chapter",
            "label": "ATA",
            "field": "ata_chapter",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "nsn",
            "label": "NSN",
            "field": "nsn",
            "sort": "nsn",
            "kind": "text",
            "currency": null
          },
          {
            "key": "shelf_life_months",
            "label": "Shelf life",
            "field": "shelf_life_months",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "eccn",
            "label": "ECCN",
            "field": "eccn",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "hts_code",
            "label": "HTS code",
            "field": "hts_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "country_of_origin",
            "label": "Country",
            "field": "country_of_origin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "un_number",
            "label": "UN number",
            "field": "un_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "hazmat_shipping_name",
            "label": "Hazmat shipping name",
            "field": "hazmat_shipping_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "hazmat_class",
            "label": "Hazmat class",
            "field": "hazmat_class",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "usml_category",
            "label": "USML category",
            "field": "usml_category",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "weight",
            "label": "Weight",
            "field": "weight",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "length",
            "label": "Length",
            "field": "length",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "width",
            "label": "Width",
            "field": "width",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "height",
            "label": "Height",
            "field": "height",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lead_time_days",
            "label": "Lead time",
            "field": "lead_time_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "serialized",
            "label": "Serialized",
            "field": "serialized",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "life_limited",
            "label": "Life limited",
            "field": "life_limited",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "hazmat",
            "label": "Hazmat",
            "field": "hazmat",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "pma",
            "label": "PMA",
            "field": "pma",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "inspection_required",
            "label": "Inspection required",
            "field": "inspection_required",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "inspection_instructions",
            "label": "Inspection instructions",
            "field": "inspection_instructions",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "export_controlled",
            "label": "Export controlled",
            "field": "export_controlled",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "hot",
            "label": "Hot",
            "field": "hot",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tool",
            "label": "Tool",
            "field": "tool",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "calibration_required",
            "label": "Calibration required",
            "field": "calibration_required",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "calibration_interval_months",
            "label": "Calibration interval",
            "field": "calibration_interval_months",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "manufacturer",
            "label": "Manufacturer",
            "field": "manufacturer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_category_label",
            "label": "Tax category",
            "field": "tax_category.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "revenue_ledger_account_label",
            "label": "Revenue account",
            "field": "revenue_ledger_account.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quickbooks",
            "label": "QuickBooks",
            "field": "quickbooks_assignment",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "preferred_vendor",
            "label": "Preferred vendor",
            "field": "preferred_vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "applicability",
            "label": "Applicability",
            "field": "applicabilities.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "hidden_marketplaces",
            "label": "Hidden from marketplaces",
            "field": "hidden_marketplaces.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requirements",
            "label": "Requirements",
            "field": "requirements.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "measurement_unit",
            "label": "UOM",
            "field": "measurement_unit.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "classification",
            "label": "Classification",
            "field": "classification.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity_on_hand",
            "label": "On hand",
            "field": "quantity_on_hand",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_part",
        "summary": "Create a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_lines",
                  "external_keys",
                  "publications",
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `inventory_lines`, `external_keys`, `publications`, `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_part_by_external_key",
        "summary": "Retrieve a part by its external key",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_lines",
                  "external_keys",
                  "publications",
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `inventory_lines`, `external_keys`, `publications`, `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "put": {
        "operationId": "upsert_part_by_external_key",
        "summary": "Create or update a part by its external key",
        "description": "Updates the part the key names, as `PATCH` would: absent fields are untouched, and the required ones are required only to create. When no part holds the key, creates one from the body and links the key to it (its `origin` is `created`). Upserts of one key run one at a time, so two at once never make two records",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_lines",
                  "external_keys",
                  "publications",
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `inventory_lines`, `external_keys`, `publications`, `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The part the key named, updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/{uuid}": {
      "get": {
        "operationId": "get_part",
        "summary": "Retrieve a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_lines",
                  "external_keys",
                  "publications",
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `inventory_lines`, `external_keys`, `publications`, `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_part",
        "summary": "Update a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory_lines",
                  "external_keys",
                  "publications",
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `inventory_lines`, `external_keys`, `publications`, `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PartUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_part",
        "summary": "Delete a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/{uuid}/activate": {
      "post": {
        "operationId": "activate_part",
        "summary": "Activate a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_part",
        "summary": "Deactivate a part",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "quantity_by_condition",
                  "manufacturer",
                  "classification",
                  "measurement_unit",
                  "weight_unit",
                  "dimension_unit",
                  "preferred_vendor",
                  "tax_category",
                  "revenue_ledger_account",
                  "applicabilities",
                  "hidden_marketplaces",
                  "requirements"
                ]
              }
            },
            "description": "Inline `quantity_by_condition`, `manufacturer`, `classification`, `measurement_unit`, `weight_unit`, `dimension_unit`, `preferred_vendor`, `tax_category`, `revenue_ledger_account`, `applicabilities`, `hidden_marketplaces`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Part"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/{part_uuid}/external_keys": {
      "get": {
        "operationId": "list_part_external_keys",
        "summary": "List a part's external keys",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/parts/{part_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_part_external_key",
        "summary": "Retrieve a part by its external key",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_part_external_key",
        "summary": "Link a part's external key",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_part_external_key",
        "summary": "Unlink a part's external key",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/parts/{part_uuid}/repair_services": {
      "get": {
        "operationId": "list_part_repair_services",
        "summary": "List part repair services",
        "description": "The repair services a part can be sent out for, each listed until it is retired",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "service",
                "-service",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "service"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartRepairServiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartRepairServiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": "service",
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_order_templates",
            "label": "Templates",
            "field": "work_order_templates.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/parts/{part_uuid}/vendor_inventory_lines": {
      "get": {
        "operationId": "list_part_vendor_inventory_lines",
        "summary": "List vendor inventory lines",
        "description": "The vendor inventory listing a part today, the asked condition first, then the cheapest at today's rate, unpriced or unrated last",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "asked_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a condition"
              }
            },
            "description": "The condition being quoted, one at a time, whose rows come first; another's still shows",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/parts/{part_uuid}/vendor_part_prices": {
      "get": {
        "operationId": "list_part_vendor_part_prices",
        "summary": "List vendor part prices",
        "description": "The vendor part prices in force for a part today, the asked condition's and any condition's first, then the cheapest at today's rate",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "asked_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a condition"
              }
            },
            "description": "The condition being quoted, one at a time, whose prices and those for any condition come first; another's still shows",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/parts/{part_uuid}/vendor_quotes": {
      "get": {
        "operationId": "list_part_vendor_quotes",
        "summary": "List vendor quote lines",
        "description": "The vendor quote lines a part was answered with in the last year, the asked condition first, newest answered first",
        "tags": [
          "parts"
        ],
        "parameters": [
          {
            "name": "part_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "asked_condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a condition"
              }
            },
            "description": "The condition being quoted, one at a time, whose answers come first; another's still shows",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/password_confirmations": {
      "post": {
        "operationId": "create_password_confirmation",
        "summary": "Create a password confirmation",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "password_confirmations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PasswordConfirmationField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordConfirmationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The password confirmation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordConfirmation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/payment_terms": {
      "get": {
        "operationId": "list_payment_terms",
        "summary": "List payment terms",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "net_days",
                "-net_days",
                "code",
                "-code",
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "net_days"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTermList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "net_days",
            "label": "Net days",
            "field": "net_days",
            "sort": "net_days",
            "kind": "number",
            "currency": null
          },
          {
            "key": "prepayment_required",
            "label": "Prepayment required",
            "field": "prepayment_required",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_payment_term",
        "summary": "Create a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentTermCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The payment term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/payment_terms/{uuid}": {
      "get": {
        "operationId": "get_payment_term",
        "summary": "Retrieve a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The payment term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_payment_term",
        "summary": "Update a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentTermUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The payment term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_payment_term",
        "summary": "Delete a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/payment_terms/{uuid}/activate": {
      "post": {
        "operationId": "activate_payment_term",
        "summary": "Activate a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The payment term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/payment_terms/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_payment_term",
        "summary": "Deactivate a payment term",
        "tags": [
          "payment_terms"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PaymentTermField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The payment term",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentTerm"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/print_node_integration": {
      "get": {
        "operationId": "get_print_node_integration",
        "summary": "Retrieve the PrintNode integration",
        "tags": [
          "print_node_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sign_in"
                ]
              }
            },
            "description": "Inline `sign_in` on the record; `sign_in` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintNodeIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The PrintNode integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintNodeIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/print_node_integration/connect": {
      "post": {
        "operationId": "connect_print_node_integration",
        "summary": "Connect the PrintNode integration",
        "tags": [
          "print_node_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "sign_in"
                ]
              }
            },
            "description": "Inline `sign_in` on the record; `sign_in` needs the `settings:manage` grant, and is refused 403 without it",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintNodeIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The PrintNode integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintNodeIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "connect",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests",
          "print_node_unavailable"
        ]
      }
    },
    "/print_node_integration/printers": {
      "get": {
        "operationId": "list_print_node_printers",
        "summary": "List PrintNode printers",
        "description": "The printers PrintNode reports on the computers signed in to the tenant's account, each one a printer can be added from",
        "tags": [
          "print_node_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintNodePrinterListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintNodePrinterList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests",
          "print_node_unavailable"
        ]
      }
    },
    "/print_requests": {
      "get": {
        "operationId": "list_print_requests",
        "summary": "List print requests",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "queued",
                  "sent",
                  "printed",
                  "failed",
                  "expired"
                ],
                "description": "`queued`: Waiting for its documents to be generated, or to be sent to PrintNode; `sent`: Handed to PrintNode, which hasn't yet said it reached the printer's computer; `printed`: Reached the print queue of the printer's computer; `failed`: Not printed; `error` says why; `expired`: Not printed within an hour of being asked for, so dropped",
                "x-enum-descriptions": [
                  "Waiting for its documents to be generated, or to be sent to PrintNode",
                  "Handed to PrintNode, which hasn't yet said it reached the printer's computer",
                  "Reached the print queue of the printer's computer",
                  "Not printed; `error` says why",
                  "Not printed within an hour of being asked for, so dropped"
                ],
                "x-enum-labels": [
                  "Queued",
                  "Sent",
                  "Printed",
                  "Failed",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "test_page"
                ],
                "description": "`manual`: Someone printed documents; `test_page`: A printer's test page",
                "x-enum-descriptions": [
                  "Someone printed documents",
                  "A printer's test page"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Test page"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "printer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A printer's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "document[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A document's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "creator[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A membership's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A record it printed, by what finds that record in search: its number, its name, words of its title"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequestList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "queued",
                "label": "Queued"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "printed",
                "label": "Printed"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "expired",
                "label": "Expired"
              }
            ]
          },
          {
            "key": "reason",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "test_page",
                "label": "Test page"
              }
            ]
          },
          {
            "key": "printer",
            "label": "Printer",
            "kind": "options",
            "references": [
              "printer"
            ],
            "fenced": true,
            "searchable": true
          },
          {
            "key": "creator",
            "label": "Printed by",
            "kind": "options",
            "references": [
              "membership"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "title",
            "label": "Print request",
            "field": "title",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "printer",
            "label": "Printer",
            "field": "printer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "forms",
            "label": "Forms",
            "field": "forms",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "document_count",
            "label": "Documents",
            "field": "document_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Printed by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "queued": "Queued",
              "sent": "Sent",
              "printed": "Printed",
              "failed": "Failed",
              "expired": "Expired"
            }
          },
          {
            "key": "created_at",
            "label": "Requested",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Type",
            "field": "reason",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "manual": "Manual",
              "test_page": "Test page"
            }
          },
          {
            "key": "error",
            "label": "Error",
            "field": "error",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "printed_at",
            "label": "Printed",
            "field": "printed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "failed_at",
            "label": "Failed",
            "field": "failed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "expired_at",
            "label": "Expired",
            "field": "expired_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "organization",
            "label": "Organization",
            "field": "organization.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "resumes",
            "label": "Prints the rest of",
            "field": "resumes.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_print_request",
        "summary": "Create a print request",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "documents"
                ]
              }
            },
            "description": "Inline `documents` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintRequestCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The print request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/print_requests/{uuid}": {
      "get": {
        "operationId": "get_print_request",
        "summary": "Retrieve a print request",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "documents"
                ]
              }
            },
            "description": "Inline `documents` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The print request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/print_requests/{print_request_uuid}/documents": {
      "get": {
        "operationId": "list_print_request_documents",
        "summary": "List print request documents",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "print_request_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestDocumentListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequestDocumentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [],
        "x-columns": [
          {
            "key": "position",
            "label": "#",
            "field": "position",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "title",
            "label": "Document",
            "field": "title",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "copies",
            "label": "Copies",
            "field": "copies",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "reprint",
            "label": "Reprint",
            "field": "reprint",
            "sort": null,
            "kind": "boolean",
            "currency": null
          }
        ]
      }
    },
    "/print_requests/{print_request_uuid}/documents/{uuid}": {
      "get": {
        "operationId": "get_print_request_document",
        "summary": "Retrieve a print request document",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "print_request_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestDocumentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The print request document",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequestDocument"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/print_requests/{uuid}/resume": {
      "post": {
        "operationId": "resume_print_request",
        "summary": "Resume a print",
        "description": "Places a new print of every document after the last one that came out of the printer, in the same order, each with the copies and prints it was placed with: PrintNode reports only on the whole job, so whoever is at the printer says where it stopped. A document printed after that one is no reprint, and a signed certificate's Original that never came out is sent. Refused while the print, or a rest of it already placed, is still printing, while it is finding its list's matches, and for one that expired, having printed nothing",
        "tags": [
          "print_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "documents"
                ]
              }
            },
            "description": "Inline `documents` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrintRequestResume"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The print request placed, naming the one it resumes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resume",
        "x-risk": "destructive",
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/printers": {
      "get": {
        "operationId": "list_printers",
        "summary": "List printers",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "facility[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A facility's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "document",
                  "label"
                ],
                "description": "`document`: Prints documents, such as quotes and packing lists; `label`: Prints labels",
                "x-enum-descriptions": [
                  "Prints documents, such as quotes and packing lists",
                  "Prints labels"
                ],
                "x-enum-labels": [
                  "Document",
                  "Label"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrinterList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "facility",
            "label": "Facility",
            "kind": "options",
            "references": [
              "facility"
            ],
            "fenced": true
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "document",
                "label": "Document"
              },
              {
                "value": "label",
                "label": "Label"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "document": "Document",
              "label": "Label"
            }
          },
          {
            "key": "dpi",
            "label": "Resolution (dpi)",
            "field": "dpi",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "label_size",
            "label": "Label size",
            "field": "label_size",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "4x6": "4 × 6 in",
              "4x3": "4 × 3 in"
            }
          },
          {
            "key": "computer_name",
            "label": "Computer",
            "field": "computer_name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "facility_label",
            "label": "Facility",
            "field": "facility.label",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_printer",
        "summary": "Create a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrinterCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The printer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Printer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests",
          "print_node_unavailable"
        ]
      }
    },
    "/printers/{uuid}": {
      "get": {
        "operationId": "get_printer",
        "summary": "Retrieve a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The printer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Printer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_printer",
        "summary": "Update a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrinterUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The printer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Printer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_printer",
        "summary": "Delete a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/printers/{uuid}/activate": {
      "post": {
        "operationId": "activate_printer",
        "summary": "Activate a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The printer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Printer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/printers/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_printer",
        "summary": "Deactivate a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrinterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The printer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Printer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/printers/{uuid}/test": {
      "post": {
        "operationId": "test_printer",
        "summary": "Test a printer",
        "tags": [
          "printers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "documents"
                ]
              }
            },
            "description": "Inline `documents` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PrintRequestField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The print request it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrintRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "test",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "printing",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile": {
      "get": {
        "operationId": "get_profile",
        "summary": "Retrieve the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_profile",
        "summary": "Update the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile/avatar": {
      "get": {
        "operationId": "download_profile_avatar",
        "summary": "Download a profile's avatar",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/profile/issue_calendar_feed": {
      "post": {
        "operationId": "issue_calendar_feed_profile",
        "summary": "Issue a calendar feed for the profile",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "issue_calendar_feed",
        "x-risk": "destructive",
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile/remove_avatar": {
      "post": {
        "operationId": "remove_avatar_profile",
        "summary": "Remove the avatar from the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "remove_avatar",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile/remove_signature": {
      "post": {
        "operationId": "remove_signature_profile",
        "summary": "Remove the signature from the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "remove_signature",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile/signature": {
      "get": {
        "operationId": "download_profile_signature",
        "summary": "Download a profile's signature",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/profile/upload_avatar": {
      "post": {
        "operationId": "upload_avatar_profile",
        "summary": "Upload an avatar to the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUploadAvatar"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUploadAvatarMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "upload_avatar",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/profile/upload_signature": {
      "post": {
        "operationId": "upload_signature_profile",
        "summary": "Upload a signature to the profile",
        "tags": [
          "profile"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProfileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUploadSignature"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ProfileUploadSignatureMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "upload_signature",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/protection_reasons": {
      "get": {
        "operationId": "list_protection_reasons",
        "summary": "List protection reasons",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_protection_reason",
        "summary": "Create a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProtectionReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The protection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/protection_reasons/{uuid}": {
      "get": {
        "operationId": "get_protection_reason",
        "summary": "Retrieve a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The protection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_protection_reason",
        "summary": "Update a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProtectionReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The protection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_protection_reason",
        "summary": "Delete a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/protection_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_protection_reason",
        "summary": "Activate a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The protection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/protection_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_protection_reason",
        "summary": "Deactivate a protection reason",
        "tags": [
          "protection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ProtectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The protection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_categories": {
      "get": {
        "operationId": "list_publication_categories",
        "summary": "List publication categories",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategoryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_publication_category",
        "summary": "Create a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationCategoryCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The publication category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_categories/{uuid}": {
      "get": {
        "operationId": "get_publication_category",
        "summary": "Retrieve a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_publication_category",
        "summary": "Update a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationCategoryUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The publication category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_publication_category",
        "summary": "Delete a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_categories/{uuid}/activate": {
      "post": {
        "operationId": "activate_publication_category",
        "summary": "Activate a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_categories/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_publication_category",
        "summary": "Deactivate a publication category",
        "tags": [
          "publication_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_revisions": {
      "get": {
        "operationId": "list_publication_revisions",
        "summary": "List publication revisions",
        "tags": [
          "publication_revisions"
        ],
        "parameters": [
          {
            "name": "publication[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A publication's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "temporary[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "true",
                  "false"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "revision",
                "-revision",
                "published_on",
                "-published_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, descending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationRevisionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRevisionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "temporary",
            "label": "Temporary",
            "kind": "options",
            "options": [
              {
                "value": "true",
                "label": "Temporary"
              },
              {
                "value": "false",
                "label": "Permanent"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "revision",
            "label": "Revision",
            "field": "revision",
            "sort": "revision",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Title",
            "field": "name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "url",
            "label": "Link",
            "field": "url",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "published_on",
            "label": "Published",
            "field": "published_on",
            "sort": "published_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "effective_on",
            "label": "Effective",
            "field": "effective_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "expires_on",
            "label": "Expires",
            "field": "expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "received_on",
            "label": "Received",
            "field": "received_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "publication",
            "label": "Publication",
            "field": "publication.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "effective",
            "label": "Status",
            "field": "effective",
            "sort": null,
            "kind": "boolean",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_publication_revision",
        "summary": "Create a publication revision",
        "tags": [
          "publication_revisions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationRevisionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationRevisionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The publication revision",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRevision"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_revisions/{uuid}": {
      "get": {
        "operationId": "get_publication_revision",
        "summary": "Retrieve a publication revision",
        "tags": [
          "publication_revisions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationRevisionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication revision",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRevision"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_publication_revision",
        "summary": "Update a publication revision",
        "tags": [
          "publication_revisions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationRevisionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationRevisionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The publication revision",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRevision"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/publication_revisions/{uuid}/adopt": {
      "post": {
        "operationId": "adopt_publication_revision",
        "summary": "Adopt a publication revision",
        "tags": [
          "publication_revisions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationRevisionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication revision",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationRevision"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "adopt",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications": {
      "get": {
        "operationId": "list_publications",
        "summary": "List publications",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "category[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A publication category's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manufacturer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A manufacturer's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "reference",
                "-reference",
                "expires_on",
                "-expires_on",
                "created_at",
                "-created_at",
                "category",
                "-category",
                "manufacturer",
                "-manufacturer",
                "superseded_by",
                "-superseded_by",
                "verifier_skill",
                "-verifier_skill",
                "bin",
                "-bin",
                "facility",
                "-facility",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "category",
            "label": "Category",
            "kind": "options",
            "references": [
              "publication_category"
            ]
          },
          {
            "key": "manufacturer",
            "label": "Manufacturer",
            "kind": "options",
            "references": [
              "manufacturer"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Publication",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Notes",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ata_zone",
            "label": "Zone",
            "field": "ata_zone",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "url",
            "label": "Link",
            "field": "url",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "published_on",
            "label": "Published",
            "field": "published_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "expires_on",
            "label": "Expires",
            "field": "expires_on",
            "sort": "expires_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "ata_zone_label",
            "label": "Zone name",
            "field": "ata_zone_label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "category",
            "label": "Category",
            "field": "category.name",
            "sort": "category",
            "kind": "text",
            "currency": null
          },
          {
            "key": "manufacturer",
            "label": "Publisher",
            "field": "manufacturer.name",
            "sort": "manufacturer",
            "kind": "text",
            "currency": null
          },
          {
            "key": "superseded_by",
            "label": "Superseded by",
            "field": "superseded_by.name",
            "sort": "superseded_by",
            "kind": "text",
            "currency": null
          },
          {
            "key": "verifier_skill",
            "label": "Verifier skill",
            "field": "verifier_skill.name",
            "sort": "verifier_skill",
            "kind": "text",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin",
            "sort": "bin",
            "kind": "text",
            "currency": null
          },
          {
            "key": "current_revision_revision",
            "label": "Revision",
            "field": "current_revision",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "facility",
            "label": "Facility",
            "field": "facility.label",
            "sort": "facility",
            "kind": "text",
            "currency": null
          },
          {
            "key": "verification",
            "label": "Verified",
            "field": "verification_verified_on",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "verification_due_on",
            "label": "Verification due",
            "field": "verification_due_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "verification_employee_name",
            "label": "Verified by",
            "field": "verification_employee.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_publication",
        "summary": "Create a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "verifications",
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `verifications`, `overview_counts`, or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications/{uuid}": {
      "get": {
        "operationId": "get_publication",
        "summary": "Retrieve a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "verifications",
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `verifications`, `overview_counts`, or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_publication",
        "summary": "Update a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "verifications",
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `verifications`, `overview_counts`, or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_publication",
        "summary": "Delete a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "catalog:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications/{uuid}/activate": {
      "post": {
        "operationId": "activate_publication",
        "summary": "Activate a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `overview_counts` or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_publication",
        "summary": "Deactivate a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `overview_counts` or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications/{uuid}/supersede": {
      "post": {
        "operationId": "supersede_publication",
        "summary": "Supersede a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `overview_counts` or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationSupersede"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "supersede",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/publications/{publication_uuid}/verifications": {
      "get": {
        "operationId": "list_publication_verifications",
        "summary": "List publication verifications",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "publication_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "employee[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "verified_on",
                "-verified_on",
                "due_on",
                "-due_on",
                "employee",
                "-employee",
                "updated_at",
                "-updated_at"
              ],
              "default": "-verified_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, descending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationVerificationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicationVerificationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "employee",
            "label": "Verified by",
            "kind": "options",
            "references": [
              "employee"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "verified_on",
            "label": "Verified",
            "field": "verified_on",
            "sort": "verified_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Next check due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "employee",
            "label": "Verified by",
            "field": "employee.name",
            "sort": "employee",
            "kind": "text",
            "currency": null
          },
          {
            "key": "publication",
            "label": "Publication",
            "field": "publication.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/publications/{uuid}/verify": {
      "post": {
        "operationId": "verify_publication",
        "summary": "Verify a publication",
        "tags": [
          "publications"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts",
                  "supersedes"
                ]
              }
            },
            "description": "Inline `overview_counts` or `supersedes` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PublicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicationVerify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The publication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Publication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "verify",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_order_lines": {
      "get": {
        "operationId": "list_purchase_order_lines_across_documents",
        "summary": "List purchase order lines across every document",
        "tags": [
          "purchase_order_lines"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge",
                  "package"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sourcing request"
              }
            },
            "description": "Leaves out the lines `sourcing_request[]` would list: a part's purchase history beside a request, without the request's own",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "received"
                ],
                "description": "`outstanding`: Some of the line's quantity has yet to arrive; `received`: The line's whole quantity has arrived",
                "x-enum-descriptions": [
                  "Some of the line's quantity has yet to arrive",
                  "The line's whole quantity has arrived"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "closed",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
                "x-enum-descriptions": [
                  "Being written; not yet sent to the vendor",
                  "Sent to the vendor; what it orders is due in",
                  "Finished; nothing more is expected on it",
                  "Called off; nothing will arrive on it"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "unit_cost_cents",
                "-unit_cost_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "vendor",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "dated",
            "label": "Dated",
            "kind": "range"
          },
          {
            "key": "priced",
            "label": "Priced only",
            "kind": "toggle"
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          },
          {
            "key": "receipt_state",
            "label": "Receipt state",
            "kind": "options",
            "options": [
              {
                "value": "outstanding",
                "label": "Outstanding"
              },
              {
                "value": "received",
                "label": "Received"
              }
            ]
          },
          {
            "key": "received",
            "label": "Received on",
            "kind": "range"
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "Record",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "lease": "Lease"
            }
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": "unit_cost_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "quantity_received",
            "label": "Received",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_outstanding",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_reserved",
            "label": "Reserved",
            "field": "quantity_reserved",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_available",
            "label": "Available",
            "field": "quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "line_total",
            "label": "Line total",
            "field": "line_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "exchange.core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_due_days",
            "label": "Core due days",
            "field": "exchange.core_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "expected_core_part_number",
            "label": "Expected core part number",
            "field": "exchange.expected_core_part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_core_condition",
            "label": "Expected core condition",
            "field": "exchange.expected_core_condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "charge_code",
            "label": "Charge code",
            "field": "charge.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_rfq",
            "label": "Quoted on",
            "field": "vendor_rfq.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_exchange",
            "label": "Vendor exchange",
            "field": "exchange.vendor_exchange.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "field": "warehouse.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "initial_promise_on",
            "label": "Initial promise",
            "field": "initial_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_promise_on",
            "label": "Updated promise",
            "field": "updated_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "promised_on",
            "label": "Promised",
            "field": "promised_on",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/purchase_order_lines/summary": {
      "get": {
        "operationId": "get_purchase_order_line_summary",
        "summary": "Retrieve the purchase order line summary",
        "description": "Vendor on-time delivery: purchase order lines across every order totaled by named measures, grouped by vendor or when the line's last unit arrived, over a period of the days lines were received. Only lines received in full by default (`receipt_state` is `received` unless sent otherwise), each on time when its last unit arrived by the vendor's promised date",
        "tags": [
          "purchase_order_lines"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "received_lines",
                  "promised_lines",
                  "on_time_lines",
                  "initial_promise_on_time_lines",
                  "on_time_rate",
                  "initial_promise_on_time_rate"
                ],
                "x-enum-descriptions": [
                  "Purchase order lines whose whole quantity has arrived",
                  "Lines received with an initial or updated promise; a line promised nothing counts in no on-time rate",
                  "Lines whose last unit arrived on or before the updated promise, or the initial promise where none was updated, in the business's days",
                  "Lines whose last unit arrived on or before the initial promise, whatever the updated promise says",
                  "Lines on time, to the updated promise or else the initial one, over lines received with a promise",
                  "Lines on time to the initial promise over lines received with a promise"
                ],
                "x-enum-labels": [
                  "Lines received",
                  "Lines received with a promise",
                  "Lines on time",
                  "Lines on time to initial promise",
                  "On-time rate",
                  "On-time rate to initial promise"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "vendor",
                "received_on",
                "received_on:day",
                "received_on:week",
                "received_on:month",
                "received_on:quarter",
                "received_on:year"
              ],
              "x-enum-descriptions": [
                "The vendor the order was placed with",
                "When the line's last unit arrived, or a package arrived",
                "When the line's last unit arrived, or a package arrived, by day",
                "When the line's last unit arrived, or a package arrived, by week",
                "When the line's last unit arrived, or a package arrived, by month",
                "When the line's last unit arrived, or a package arrived, by quarter",
                "When the line's last unit arrived, or a package arrived, by year"
              ],
              "x-enum-labels": [
                "Vendor",
                "Received",
                "Received, by day",
                "Received, by week",
                "Received, by month",
                "Received, by quarter",
                "Received, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `received` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge",
                  "package"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sourcing request"
              }
            },
            "description": "Leaves out the lines `sourcing_request[]` would list: a part's purchase history beside a request, without the request's own",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "received"
                ],
                "description": "`outstanding`: Some of the line's quantity has yet to arrive; `received`: The line's whole quantity has arrived",
                "x-enum-descriptions": [
                  "Some of the line's quantity has yet to arrive",
                  "The line's whole quantity has arrived"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "closed",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
                "x-enum-descriptions": [
                  "Being written; not yet sent to the vendor",
                  "Sent to the vendor; what it orders is due in",
                  "Finished; nothing more is expected on it",
                  "Called off; nothing will arrive on it"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order line summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLineSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders": {
      "get": {
        "operationId": "list_purchase_orders",
        "summary": "List purchase orders",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "follow_up[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "late",
                  "awaiting_promise",
                  "unsent"
                ],
                "description": "`late`: Sent, with a part line the vendor promised before today and still owes; `awaiting_promise`: Sent, with a part line still owed that has no promise date; `unsent`: A draft not yet sent, or a sent order changed since it went out",
                "x-enum-descriptions": [
                  "Sent, with a part line the vendor promised before today and still owes",
                  "Sent, with a part line still owed that has no promise date",
                  "A draft not yet sent, or a sent order changed since it went out"
                ],
                "x-enum-labels": [
                  "Late",
                  "Awaiting promise",
                  "Unsent"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "closed",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
                "x-enum-descriptions": [
                  "Being written; not yet sent to the vendor",
                  "Sent to the vendor; what it orders is due in",
                  "Finished; nothing more is expected on it",
                  "Called off; nothing will arrive on it"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "awaiting_goods",
                  "partially_received",
                  "received_in_full"
                ],
                "description": "`awaiting_goods`: Sent; parts are due and none has arrived yet; `partially_received`: Sent; some has arrived and more is still to come; `received_in_full`: Everything it orders has arrived",
                "x-enum-descriptions": [
                  "Sent; parts are due and none has arrived yet",
                  "Sent; some has arrived and more is still to come",
                  "Everything it orders has arrived"
                ],
                "x-enum-labels": [
                  "Awaiting goods",
                  "Partially received",
                  "Received in full"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "priority",
                "-priority",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-priority"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` sorts in its own order, routine, expedite, critical, aog, not the alphabet. `status` sorts in its own order, draft, sent, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "package_manifest"
                ]
              }
            },
            "description": "Inline `package_manifest` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "receipt_state",
            "label": "Receiving",
            "kind": "options",
            "options": [
              {
                "value": "awaiting_goods",
                "label": "Awaiting goods"
              },
              {
                "value": "partially_received",
                "label": "Partially received"
              },
              {
                "value": "received_in_full",
                "label": "Received in full"
              }
            ]
          },
          {
            "key": "follow_up",
            "label": "Follow up",
            "kind": "options",
            "options": [
              {
                "value": "late",
                "label": "Late"
              },
              {
                "value": "awaiting_promise",
                "label": "Awaiting promise"
              },
              {
                "value": "unsent",
                "label": "Unsent"
              }
            ]
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_reference",
            "label": "Vendor ref",
            "field": "vendor_reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "billing_party",
            "label": "Billing party",
            "field": "billing_party",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "shipper": "Shipper",
              "recipient": "Recipient",
              "third_party": "Third party",
              "collect": "Collect",
              "on_invoice": "On invoice"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_notes",
            "label": "Vendor notes",
            "field": "vendor_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "amended_at",
            "label": "Amended",
            "field": "amended_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "promised_on",
            "label": "Promised",
            "field": "promised_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "editable",
            "label": "Editable",
            "field": "editable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_approved",
            "label": "Vendor approved",
            "field": "vendor_approved",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_term",
            "label": "Freight terms",
            "field": "freight_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_account",
            "label": "Freight account",
            "field": "freight_account",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Total",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home total",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "subtotal",
            "label": "Subtotal",
            "field": "subtotal_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "ordered",
            "label": "Ordered",
            "field": "quantity_ordered",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "received",
            "label": "Received",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "fully_received",
            "label": "Received in full",
            "field": "fully_received",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "receivable",
            "label": "Receivable",
            "field": "receivable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "consignment",
            "label": "Consignment",
            "field": "consignment",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "inventory",
            "label": "Inventory",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "unvouchered_receipts",
            "label": "Unvouchered receipts",
            "field": "unvouchered_receipts",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "drop_ship",
            "label": "Drop ship",
            "field": "drop_ship",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "drop_ship_company",
            "label": "Drop ship company",
            "field": "drop_ship_company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship_email_address",
            "label": "Drop ship email address",
            "field": "drop_ship_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship_mismatch",
            "label": "Drop ship mismatch",
            "field": "drop_ship_customer_mismatched",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": "priority",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          }
        ]
      },
      "post": {
        "operationId": "create_purchase_order",
        "summary": "Create a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_purchase_order_by_external_key",
        "summary": "Retrieve a purchase order by its external key",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}": {
      "get": {
        "operationId": "get_purchase_order",
        "summary": "Retrieve a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_purchase_order",
        "summary": "Update a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/add_package": {
      "post": {
        "operationId": "add_package_purchase_order",
        "summary": "Add a package to a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderAddPackage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_package",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_purchase_order",
        "summary": "Cancel a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/close": {
      "post": {
        "operationId": "close_purchase_order",
        "summary": "Close a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_purchase_order",
        "summary": "Create a receipt for a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/email": {
      "post": {
        "operationId": "email_purchase_order",
        "summary": "Email a purchase order",
        "description": "Emails the order's form as a PDF from the organization's sending address, tied to the order's conversation and narrated `emailed`. A draft is marked sent first, as `POST /purchase_orders/{uuid}/send` would, opening it for receiving; a failure after that leaves it sent, and the refusal says so. One changed since it went out is marked re-sent once the email has gone, as `POST /purchase_orders/{uuid}/resend` would. Otherwise it goes out again unchanged",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/external_keys": {
      "get": {
        "operationId": "list_purchase_order_external_keys",
        "summary": "List a purchase order's external keys",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_purchase_order_external_key",
        "summary": "Retrieve a purchase order by its external key",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_purchase_order_external_key",
        "summary": "Link a purchase order's external key",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_purchase_order_external_key",
        "summary": "Unlink a purchase order's external key",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/import_lines": {
      "post": {
        "operationId": "import_lines_purchase_order",
        "summary": "Import lines into a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderImportLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "import_lines",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/lines": {
      "get": {
        "operationId": "list_purchase_order_lines",
        "summary": "List purchase order lines",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge",
                  "package"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sourcing request"
              }
            },
            "description": "Leaves out the lines `sourcing_request[]` would list: a part's purchase history beside a request, without the request's own",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "receipt_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outstanding",
                  "received"
                ],
                "description": "`outstanding`: Some of the line's quantity has yet to arrive; `received`: The line's whole quantity has arrived",
                "x-enum-descriptions": [
                  "Some of the line's quantity has yet to arrive",
                  "The line's whole quantity has arrived"
                ],
                "x-enum-labels": [
                  "Outstanding",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "closed",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
                "x-enum-descriptions": [
                  "Being written; not yet sent to the vendor",
                  "Sent to the vendor; what it orders is due in",
                  "Finished; nothing more is expected on it",
                  "Called off; nothing will arrive on it"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "receipt_state",
            "label": "Receiving",
            "kind": "options",
            "options": [
              {
                "value": "outstanding",
                "label": "Outstanding"
              },
              {
                "value": "received",
                "label": "Received"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_purchase_order_line",
        "summary": "Create a purchase order line",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_purchase_order_line",
        "summary": "Retrieve a purchase order line",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_purchase_order_line",
        "summary": "Update a purchase order line",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_purchase_order_line",
        "summary": "Delete a purchase order line",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/lines/{uuid}/allocate": {
      "post": {
        "operationId": "allocate_purchase_order_line",
        "summary": "Allocate a purchase order line",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderLineAllocate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "allocate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_purchase_order",
        "summary": "Preview a purchase order's email",
        "description": "Renders the email `POST /purchase_orders/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and a draft stays a draft",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/requirements": {
      "get": {
        "operationId": "list_purchase_order_requirements",
        "summary": "List purchase order requirements",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderRequirementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_purchase_order_requirement",
        "summary": "Create a purchase order requirement",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/requirements/{uuid}": {
      "get": {
        "operationId": "get_purchase_order_requirement",
        "summary": "Retrieve a purchase order requirement",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_purchase_order_requirement",
        "summary": "Delete a purchase order requirement",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/requirements/{uuid}/waive": {
      "post": {
        "operationId": "waive_purchase_order_requirement",
        "summary": "Waive a purchase order requirement",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderRequirementWaive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "waive",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/resend": {
      "post": {
        "operationId": "resend_purchase_order",
        "summary": "Resend a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resend",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/resolve_part_numbers": {
      "post": {
        "operationId": "resolve_part_numbers_purchase_order",
        "summary": "Resolve the part numbers on a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderResolvePartNumbers"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resolve_part_numbers",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/return": {
      "post": {
        "operationId": "return_purchase_order",
        "summary": "Return a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderReturn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor return it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_purchase_order",
        "summary": "Revise the lines of a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/send": {
      "post": {
        "operationId": "send_purchase_order",
        "summary": "Send a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{purchase_order_uuid}/trash": {
      "post": {
        "operationId": "trash_purchase_order",
        "summary": "Trash a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_purchase_order",
        "summary": "Restore a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "purchase_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The purchase order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/purchase_orders/{uuid}/voucher": {
      "post": {
        "operationId": "voucher_purchase_order",
        "summary": "Voucher a purchase order",
        "tags": [
          "purchase_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PurchaseOrderVoucher"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The voucher it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "voucher",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_assignments": {
      "get": {
        "operationId": "list_quickbooks_assignments",
        "summary": "List QuickBooks assignments",
        "tags": [
          "quickbooks_assignments"
        ],
        "parameters": [
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge",
                  "customer",
                  "vendor",
                  "combined_tax_rate",
                  "ledger_account"
                ],
                "description": "`part`: A part, linked through its catalog item; `charge`: A charge, linked through its catalog item; `customer`: A company as a customer; `vendor`: A company as a vendor; `combined_tax_rate`: A tax code; `ledger_account`: An account of the chart",
                "x-enum-descriptions": [
                  "A part, linked through its catalog item",
                  "A charge, linked through its catalog item",
                  "A company as a customer",
                  "A company as a vendor",
                  "A tax code",
                  "An account of the chart"
                ],
                "x-enum-labels": [
                  "Part",
                  "Charge",
                  "Customer",
                  "Vendor",
                  "Combined tax rate",
                  "Ledger account"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksAssignmentListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksAssignmentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_quickbooks_assignment",
        "summary": "Create a QuickBooks assignment",
        "tags": [
          "quickbooks_assignments"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksAssignmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuickbooksAssignmentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The QuickBooks assignment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksAssignment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_assignments/{uuid}": {
      "get": {
        "operationId": "get_quickbooks_assignment",
        "summary": "Retrieve a QuickBooks assignment",
        "tags": [
          "quickbooks_assignments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksAssignmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The QuickBooks assignment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksAssignment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_quickbooks_assignment",
        "summary": "Update a QuickBooks assignment",
        "tags": [
          "quickbooks_assignments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksAssignmentField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuickbooksAssignmentUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The QuickBooks assignment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksAssignment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_quickbooks_assignment",
        "summary": "Delete a QuickBooks assignment",
        "tags": [
          "quickbooks_assignments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration": {
      "get": {
        "operationId": "get_quickbooks_integration",
        "summary": "Retrieve the QuickBooks integration",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "roster_links",
                  "posting",
                  "items"
                ]
              }
            },
            "description": "Inline `roster_links`, `posting`, or `items` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The QuickBooks integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_quickbooks_integration",
        "summary": "Update the QuickBooks integration",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "roster_links",
                  "posting",
                  "items"
                ]
              }
            },
            "description": "Inline `roster_links`, `posting`, or `items` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuickbooksIntegrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The QuickBooks integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/accounts": {
      "get": {
        "operationId": "list_quickbooks_accounts",
        "summary": "List QuickBooks accounts",
        "description": "The connected QuickBooks company's chart of accounts, which a ledger account is linked to",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksAccountListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksAccountList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/connect": {
      "post": {
        "operationId": "connect_quickbooks_integration",
        "summary": "Connect the QuickBooks integration",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "roster_links",
                  "posting",
                  "items"
                ]
              }
            },
            "description": "Inline `roster_links`, `posting`, or `items` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The QuickBooks integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "connect",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/customers": {
      "get": {
        "operationId": "list_quickbooks_customers",
        "summary": "List QuickBooks customers",
        "description": "The connected QuickBooks company's customers, which a customer of ours is linked to",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksCustomerListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksCustomerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/disconnect": {
      "post": {
        "operationId": "disconnect_quickbooks_integration",
        "summary": "Disconnect the QuickBooks integration",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "roster_links",
                  "posting",
                  "items"
                ]
              }
            },
            "description": "Inline `roster_links`, `posting`, or `items` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The QuickBooks integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "disconnect",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/items": {
      "get": {
        "operationId": "list_quickbooks_items",
        "summary": "List QuickBooks items",
        "description": "The connected QuickBooks company's products and services a part or a charge posts through, leaving out those QuickBooks tracks as inventory",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksItemListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/sync": {
      "post": {
        "operationId": "sync_quickbooks_integration",
        "summary": "Sync the QuickBooks integration",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "roster_links",
                  "posting",
                  "items"
                ]
              }
            },
            "description": "Inline `roster_links`, `posting`, or `items` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The QuickBooks integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "sync",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/tax_codes": {
      "get": {
        "operationId": "list_quickbooks_tax_codes",
        "summary": "List QuickBooks tax codes",
        "description": "The connected QuickBooks company's sales tax codes, which a combined tax rate is linked to",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksTaxCodeListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksTaxCodeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/quickbooks_integration/vendors": {
      "get": {
        "operationId": "list_quickbooks_vendors",
        "summary": "List QuickBooks vendors",
        "description": "The connected QuickBooks company's vendors, which a vendor of ours is linked to",
        "tags": [
          "quickbooks_integration"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name to narrow to"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuickbooksVendorListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuickbooksVendorList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/receipt_lines": {
      "get": {
        "operationId": "list_receipt_lines_across_documents",
        "summary": "List receipt lines across every document",
        "tags": [
          "receipt_lines"
        ],
        "parameters": [
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tag_types[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "faa_8130_3",
                  "easa_form_1",
                  "uk_caa_form_1",
                  "tcca_form_one",
                  "casa_form_1",
                  "caac_release",
                  "coc",
                  "other"
                ],
                "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
                "x-enum-descriptions": [
                  "FAA Form 8130-3, the FAA's authorized release certificate",
                  "EASA Form 1, the EU authorized release certificate",
                  "UK CAA Form 1, the UK authorized release certificate",
                  "TCCA Form One, Transport Canada's authorized release certificate",
                  "CASA Form 1, Australia's authorized release certificate",
                  "The CAAC's authorized release certificate (China)",
                  "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                  "Another release document, named in the certificate number or notes"
                ],
                "x-enum-labels": [
                  "FAA 8130-3",
                  "EASA Form 1",
                  "UK CAA Form 1",
                  "TCCA Form One",
                  "CASA Form 1",
                  "CAAC Form AAC",
                  "Certificate of Conformance",
                  "Other"
                ]
              }
            },
            "description": "Lines whose tag names any of these authorities",
            "explode": true
          },
          {
            "name": "warehouse[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A warehouse's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a customer return line, a customer exchange, a customer lease, a manifest line, a purchase order line, a repair order line or a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manifest[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A manifest's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Lines received from one of these companies, the company each line's `company` names",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "check_in[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "received"
                ],
                "description": "`pending`: Not checked in yet; no inventory line holds it; `received`: Checked in: an inventory line holds what arrived",
                "x-enum-descriptions": [
                  "Not checked in yet; no inventory line holds it",
                  "Checked in: an inventory line holds what arrived"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "unvouchered",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only received lines a voucher has not yet fully billed"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "quantity",
                "-quantity",
                "created_at",
                "-created_at",
                "receipt",
                "-receipt",
                "part_number",
                "-part_number",
                "condition_code",
                "-condition_code",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `receipt` sorts only beside a single `purchase_order[]`, `manifest[]` or `inventory_code[]`. `part_number` sorts only beside a single `purchase_order[]`, `manifest[]` or `inventory_code[]`. `condition_code` sorts only beside a single `purchase_order[]`, `manifest[]` or `inventory_code[]`. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "check_in",
            "label": "Check-in",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "received",
                "label": "Received"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "kind": "options",
            "references": [
              "warehouse"
            ],
            "fenced": true
          },
          {
            "key": "company",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "receipt",
            "label": "Receipt",
            "field": "receipt.identifier",
            "sort": "receipt",
            "kind": "text",
            "currency": null,
            "beside": [
              "purchase_order",
              "manifest",
              "inventory_code"
            ]
          },
          {
            "key": "line",
            "label": "Line",
            "field": "line_position",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null,
            "beside": [
              "purchase_order",
              "manifest",
              "inventory_code"
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": "condition_code",
            "kind": "text",
            "currency": null,
            "beside": [
              "purchase_order",
              "manifest",
              "inventory_code"
            ]
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Received",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "received_on",
            "label": "Landed",
            "field": "received_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/receipts": {
      "get": {
        "operationId": "list_receipts",
        "summary": "List receipts",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "received",
                  "cancelled"
                ],
                "description": "`open`: Arriving; its lines are still being checked in; `received`: Received; its ready lines are in inventory; `cancelled`: Called off before anything was received",
                "x-enum-descriptions": [
                  "Arriving; its lines are still being checked in",
                  "Received; its ready lines are in inventory",
                  "Called off before anything was received"
                ],
                "x-enum-labels": [
                  "Open",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "source_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight_migration",
                  "corepilot_legacy_migration",
                  "customer_return",
                  "customer_exchange",
                  "customer_lease",
                  "import",
                  "manifest",
                  "purchase_order",
                  "repair_order",
                  "sales_order",
                  "work_order"
                ],
                "description": "`avsight_migration`: Inventory AvSight's migration brought over; `corepilot_legacy_migration`: Inventory CorePilot legacy's migration brought over; `customer_return`: A customer's units coming back; `customer_exchange`: A customer's exchange core coming back; `customer_lease`: Our leased unit coming back from the customer; `import`: Inventory counted in from an import file; `manifest`: A teardown or lot's units coming in; `purchase_order`: What a purchase order bought; `repair_order`: Units back from the repair shop; `sales_order`: A customer's own unit arriving for repair; `work_order`: A customer's own unit arriving for work in our shop",
                "x-enum-descriptions": [
                  "Inventory AvSight's migration brought over",
                  "Inventory CorePilot legacy's migration brought over",
                  "A customer's units coming back",
                  "A customer's exchange core coming back",
                  "Our leased unit coming back from the customer",
                  "Inventory counted in from an import file",
                  "A teardown or lot's units coming in",
                  "What a purchase order bought",
                  "Units back from the repair shop",
                  "A customer's own unit arriving for repair",
                  "A customer's own unit arriving for work in our shop"
                ],
                "x-enum-labels": [
                  "AvSight migration",
                  "CorePilot legacy migration",
                  "Customer return",
                  "Customer exchange",
                  "Customer lease",
                  "Import",
                  "Manifest",
                  "Purchase order",
                  "Repair order",
                  "Sales order",
                  "Work order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_return[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A customer return's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manifest[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A manifest's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "unvouchered",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only receipts with received lines a voucher has not yet fully billed"
          },
          {
            "name": "requiring_inspection",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only receipts with a line requiring a receiving inspection that isn't completed, before Receive or after"
          },
          {
            "name": "ready_to_receive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only open receipts with no line waiting on its receiving inspection, ready for Receive"
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A receipt's number, the order it receives, its company, its air waybill, or a part number on its lines"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "received_at",
                "-received_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, received, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "source_type",
            "label": "Source type",
            "kind": "options",
            "options": [
              {
                "value": "avsight_migration",
                "label": "AvSight migration"
              },
              {
                "value": "corepilot_legacy_migration",
                "label": "CorePilot legacy migration"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "customer_exchange",
                "label": "Customer exchange"
              },
              {
                "value": "customer_lease",
                "label": "Customer lease"
              },
              {
                "value": "import",
                "label": "Import"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              },
              {
                "value": "work_order",
                "label": "Work order"
              }
            ]
          },
          {
            "key": "company",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          },
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "requiring_inspection",
            "label": "Requiring inspection",
            "kind": "toggle"
          },
          {
            "key": "ready_to_receive",
            "label": "Ready to receive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "received": "Received",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "order_internal_notes",
            "label": "Order internal notes",
            "field": "order_internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "shipped_via",
            "label": "Shipped via",
            "field": "shipped_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tracking_number",
            "label": "Tracking number",
            "field": "tracking_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "received_at",
            "label": "Received",
            "field": "received_at",
            "sort": "received_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "pool_code",
            "label": "Pool code",
            "field": "pool_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "packages",
            "label": "Packages",
            "field": "packages",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Units",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "progress",
            "label": "Progress",
            "field": "received_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "inspection_required",
            "label": "Lines requiring inspection",
            "field": "inspection_required_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "inspected",
            "label": "Lines inspected",
            "field": "inspected_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "drop_ship",
            "label": "Drop ship",
            "field": "drop_ship",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/receipts/{uuid}": {
      "get": {
        "operationId": "get_receipt",
        "summary": "Retrieve a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `lines`, `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_receipt",
        "summary": "Update a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `lines`, `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_receipt",
        "summary": "Cancel a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{receipt_uuid}/lines": {
      "get": {
        "operationId": "list_receipt_lines",
        "summary": "List receipt lines",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tag_types[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "faa_8130_3",
                  "easa_form_1",
                  "uk_caa_form_1",
                  "tcca_form_one",
                  "casa_form_1",
                  "caac_release",
                  "coc",
                  "other"
                ],
                "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
                "x-enum-descriptions": [
                  "FAA Form 8130-3, the FAA's authorized release certificate",
                  "EASA Form 1, the EU authorized release certificate",
                  "UK CAA Form 1, the UK authorized release certificate",
                  "TCCA Form One, Transport Canada's authorized release certificate",
                  "CASA Form 1, Australia's authorized release certificate",
                  "The CAAC's authorized release certificate (China)",
                  "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                  "Another release document, named in the certificate number or notes"
                ],
                "x-enum-labels": [
                  "FAA 8130-3",
                  "EASA Form 1",
                  "UK CAA Form 1",
                  "TCCA Form One",
                  "CASA Form 1",
                  "CAAC Form AAC",
                  "Certificate of Conformance",
                  "Other"
                ]
              }
            },
            "description": "Lines whose tag names any of these authorities",
            "explode": true
          },
          {
            "name": "warehouse[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A warehouse's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory code's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a customer return line, a customer exchange, a customer lease, a manifest line, a purchase order line, a repair order line or a work order"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "manifest[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A manifest's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Lines received from one of these companies, the company each line's `company` names",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "check_in[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "received"
                ],
                "description": "`pending`: Not checked in yet; no inventory line holds it; `received`: Checked in: an inventory line holds what arrived",
                "x-enum-descriptions": [
                  "Not checked in yet; no inventory line holds it",
                  "Checked in: an inventory line holds what arrived"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Received"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "unvouchered",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only received lines a voucher has not yet fully billed"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "check_in",
            "label": "Check-in",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "received",
                "label": "Received"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "kind": "options",
            "references": [
              "warehouse"
            ],
            "fenced": true
          }
        ]
      }
    },
    "/receipts/{receipt_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_receipt_line",
        "summary": "Retrieve a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_receipt_line",
        "summary": "Update a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_receipt_line",
        "summary": "Delete a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{receipt_uuid}/lines/{uuid}/reject": {
      "post": {
        "operationId": "reject_receipt_line",
        "summary": "Reject a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptLineReject"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rejection it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reject",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{receipt_uuid}/lines/{uuid}/split": {
      "post": {
        "operationId": "split_receipt_line",
        "summary": "Split a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptLineSplit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The receipt line it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "split",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{receipt_uuid}/lines/{uuid}/unreject": {
      "post": {
        "operationId": "unreject_receipt_line",
        "summary": "Unreject a receipt line",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt"
                ]
              }
            },
            "description": "Inline `receipt` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReceiptLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unreject",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{uuid}/list_part": {
      "post": {
        "operationId": "list_part_receipt",
        "summary": "List a part on a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptListPart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "list_part",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{uuid}/receive": {
      "post": {
        "operationId": "receive_receipt",
        "summary": "Receive a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptReceive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "receive",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{uuid}/receive_and_ship": {
      "post": {
        "operationId": "receive_and_ship_receipt",
        "summary": "Receive a receipt and ship its drop-shipped lines on to their customers",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptReceiveAndShip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "receive_and_ship",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_receipt",
        "summary": "Revise the lines of a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReceiptReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/receipts/{receipt_uuid}/trash": {
      "post": {
        "operationId": "trash_receipt",
        "summary": "Trash a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_receipt",
        "summary": "Restore a receipt",
        "tags": [
          "receipts"
        ],
        "parameters": [
          {
            "name": "receipt_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The receipt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejection_reasons": {
      "get": {
        "operationId": "list_rejection_reasons",
        "summary": "List rejection reasons",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReasonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_rejection_reason",
        "summary": "Create a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReasonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rejection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejection_reasons/{uuid}": {
      "get": {
        "operationId": "get_rejection_reason",
        "summary": "Retrieve a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_rejection_reason",
        "summary": "Update a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReasonUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_rejection_reason",
        "summary": "Delete a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejection_reasons/{uuid}/activate": {
      "post": {
        "operationId": "activate_rejection_reason",
        "summary": "Activate a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejection_reasons/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_rejection_reason",
        "summary": "Deactivate a rejection reason",
        "tags": [
          "rejection_reasons"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionReasonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection reason",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionReason"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections": {
      "get": {
        "operationId": "list_rejections",
        "summary": "List rejections",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "resolved",
                  "cancelled"
                ],
                "description": "`open`: Units held back for a problem, awaiting a decision; `resolved`: A decision was made and carried out; `cancelled`: Withdrawn; the units are released from the hold",
                "x-enum-descriptions": [
                  "Units held back for a problem, awaiting a decision",
                  "A decision was made and carried out",
                  "Withdrawn; the units are released from the hold"
                ],
                "x-enum-labels": [
                  "Open",
                  "Resolved",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A rejection reason's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "assignee[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A membership's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, resolved, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RejectionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "resolved",
                "label": "Resolved"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "references": [
              "rejection_reason"
            ]
          },
          {
            "key": "assignee",
            "label": "Assignee",
            "kind": "options",
            "references": [
              "membership"
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "note",
            "label": "Note",
            "field": "note",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Raised",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "resolved": "Resolved",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "resolution",
            "label": "Resolution",
            "field": "resolution",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "put_back": "Put back",
              "scrapped": "Scrapped",
              "returned": "Returned",
              "added_to_repair_order": "Added to repair order"
            }
          },
          {
            "key": "outcome",
            "label": "Outcome",
            "field": "outcome",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "replacement",
            "label": "Replacement",
            "field": "replacement.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "resolved_at",
            "label": "Resolved",
            "field": "resolved_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "receipt.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "purchase_order",
            "label": "Purchase order",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line_identifier",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "assignee",
            "label": "Assignee",
            "field": "assignee.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reasons",
            "label": "Reasons",
            "field": "reasons.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/rejections/{uuid}": {
      "get": {
        "operationId": "get_rejection",
        "summary": "Retrieve a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_rejection",
        "summary": "Update a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{uuid}/add_to_repair_order": {
      "post": {
        "operationId": "add_to_repair_order_rejection",
        "summary": "Add a rejection to a repair order",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionAddToRepairOrder"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_to_repair_order",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_rejection",
        "summary": "Cancel a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{uuid}/put_back": {
      "post": {
        "operationId": "put_back_rejection",
        "summary": "Put back a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionPutBack"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "put_back",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{uuid}/return": {
      "post": {
        "operationId": "return_rejection",
        "summary": "Return a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionReturn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{uuid}/scrap": {
      "post": {
        "operationId": "scrap_rejection",
        "summary": "Scrap a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RejectionScrap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "scrap",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/rejections/{rejection_uuid}/trash": {
      "post": {
        "operationId": "trash_rejection",
        "summary": "Trash a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "rejection_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_rejection",
        "summary": "Restore a rejection",
        "tags": [
          "rejections"
        ],
        "parameters": [
          {
            "name": "rejection_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/release_lines": {
      "get": {
        "operationId": "list_release_lines_across_documents",
        "summary": "List release lines across every document",
        "tags": [
          "release_lines"
        ],
        "parameters": [
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "to_pick",
                  "to_check",
                  "to_ship",
                  "shipped_today"
                ],
                "description": "`to_pick`: A part line on an open release, not yet picked; `to_check`: Picked, and waiting on its outbound QC checklist; `to_ship`: Picked and checked, or picked where no outbound QC checklist runs, on a release still open; `shipped_today`: A part line on a release that shipped today",
                "x-enum-descriptions": [
                  "A part line on an open release, not yet picked",
                  "Picked, and waiting on its outbound QC checklist",
                  "Picked and checked, or picked where no outbound QC checklist runs, on a release still open",
                  "A part line on a release that shipped today"
                ],
                "x-enum-labels": [
                  "To pick",
                  "To check",
                  "To ship",
                  "Shipped today"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "urgency[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "release[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A release's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "urgency",
                "-urgency",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-urgency"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "stage",
            "label": "Stage",
            "kind": "options",
            "options": [
              {
                "value": "to_pick",
                "label": "To pick"
              },
              {
                "value": "to_check",
                "label": "To check"
              },
              {
                "value": "to_ship",
                "label": "To ship"
              },
              {
                "value": "shipped_today",
                "label": "Shipped today"
              }
            ]
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "kind": "options",
            "options": [
              {
                "value": "routine",
                "label": "Routine"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "aog",
                "label": "AOG"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "release",
            "label": "Release",
            "kind": "options",
            "references": [
              "release"
            ],
            "searchable": true
          },
          {
            "key": "sales_order",
            "label": "Sales order",
            "kind": "options",
            "references": [
              "sales_order"
            ],
            "searchable": true
          },
          {
            "key": "purchase_order",
            "label": "Purchase order",
            "kind": "options",
            "references": [
              "purchase_order"
            ],
            "searchable": true
          },
          {
            "key": "repair_order",
            "label": "Repair order",
            "kind": "options",
            "references": [
              "repair_order"
            ],
            "searchable": true
          },
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "home_unit_cost",
            "label": "Unit cost",
            "field": "home_unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "picked",
            "label": "Picked",
            "field": "picked_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "verified",
            "label": "Verified",
            "field": "verified_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "order",
            "label": "Order",
            "field": "order",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_po_number",
            "label": "Customer PO",
            "field": "customer_po_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "field": "urgency",
            "sort": "urgency",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "requested_ship_date",
            "label": "Requested",
            "field": "requested_ship_date",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "release",
            "label": "Release",
            "field": "release.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "stage",
            "label": "Stage",
            "field": "stage",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "to_pick": "To pick",
              "to_check": "To check",
              "to_ship": "To ship",
              "shipped_today": "Shipped today"
            }
          }
        ]
      }
    },
    "/releases": {
      "get": {
        "operationId": "list_releases",
        "summary": "List releases",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "shipped",
                  "cancelled"
                ],
                "description": "`open`: Planned to ship and not yet out the door; `shipped`: Shipped; its units have left; `cancelled`: Called off before it shipped",
                "x-enum-descriptions": [
                  "Planned to ship and not yet out the door",
                  "Shipped; its units have left",
                  "Called off before it shipped"
                ],
                "x-enum-labels": [
                  "Open",
                  "Shipped",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "urgency[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "changed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only releases whose order changed after they were planned"
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "queue[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "picking",
                  "qc",
                  "shipping"
                ],
                "description": "`picking`: Open, with lines still to pick; `qc`: Picked, with lines awaiting their outbound QC checklist; `shipping`: Picked, and checked wherever an outbound QC checklist runs: ready to ship",
                "x-enum-descriptions": [
                  "Open, with lines still to pick",
                  "Picked, with lines awaiting their outbound QC checklist",
                  "Picked, and checked wherever an outbound QC checklist runs: ready to ship"
                ],
                "x-enum-labels": [
                  "Picking",
                  "Outbound QC",
                  "Shipping"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "shipping_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "not_started",
                  "picking",
                  "waiting_on_check",
                  "ready_to_ship"
                ],
                "description": "`not_started`: Open, with no line picked yet; `picking`: Open, with lines picked and lines still to pick; `waiting_on_check`: Every line picked, with lines waiting on their outbound QC checklist; `ready_to_ship`: Picked, and checked wherever an outbound QC checklist runs: ready to ship",
                "x-enum-descriptions": [
                  "Open, with no line picked yet",
                  "Open, with lines picked and lines still to pick",
                  "Every line picked, with lines waiting on their outbound QC checklist",
                  "Picked, and checked wherever an outbound QC checklist runs: ready to ship"
                ],
                "x-enum-labels": [
                  "Not started",
                  "Picking",
                  "Waiting on check",
                  "Ready to ship"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sales_order_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sales order line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "requested_ship_date",
                "-requested_ship_date",
                "shipped_at",
                "-shipped_at",
                "status",
                "-status",
                "urgency",
                "-urgency",
                "clause",
                "-clause",
                "updated_at",
                "-updated_at"
              ],
              "default": "-urgency"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, shipped, cancelled, not the alphabet. `urgency` sorts in its own order, routine, expedite, critical, aog, not the alphabet. `clause` sorts only beside a single `sales_order[]`, `repair_order[]`, `purchase_order[]` or `work_order[]`. Rows equal under the sort follow by `created_at`, then uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "shipped",
                "label": "Shipped"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "queue",
            "label": "Queue",
            "kind": "options",
            "options": [
              {
                "value": "picking",
                "label": "Picking"
              },
              {
                "value": "qc",
                "label": "Outbound QC"
              },
              {
                "value": "shipping",
                "label": "Shipping"
              }
            ]
          },
          {
            "key": "shipping_status",
            "label": "Shipping status",
            "kind": "options",
            "options": [
              {
                "value": "not_started",
                "label": "Not started"
              },
              {
                "value": "picking",
                "label": "Picking"
              },
              {
                "value": "waiting_on_check",
                "label": "Waiting on check"
              },
              {
                "value": "ready_to_ship",
                "label": "Ready to ship"
              }
            ]
          },
          {
            "key": "changed",
            "label": "Changed after release",
            "kind": "toggle"
          },
          {
            "key": "company",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "shipped": "Shipped",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "shipping_status",
            "label": "Shipping status",
            "field": "shipping_status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "not_started": "Not started",
              "picking": "Picking",
              "waiting_on_check": "Waiting on check",
              "ready_to_ship": "Ready to ship"
            }
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "field": "urgency",
            "sort": "urgency",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "requested_ship_date",
            "label": "Requested",
            "field": "requested_ship_date",
            "sort": "requested_ship_date",
            "kind": "date",
            "currency": null
          },
          {
            "key": "documents_only",
            "label": "Documents only",
            "field": "documents_only",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "shipped_via",
            "label": "Shipped via",
            "field": "shipped_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "pieces",
            "label": "Pieces",
            "field": "pieces",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "freight_charge",
            "label": "Freight charge",
            "field": "freight_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "shipped_at",
            "label": "Shipped",
            "field": "shipped_at",
            "sort": "shipped_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "changed",
            "label": "Changed",
            "field": "changed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "weight",
            "label": "Weight",
            "field": "total_weight",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "invoice",
            "label": "Invoice",
            "field": "invoice.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": "clause",
            "kind": "text",
            "currency": null,
            "beside": [
              "sales_order",
              "repair_order",
              "purchase_order",
              "work_order"
            ]
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "progress",
            "label": "Progress",
            "field": "picked_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "worked_by",
            "label": "Worked by",
            "field": "worked_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via_label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "billing_party",
            "label": "Billing party",
            "field": "billing_party",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_release",
        "summary": "Create a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/ship": {
      "post": {
        "operationId": "ship_releases",
        "summary": "Ship several releases at once",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleasesShip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every release named, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ship",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}": {
      "get": {
        "operationId": "get_release",
        "summary": "Retrieve a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_release",
        "summary": "Update a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `lines`, `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/acknowledge": {
      "post": {
        "operationId": "acknowledge_release",
        "summary": "Acknowledge a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "acknowledge",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_release",
        "summary": "Cancel a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/certify": {
      "post": {
        "operationId": "certify_release",
        "summary": "Certify a release",
        "description": "Drafts a certificate of the form for each group of the release's part lines no live certificate of that form covers: one Certificate of Conformance over them all, or one Material Certification (ATA Spec 106) per order line, trace and new-or-used status",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CertificateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseCertify"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The certificates it drafted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "certify",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/combine": {
      "post": {
        "operationId": "combine_release",
        "summary": "Combine a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseCombine"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "combine",
        "x-risk": "destructive",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/email": {
      "post": {
        "operationId": "email_release",
        "summary": "Email a shipped release's shipping confirmation",
        "description": "Emails the customer a shipping confirmation naming the order, the PO, the day it shipped, its carrier and tracking numbers and each part shipped, with the release's shipping packet as a PDF and any of its `email_files` the sender chose, from the organization's sending address, tied to the release's conversation and narrated `emailed` on the release and its order, naming the files. Offered once a sales or work order's release ships; nothing about the release changes",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/releases/{release_uuid}/email_files": {
      "get": {
        "operationId": "list_email_files",
        "summary": "List email files",
        "description": "The files a shipped release offers to email beside its shipping packet, for the sender to choose: its own files, each unit it shipped, then each live invoice raised from it, with a sent invoice's form",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailFileListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/invoice": {
      "post": {
        "operationId": "invoice_release",
        "summary": "Invoice a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credit_preview",
                  "payment_preview",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `credit_preview`, `payment_preview`, `unlinked_part_numbers`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The invoice it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invoice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "invoice",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{release_uuid}/lines": {
      "get": {
        "operationId": "list_release_lines",
        "summary": "List release lines",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "to_pick",
                  "to_check",
                  "to_ship",
                  "shipped_today"
                ],
                "description": "`to_pick`: A part line on an open release, not yet picked; `to_check`: Picked, and waiting on its outbound QC checklist; `to_ship`: Picked and checked, or picked where no outbound QC checklist runs, on a release still open; `shipped_today`: A part line on a release that shipped today",
                "x-enum-descriptions": [
                  "A part line on an open release, not yet picked",
                  "Picked, and waiting on its outbound QC checklist",
                  "Picked and checked, or picked where no outbound QC checklist runs, on a release still open",
                  "A part line on a release that shipped today"
                ],
                "x-enum-labels": [
                  "To pick",
                  "To check",
                  "To ship",
                  "Shipped today"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "urgency[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "picked",
                "-picked",
                "verified",
                "-verified",
                "quantity",
                "-quantity",
                "home_unit_cost_cents",
                "-home_unit_cost_cents",
                "part_description",
                "-part_description",
                "serial_number",
                "-serial_number",
                "condition_code",
                "-condition_code",
                "bin",
                "-bin",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "home_unit_cost",
            "label": "Unit cost",
            "field": "home_unit_cost_cents",
            "sort": "home_unit_cost_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": "part_description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": "serial_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition_code",
            "sort": "condition_code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "picked",
            "label": "Picked",
            "field": "picked_at",
            "sort": "picked",
            "kind": "date",
            "currency": null
          },
          {
            "key": "verified",
            "label": "Verified",
            "field": "verified_at",
            "sort": "verified",
            "kind": "date",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin",
            "sort": "bin",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "customs_value",
            "label": "Customs value",
            "field": "printed_customs_value_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          }
        ]
      }
    },
    "/releases/{release_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_release_line",
        "summary": "Retrieve a release line",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The release line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_release_line",
        "summary": "Update a release line",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReleaseLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{release_uuid}/lines/{uuid}/reject": {
      "post": {
        "operationId": "reject_release_line",
        "summary": "Reject a release line",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseLineReject"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rejection it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reject",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/pick": {
      "post": {
        "operationId": "pick_release",
        "summary": "Pick a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleasePick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "pick",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_release",
        "summary": "Preview a release's shipping confirmation",
        "description": "Renders the email `POST /releases/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and the release stays as it is",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleasePreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{release_uuid}/shareable_files": {
      "get": {
        "operationId": "list_release_shareable_files",
        "summary": "List shareable files",
        "description": "The files a release offers to share, grouped as the people it is shared with read them: its printed forms and signed certificates, its own files, then each unit it ships",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareableFileListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareableFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/ship": {
      "post": {
        "operationId": "ship_release",
        "summary": "Ship a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseShip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ship",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/split": {
      "post": {
        "operationId": "split_release",
        "summary": "Split a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseSplit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The release it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "split",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{release_uuid}/trash": {
      "post": {
        "operationId": "trash_release",
        "summary": "Trash a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_release",
        "summary": "Restore a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "release_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "operations:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/unpick": {
      "post": {
        "operationId": "unpick_release",
        "summary": "Unpick a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseUnpick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unpick",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/unship": {
      "post": {
        "operationId": "unship_release",
        "summary": "Unship a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseUnship"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unship",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/unverify": {
      "post": {
        "operationId": "unverify_release",
        "summary": "Unverify a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseUnverify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unverify",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/releases/{uuid}/verify": {
      "post": {
        "operationId": "verify_release",
        "summary": "Verify a release",
        "tags": [
          "releases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseVerify"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The release",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "verify",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_capabilities": {
      "get": {
        "operationId": "list_repair_capabilities",
        "summary": "List repair capabilities",
        "tags": [
          "repair_capabilities"
        ],
        "parameters": [
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at",
                "created_at",
                "-created_at",
                "part_number",
                "-part_number",
                "service",
                "-service",
                "active",
                "-active"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `part_number` sorts only beside a single `repair_service[]`. `service` sorts only beside a single `part[]`. `active` sorts only beside a single `part[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartRepairServiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartRepairServiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "repair_service",
            "label": "Service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null,
            "beside": [
              "part"
            ]
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": "service",
            "kind": "text",
            "currency": null,
            "beside": [
              "part"
            ]
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null,
            "beside": [
              "repair_service"
            ]
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_order_templates",
            "label": "Templates",
            "field": "work_order_templates.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/repair_order_lines": {
      "get": {
        "operationId": "list_repair_order_lines_across_documents",
        "summary": "List repair order lines across every document",
        "tags": [
          "repair_order_lines"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purpose[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory",
                  "customer_unit",
                  "exchange_core",
                  "calibration",
                  "rejection",
                  "teardown",
                  "work_order_part"
                ],
                "description": "`inventory`: Our own stock, sent out for repair; `customer_unit`: A customer's unit we hold, sent out on its repair sales order line; `exchange_core`: A core a customer returned on an exchange; `calibration`: A tool sent out to be calibrated; `rejection`: A unit quarantined on a rejection, sent out to resolve it; `teardown`: A unit converted into a cost pool, sent out to be taken apart; `work_order_part`: A part a work order took off the customer's unit, sent out for its material and coming back to it",
                "x-enum-descriptions": [
                  "Our own stock, sent out for repair",
                  "A customer's unit we hold, sent out on its repair sales order line",
                  "A core a customer returned on an exchange",
                  "A tool sent out to be calibrated",
                  "A unit quarantined on a rejection, sent out to resolve it",
                  "A unit converted into a cost pool, sent out to be taken apart",
                  "A part a work order took off the customer's unit, sent out for its material and coming back to it"
                ],
                "x-enum-labels": [
                  "Inventory",
                  "Customer unit",
                  "Exchange core",
                  "Calibration",
                  "Rejection",
                  "Teardown",
                  "Work order part"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "owner_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "non_oem_allowance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "oem",
                  "pma",
                  "der",
                  "pma_der"
                ],
                "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                "x-enum-descriptions": [
                  "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                  "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                  "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                  "PMA parts and DER repairs both allowed"
                ],
                "x-enum-labels": [
                  "OEM only",
                  "PMA parts",
                  "DER repairs",
                  "PMA parts and DER repairs"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "coverage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "short",
                  "covered"
                ],
                "description": "`short`: Less supply is allocated than the line needs; `covered`: Enough supply is allocated to fill the line",
                "x-enum-descriptions": [
                  "Less supply is allocated than the line needs",
                  "Enough supply is allocated to fill the line"
                ],
                "x-enum-labels": [
                  "Short",
                  "Covered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "at_vendor",
                  "received",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
                "x-enum-descriptions": [
                  "Being prepared; nothing has shipped to the repair shop",
                  "Units have shipped to the repair shop",
                  "Every unit has come back from the shop or been settled",
                  "Called off; nothing more goes to the shop"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Shipped to shop",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received_back",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines at the Received stage, every unit back from the shop. A repair summary counts these unless it is sent `false`"
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part_or_none[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a part"
              }
            },
            "description": "The lines naming any of these parts, and those naming no part",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "final_unit_cost_cents",
                "-final_unit_cost_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "vendor",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "dated",
            "label": "Dated",
            "kind": "range"
          },
          {
            "key": "priced",
            "label": "Priced only",
            "kind": "toggle"
          },
          {
            "key": "received",
            "label": "Received back on",
            "kind": "range"
          },
          {
            "key": "received_back",
            "label": "Received back only",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "Record",
            "field": "repair_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "Notes to shop",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "final_unit_cost",
            "label": "Final unit cost",
            "field": "final_unit_cost_cents",
            "sort": "final_unit_cost_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "estimated_unit_cost",
            "label": "Estimated unit cost",
            "field": "estimated_unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "expected_part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_condition_code",
            "label": "Expected condition",
            "field": "expected_condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/repair_order_lines/summary": {
      "get": {
        "operationId": "get_repair_order_line_summary",
        "summary": "Retrieve the repair order line summary",
        "description": "Days out for repair: repair order lines across every order totaled by named measures, grouped by vendor, part or when the line came back, over a period of the days lines were received back. Only lines at the Received stage by default (`received_back` is true unless sent `false`), so a unit still at the shop is counted nowhere",
        "tags": [
          "repair_order_lines"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "received_lines",
                  "average_days_out",
                  "median_days_out"
                ],
                "x-enum-descriptions": [
                  "Repair order lines at the Received stage: every unit has come back from the repair station",
                  "The mean of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back; a unit still at the repair station counts in no average, and a line received with no shipment recorded is left out",
                  "The middle of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back"
                ],
                "x-enum-labels": [
                  "Lines received back",
                  "Average days out for repair",
                  "Median days out for repair"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "vendor",
                "part",
                "received_on",
                "received_on:day",
                "received_on:week",
                "received_on:month",
                "received_on:quarter",
                "received_on:year"
              ],
              "x-enum-descriptions": [
                "The repair shop the order went to",
                "The part the line sent to the shop",
                "When the line's last unit came back from the shop",
                "When the line's last unit came back from the shop, by day",
                "When the line's last unit came back from the shop, by week",
                "When the line's last unit came back from the shop, by month",
                "When the line's last unit came back from the shop, by quarter",
                "When the line's last unit came back from the shop, by year"
              ],
              "x-enum-labels": [
                "Vendor",
                "Part",
                "Received back",
                "Received back, by day",
                "Received back, by week",
                "Received back, by month",
                "Received back, by quarter",
                "Received back, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `received` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purpose[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory",
                  "customer_unit",
                  "exchange_core",
                  "calibration",
                  "rejection",
                  "teardown",
                  "work_order_part"
                ],
                "description": "`inventory`: Our own stock, sent out for repair; `customer_unit`: A customer's unit we hold, sent out on its repair sales order line; `exchange_core`: A core a customer returned on an exchange; `calibration`: A tool sent out to be calibrated; `rejection`: A unit quarantined on a rejection, sent out to resolve it; `teardown`: A unit converted into a cost pool, sent out to be taken apart; `work_order_part`: A part a work order took off the customer's unit, sent out for its material and coming back to it",
                "x-enum-descriptions": [
                  "Our own stock, sent out for repair",
                  "A customer's unit we hold, sent out on its repair sales order line",
                  "A core a customer returned on an exchange",
                  "A tool sent out to be calibrated",
                  "A unit quarantined on a rejection, sent out to resolve it",
                  "A unit converted into a cost pool, sent out to be taken apart",
                  "A part a work order took off the customer's unit, sent out for its material and coming back to it"
                ],
                "x-enum-labels": [
                  "Inventory",
                  "Customer unit",
                  "Exchange core",
                  "Calibration",
                  "Rejection",
                  "Teardown",
                  "Work order part"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "owner_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "non_oem_allowance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "oem",
                  "pma",
                  "der",
                  "pma_der"
                ],
                "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                "x-enum-descriptions": [
                  "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                  "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                  "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                  "PMA parts and DER repairs both allowed"
                ],
                "x-enum-labels": [
                  "OEM only",
                  "PMA parts",
                  "DER repairs",
                  "PMA parts and DER repairs"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "coverage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "short",
                  "covered"
                ],
                "description": "`short`: Less supply is allocated than the line needs; `covered`: Enough supply is allocated to fill the line",
                "x-enum-descriptions": [
                  "Less supply is allocated than the line needs",
                  "Enough supply is allocated to fill the line"
                ],
                "x-enum-labels": [
                  "Short",
                  "Covered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "at_vendor",
                  "received",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
                "x-enum-descriptions": [
                  "Being prepared; nothing has shipped to the repair shop",
                  "Units have shipped to the repair shop",
                  "Every unit has come back from the shop or been settled",
                  "Called off; nothing more goes to the shop"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Shipped to shop",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received_back",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines at the Received stage, every unit back from the shop. A repair summary counts these unless it is sent `false`"
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part_or_none[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a part"
              }
            },
            "description": "The lines naming any of these parts, and those naming no part",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order line summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLineSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/repair_order_stages": {
      "get": {
        "operationId": "list_repair_order_stages",
        "summary": "List repair order stages",
        "tags": [
          "repair_order_stages"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "at_vendor",
                  "received",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
                "x-enum-descriptions": [
                  "Being prepared; nothing has shipped to the repair shop",
                  "Units have shipped to the repair shop",
                  "Every unit has come back from the shop or been settled",
                  "Called off; nothing more goes to the shop"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Shipped to shop",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "status",
                "-status",
                "time_tracking",
                "-time_tracking",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "status"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, at_vendor, received, cancelled, not the alphabet. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderStageListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderStageList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Lifecycle status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "at_vendor",
                "label": "Shipped to shop"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Name",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Lifecycle status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "at_vendor": "Shipped to shop",
              "received": "Received",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "time_tracking",
            "label": "Time tracking",
            "field": "time_tracking",
            "sort": "time_tracking",
            "kind": "text",
            "currency": null,
            "labels": {
              "accountable": "Accountable",
              "not_accountable": "Not accountable"
            }
          }
        ]
      }
    },
    "/repair_order_stages/{uuid}": {
      "get": {
        "operationId": "get_repair_order_stage",
        "summary": "Retrieve a repair order stage",
        "tags": [
          "repair_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_order_stage",
        "summary": "Update a repair order stage",
        "tags": [
          "repair_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderStageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders": {
      "get": {
        "operationId": "list_repair_orders",
        "summary": "List repair orders",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "at_vendor",
                  "received",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
                "x-enum-descriptions": [
                  "Being prepared; nothing has shipped to the repair shop",
                  "Units have shipped to the repair shop",
                  "Every unit has come back from the shop or been settled",
                  "Called off; nothing more goes to the shop"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Shipped to shop",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, at_vendor, received, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "at_vendor",
                "label": "Shipped to shop"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "at_vendor": "Shipped to shop",
              "received": "Received",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_quote_number",
            "label": "Vendor quote number",
            "field": "vendor_quote_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "billing_party",
            "label": "Billing party",
            "field": "billing_party",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "shipper": "Shipper",
              "recipient": "Recipient",
              "third_party": "Third party",
              "collect": "Collect",
              "on_invoice": "On invoice"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_notes",
            "label": "Vendor notes",
            "field": "vendor_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "received_at",
            "label": "Received",
            "field": "received_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "initial_promise_on",
            "label": "Initial promise",
            "field": "initial_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_promise_on",
            "label": "Updated promise",
            "field": "updated_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "promised_on",
            "label": "Promised",
            "field": "promised_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "estimated_total",
            "label": "Estimated total",
            "field": "estimated_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_term",
            "label": "Freight terms",
            "field": "freight_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_account",
            "label": "Freight account",
            "field": "freight_account",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "releasable",
            "label": "Releasable",
            "field": "releasable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "receivable",
            "label": "Receivable",
            "field": "receivable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "partially_received",
            "label": "Partially received",
            "field": "partially_received",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "awaiting_shipment",
            "label": "Awaiting shipment",
            "field": "awaiting_shipment",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "unvouchered_receipts",
            "label": "Unvouchered receipts",
            "field": "unvouchered_receipts",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "drop_ship",
            "label": "Drop ship",
            "field": "drop_ship",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "drop_ship_company",
            "label": "Drop ship company",
            "field": "drop_ship_company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship_email_address",
            "label": "Drop ship email address",
            "field": "drop_ship_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship_customer_mismatched",
            "label": "Drop ship mismatch",
            "field": "drop_ship_customer_mismatched",
            "sort": null,
            "kind": "boolean",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_repair_order",
        "summary": "Create a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_repair_order_by_external_key",
        "summary": "Retrieve a repair order by its external key",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}": {
      "get": {
        "operationId": "get_repair_order",
        "summary": "Retrieve a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_order",
        "summary": "Update a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "lines",
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `lines`, `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_repair_order",
        "summary": "Cancel a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_repair_order",
        "summary": "Create a receipt for a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/email": {
      "post": {
        "operationId": "email_repair_order",
        "summary": "Email a repair order",
        "description": "Emails the order's form as a PDF from the organization's sending address, tied to the order's conversation and narrated `emailed`. Nothing about the order changes: a draft stays a draft until its units ship",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/external_keys": {
      "get": {
        "operationId": "list_repair_order_external_keys",
        "summary": "List a repair order's external keys",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_repair_order_external_key",
        "summary": "Retrieve a repair order by its external key",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_order_external_key",
        "summary": "Link a repair order's external key",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_order_external_key",
        "summary": "Unlink a repair order's external key",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines": {
      "get": {
        "operationId": "list_repair_order_lines",
        "summary": "List repair order lines",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "allocatable_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "allocated",
                  "at_vendor",
                  "estimate_received",
                  "in_repair",
                  "ready_to_receive",
                  "received",
                  "scrapped",
                  "torn_down"
                ],
                "description": "`draft`: No unit reserved for the line yet; `allocated`: A unit is reserved and not yet shipped to the shop; `at_vendor`: The unit has shipped to the repair shop, which owes its estimate; `estimate_received`: The shop's estimate is in and waits on approval; `in_repair`: The estimate is approved and the shop is repairing the unit; `ready_to_receive`: The shop's final cost is in and the unit is due back; `received`: The unit has come back from the shop; `scrapped`: The unit was scrapped rather than repaired; `torn_down`: The unit was torn down for parts instead of repaired",
                "x-enum-descriptions": [
                  "No unit reserved for the line yet",
                  "A unit is reserved and not yet shipped to the shop",
                  "The unit has shipped to the repair shop, which owes its estimate",
                  "The shop's estimate is in and waits on approval",
                  "The estimate is approved and the shop is repairing the unit",
                  "The shop's final cost is in and the unit is due back",
                  "The unit has come back from the shop",
                  "The unit was scrapped rather than repaired",
                  "The unit was torn down for parts instead of repaired"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Allocated",
                  "Shipped to shop",
                  "Estimate received",
                  "In repair",
                  "Ready to receive",
                  "Received",
                  "Scrapped",
                  "Torn down"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purpose[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inventory",
                  "customer_unit",
                  "exchange_core",
                  "calibration",
                  "rejection",
                  "teardown",
                  "work_order_part"
                ],
                "description": "`inventory`: Our own stock, sent out for repair; `customer_unit`: A customer's unit we hold, sent out on its repair sales order line; `exchange_core`: A core a customer returned on an exchange; `calibration`: A tool sent out to be calibrated; `rejection`: A unit quarantined on a rejection, sent out to resolve it; `teardown`: A unit converted into a cost pool, sent out to be taken apart; `work_order_part`: A part a work order took off the customer's unit, sent out for its material and coming back to it",
                "x-enum-descriptions": [
                  "Our own stock, sent out for repair",
                  "A customer's unit we hold, sent out on its repair sales order line",
                  "A core a customer returned on an exchange",
                  "A tool sent out to be calibrated",
                  "A unit quarantined on a rejection, sent out to resolve it",
                  "A unit converted into a cost pool, sent out to be taken apart",
                  "A part a work order took off the customer's unit, sent out for its material and coming back to it"
                ],
                "x-enum-labels": [
                  "Inventory",
                  "Customer unit",
                  "Exchange core",
                  "Calibration",
                  "Rejection",
                  "Teardown",
                  "Work order part"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "owner_company[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a company"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "non_oem_allowance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "oem",
                  "pma",
                  "der",
                  "pma_der"
                ],
                "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                "x-enum-descriptions": [
                  "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                  "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                  "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                  "PMA parts and DER repairs both allowed"
                ],
                "x-enum-labels": [
                  "OEM only",
                  "PMA parts",
                  "DER repairs",
                  "PMA parts and DER repairs"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "coverage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "short",
                  "covered"
                ],
                "description": "`short`: Less supply is allocated than the line needs; `covered`: Enough supply is allocated to fill the line",
                "x-enum-descriptions": [
                  "Less supply is allocated than the line needs",
                  "Enough supply is allocated to fill the line"
                ],
                "x-enum-labels": [
                  "Short",
                  "Covered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "at_vendor",
                  "received",
                  "cancelled"
                ],
                "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
                "x-enum-descriptions": [
                  "Being prepared; nothing has shipped to the repair shop",
                  "Units have shipped to the repair shop",
                  "Every unit has come back from the shop or been settled",
                  "Called off; nothing more goes to the shop"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Shipped to shop",
                  "Received",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received_back",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only lines at the Received stage, every unit back from the shop. A repair summary counts these unless it is sent `false`"
          },
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part_or_none[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a part"
              }
            },
            "description": "The lines naming any of these parts, and those naming no part",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "stage",
            "label": "Stage",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "allocated",
                "label": "Allocated"
              },
              {
                "value": "at_vendor",
                "label": "Shipped to shop"
              },
              {
                "value": "estimate_received",
                "label": "Estimate received"
              },
              {
                "value": "in_repair",
                "label": "In repair"
              },
              {
                "value": "ready_to_receive",
                "label": "Ready to receive"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "scrapped",
                "label": "Scrapped"
              },
              {
                "value": "torn_down",
                "label": "Torn down"
              }
            ]
          },
          {
            "key": "service",
            "label": "Service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "non_oem_allowance",
            "label": "Non-OEM allowed",
            "kind": "options",
            "options": [
              {
                "value": "oem",
                "label": "OEM only"
              },
              {
                "value": "pma",
                "label": "PMA parts"
              },
              {
                "value": "der",
                "label": "DER repairs"
              },
              {
                "value": "pma_der",
                "label": "PMA parts and DER repairs"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_repair_order_line",
        "summary": "Create a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_repair_order_line",
        "summary": "Retrieve a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_order_line",
        "summary": "Update a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_order_line",
        "summary": "Delete a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}/approve_estimate": {
      "post": {
        "operationId": "approve_estimate_repair_order_line",
        "summary": "Approve the estimate on a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineApproveEstimate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "approve_estimate",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}/complete_teardown": {
      "post": {
        "operationId": "complete_teardown_repair_order_line",
        "summary": "Complete the teardown on a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineCompleteTeardown"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "complete_teardown",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}/record_estimate": {
      "post": {
        "operationId": "record_estimate_repair_order_line",
        "summary": "Record the estimate on a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineRecordEstimate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_estimate",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}/record_final_cost": {
      "post": {
        "operationId": "record_final_cost_repair_order_line",
        "summary": "Record the final cost of a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineRecordFinalCost"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_final_cost",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/lines/{uuid}/scrap": {
      "post": {
        "operationId": "scrap_repair_order_line",
        "summary": "Scrap a repair order line",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderLineScrap"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "scrap",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_repair_order",
        "summary": "Preview a repair order's email",
        "description": "Renders the email `POST /repair_orders/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and the order stays as it is",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/requirements": {
      "get": {
        "operationId": "list_repair_order_requirements",
        "summary": "List repair order requirements",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderRequirementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderRequirementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_repair_order_requirement",
        "summary": "Create a repair order requirement",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderRequirementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/requirements/{uuid}": {
      "get": {
        "operationId": "get_repair_order_requirement",
        "summary": "Retrieve a repair order requirement",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_order_requirement",
        "summary": "Delete a repair order requirement",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/requirements/{uuid}/waive": {
      "post": {
        "operationId": "waive_repair_order_requirement",
        "summary": "Waive a repair order requirement",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderRequirementWaive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "waive",
        "x-risk": "destructive",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_repair_order",
        "summary": "Revise the lines of a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/revise_promise": {
      "post": {
        "operationId": "revise_promise_repair_order",
        "summary": "Revise the promise of a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderRevisePromise"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_promise",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{repair_order_uuid}/trash": {
      "post": {
        "operationId": "trash_repair_order",
        "summary": "Trash a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_repair_order",
        "summary": "Restore a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "repair_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_orders/{uuid}/voucher": {
      "post": {
        "operationId": "voucher_repair_order",
        "summary": "Voucher a repair order",
        "tags": [
          "repair_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairOrderVoucher"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The voucher it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "voucher",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_service_answers": {
      "get": {
        "operationId": "list_repair_service_answers",
        "summary": "List repair service answers",
        "tags": [
          "repair_service_answers"
        ],
        "parameters": [
          {
            "name": "marketplace_repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceAnswerListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceAnswerList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_repair_service_answer",
        "summary": "Create a repair service answer",
        "tags": [
          "repair_service_answers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceAnswerCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair service answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_service_answers/{uuid}": {
      "get": {
        "operationId": "get_repair_service_answer",
        "summary": "Retrieve a repair service answer",
        "tags": [
          "repair_service_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceAnswerField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair service answer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceAnswer"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_service_answer",
        "summary": "Delete a repair service answer",
        "tags": [
          "repair_service_answers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_service_listings": {
      "get": {
        "operationId": "list_repair_service_listings",
        "summary": "List repair service listings",
        "tags": [
          "repair_service_listings"
        ],
        "parameters": [
          {
            "name": "marketplace[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A marketplace's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceListingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceListingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_repair_service_listing",
        "summary": "Create a repair service listing",
        "tags": [
          "repair_service_listings"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceListingCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair service listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_service_listings/{uuid}": {
      "get": {
        "operationId": "get_repair_service_listing",
        "summary": "Retrieve a repair service listing",
        "tags": [
          "repair_service_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair service listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_service_listing",
        "summary": "Update a repair service listing",
        "tags": [
          "repair_service_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceListingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceListingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair service listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_service_listing",
        "summary": "Delete a repair service listing",
        "tags": [
          "repair_service_listings"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_services": {
      "get": {
        "operationId": "list_repair_services",
        "summary": "List repair services",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "default_condition",
                "-default_condition",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairServiceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "default_condition",
            "label": "Default condition",
            "field": "default_condition.code",
            "sort": "default_condition",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_repair_service",
        "summary": "Create a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_services/{uuid}": {
      "get": {
        "operationId": "get_repair_service",
        "summary": "Retrieve a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_repair_service",
        "summary": "Update a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_repair_service",
        "summary": "Delete a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_services/{uuid}/activate": {
      "post": {
        "operationId": "activate_repair_service",
        "summary": "Activate a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_services/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_repair_service",
        "summary": "Deactivate a repair service",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/repair_services/{uuid}/map_direct_rfqs": {
      "post": {
        "operationId": "map_direct_rfqs_repair_service",
        "summary": "Set the direct RFQ repair services a repair service answers",
        "tags": [
          "repair_services"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairServiceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RepairServiceMapDirectRfqs"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The repair service",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairService"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "map_direct_rfqs",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/requirements": {
      "get": {
        "operationId": "list_requirements",
        "summary": "List requirements",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "step[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "release",
                  "ship",
                  "receive"
                ],
                "description": "`release`: Before a release is generated from the sales order; `ship`: Before a release from the sales order ships; `receive`: Before a unit received on a purchase or repair order is released into inventory",
                "x-enum-descriptions": [
                  "Before a release is generated from the sales order",
                  "Before a release from the sales order ships",
                  "Before a unit received on a purchase or repair order is released into inventory"
                ],
                "x-enum-labels": [
                  "Release",
                  "Ship",
                  "Receive"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "document",
                  "fact"
                ],
                "description": "`document`: An attachment of one upload category; `fact`: A fact the system checks on the order, its release or the unit received",
                "x-enum-descriptions": [
                  "An attachment of one upload category",
                  "A fact the system checks on the order, its release or the unit received"
                ],
                "x-enum-labels": [
                  "Document",
                  "Fact"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "received_on[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchase_orders",
                  "repair_orders",
                  "both"
                ],
                "description": "`purchase_orders`: Units received on a purchase order; `repair_orders`: Units received back on a repair order; `both`: Units received on a purchase order or a repair order",
                "x-enum-descriptions": [
                  "Units received on a purchase order",
                  "Units received back on a repair order",
                  "Units received on a purchase order or a repair order"
                ],
                "x-enum-labels": [
                  "Purchase orders",
                  "Repair orders",
                  "Purchase and repair orders"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "step",
                "-step",
                "kind",
                "-kind",
                "enforcement",
                "-enforcement",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequirementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "step",
            "label": "Step",
            "kind": "options",
            "options": [
              {
                "value": "release",
                "label": "Release"
              },
              {
                "value": "ship",
                "label": "Ship"
              },
              {
                "value": "receive",
                "label": "Receive"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "document",
                "label": "Document"
              },
              {
                "value": "fact",
                "label": "Fact"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "step",
            "label": "Step",
            "field": "step",
            "sort": "step",
            "kind": "text",
            "currency": null,
            "labels": {
              "release": "Release",
              "ship": "Ship",
              "receive": "Receive"
            }
          },
          {
            "key": "received_on",
            "label": "Received on",
            "field": "received_on",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "purchase_orders": "Purchase orders",
              "repair_orders": "Repair orders",
              "both": "Purchase and repair orders"
            }
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "document": "Document",
              "fact": "Fact"
            }
          },
          {
            "key": "fact",
            "label": "Fact",
            "field": "fact",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customer_po_number": "Customer PO number",
              "release_certificate": "Release certificate",
              "dual_release": "Dual release",
              "shelf_life_left": "Minimum shelf life left",
              "outbound_qc_passed": "Outbound QC passed",
              "picked": "Picked",
              "placed": "Placed"
            }
          },
          {
            "key": "enforcement",
            "label": "Enforcement",
            "field": "enforcement",
            "sort": "enforcement",
            "kind": "text",
            "currency": null,
            "labels": {
              "warn": "Warn",
              "block": "Block"
            }
          },
          {
            "key": "every_order",
            "label": "Every order",
            "field": "every_order",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "instructions",
            "label": "Instructions",
            "field": "instructions",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "upload_category",
            "label": "Category",
            "field": "upload_category.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_requirement",
        "summary": "Create a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequirementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:requirements",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/requirements/{uuid}": {
      "get": {
        "operationId": "get_requirement",
        "summary": "Retrieve a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_requirement",
        "summary": "Update a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequirementUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:requirements",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_requirement",
        "summary": "Delete a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/requirements/{uuid}/activate": {
      "post": {
        "operationId": "activate_requirement",
        "summary": "Activate a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:requirements",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/requirements/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_requirement",
        "summary": "Deactivate a requirement",
        "tags": [
          "requirements"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Requirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:requirements",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/roles": {
      "get": {
        "operationId": "list_roles",
        "summary": "List roles",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "code",
                "-code",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "grants",
            "label": "Grants",
            "field": "grants",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "sales:write": "Sales: write",
              "sales:manage": "Sales: manage",
              "purchasing:write": "Purchasing: write",
              "purchasing:manage": "Purchasing: manage",
              "repairs:write": "Repairs: write",
              "repairs:manage": "Repairs: manage",
              "operations:write": "Operations: write",
              "operations:manage": "Operations: manage",
              "inventory:write": "Inventory: write",
              "inventory:manage": "Inventory: manage",
              "accounting:write": "Accounting: write",
              "accounting:manage": "Accounting: manage",
              "catalog:write": "Catalog: write",
              "catalog:manage": "Catalog: manage",
              "settings:write": "Settings: write",
              "settings:manage": "Settings: manage",
              "sales:release_hold": "Release holds",
              "inventory:adjust": "Adjust stock and cost",
              "repairs:labor": "Key in, correct and remove labor",
              "catalog:approve": "Approve vendors and credit",
              "accounting:approve": "Approve vouchers",
              "accounting:void": "Void and correct",
              "data:import": "Apply imports",
              "data:migrate": "Migrate data",
              "settings:requirements": "Set requirements",
              "settings:checklists": "Set checklists",
              "settings:views": "Give views and dashboards to others",
              "settings:everyones_views": "Manage views given to others",
              "settings:everyones_dashboards": "Manage dashboards given to others"
            }
          },
          {
            "key": "standard",
            "label": "Standard",
            "field": "standard",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "member_count",
            "label": "Members",
            "field": "member_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_role",
        "summary": "Create a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/roles/{uuid}": {
      "get": {
        "operationId": "get_role",
        "summary": "Retrieve a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_role",
        "summary": "Update a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_role",
        "summary": "Delete a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/roles/{uuid}/activate": {
      "post": {
        "operationId": "activate_role",
        "summary": "Activate a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/roles/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_role",
        "summary": "Deactivate a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/roles/{uuid}/reset": {
      "post": {
        "operationId": "reset_role",
        "summary": "Reset a role",
        "tags": [
          "roles"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reset",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_order_lines": {
      "get": {
        "operationId": "list_sales_order_lines_across_documents",
        "summary": "List sales order lines across every document",
        "tags": [
          "sales_order_lines"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "repair",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "linked",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines a catalog part or charge names; `false` for the typed part numbers none does yet"
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "coverage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "short",
                  "covered"
                ],
                "description": "`short`: Less supply is allocated than the line needs; `covered`: Enough supply is allocated to fill the line",
                "x-enum-descriptions": [
                  "Less supply is allocated than the line needs",
                  "Enough supply is allocated to fill the line"
                ],
                "x-enum-labels": [
                  "Short",
                  "Covered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "custody[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "in_custody",
                  "at_repair",
                  "repaired",
                  "returned",
                  "scrapped",
                  "cancelled"
                ],
                "description": "`in_custody`: Not sent out yet: the customer's unit is due in or held with us; `at_repair`: The customer's unit is at the repair shop; `repaired`: Back from the repair shop and not yet shipped to the customer; `returned`: The unit has shipped back to the customer, repaired or unrepaired; `scrapped`: The customer's unit was scrapped at the repair shop; `cancelled`: The repair was called off",
                "x-enum-descriptions": [
                  "Not sent out yet: the customer's unit is due in or held with us",
                  "The customer's unit is at the repair shop",
                  "Back from the repair shop and not yet shipped to the customer",
                  "The unit has shipped back to the customer, repaired or unrepaired",
                  "The customer's unit was scrapped at the repair shop",
                  "The repair was called off"
                ],
                "x-enum-labels": [
                  "In custody",
                  "At repair",
                  "Repaired",
                  "Returned",
                  "Scrapped",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
                "x-enum-descriptions": [
                  "Being shipped and billed, from the moment it is created",
                  "Finished: shipped and billed, or closed early by hand",
                  "Called off; nothing more ships or bills"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "unit_price_cents",
                "-unit_price_cents",
                "need_by",
                "-need_by",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "allocations"
                ]
              }
            },
            "description": "Inline `allocations` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "customer",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "dated",
            "label": "Dated",
            "kind": "range"
          },
          {
            "key": "priced",
            "label": "Priced only",
            "kind": "toggle"
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "Record",
            "field": "sales_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "repair": "Repair",
              "lease": "Lease"
            }
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": "unit_price_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/sales_orders": {
      "get": {
        "operationId": "list_sales_orders",
        "summary": "List sales orders",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "fulfillment[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unshipped",
                  "partially_shipped",
                  "shipped"
                ],
                "description": "`unshipped`: None of the ordered parts have shipped; `partially_shipped`: Some ordered parts have shipped and some remain; `shipped`: Every ordered part has shipped",
                "x-enum-descriptions": [
                  "None of the ordered parts have shipped",
                  "Some ordered parts have shipped and some remain",
                  "Every ordered part has shipped"
                ],
                "x-enum-labels": [
                  "Unshipped",
                  "Partially shipped",
                  "Shipped"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "billing[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unbilled",
                  "partially_billed",
                  "billed"
                ],
                "description": "`unbilled`: None of the shipped parts are on a sent invoice; `partially_billed`: Some shipped parts are on a sent invoice and some are not; `billed`: Every shipped part is on a sent invoice",
                "x-enum-descriptions": [
                  "None of the shipped parts are on a sent invoice",
                  "Some shipped parts are on a sent invoice and some are not",
                  "Every shipped part is on a sent invoice"
                ],
                "x-enum-labels": [
                  "Unbilled",
                  "Partially billed",
                  "Billed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "on_hold",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only orders an active hold is stopping"
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
                "x-enum-descriptions": [
                  "Being shipped and billed, from the moment it is created",
                  "Finished: shipped and billed, or closed early by hand",
                  "Called off; nothing more ships or bills"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "created",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A salesperson's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_po_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Orders on any of these customer PO numbers, matched whole in any case",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "priority",
                "-priority",
                "status",
                "-status",
                "fulfillment_status",
                "-fulfillment_status",
                "billing_status",
                "-billing_status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-priority"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` sorts in its own order, routine, expedite, critical, aog, not the alphabet. `status` sorts in its own order, open, closed, cancelled, not the alphabet. `fulfillment_status` sorts in its own order, unshipped, partially_shipped, shipped, not the alphabet. `billing_status` sorts in its own order, unbilled, partially_billed, billed, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          },
          {
            "key": "fulfillment",
            "label": "Fulfillment",
            "kind": "options",
            "options": [
              {
                "value": "unshipped",
                "label": "Unshipped"
              },
              {
                "value": "partially_shipped",
                "label": "Partially shipped"
              },
              {
                "value": "shipped",
                "label": "Shipped"
              }
            ]
          },
          {
            "key": "billing",
            "label": "Billing",
            "kind": "options",
            "options": [
              {
                "value": "unbilled",
                "label": "Unbilled"
              },
              {
                "value": "partially_billed",
                "label": "Partially billed"
              },
              {
                "value": "billed",
                "label": "Billed"
              }
            ]
          },
          {
            "key": "on_hold",
            "label": "On hold",
            "kind": "toggle"
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "created",
            "label": "Created",
            "kind": "range"
          },
          {
            "key": "include_closed",
            "label": "Include closed & cancelled",
            "kind": "toggle",
            "lifts": {
              "key": "status",
              "values": [
                "open",
                "closed",
                "cancelled"
              ]
            }
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": "priority",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "customer_po_number",
            "label": "Customer PO",
            "field": "customer_po_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "billing_party",
            "label": "Billing party",
            "field": "billing_party",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "shipper": "Shipper",
              "recipient": "Recipient",
              "third_party": "Third party",
              "collect": "Collect",
              "on_invoice": "On invoice"
            }
          },
          {
            "key": "auto_card_fee",
            "label": "Auto card fee",
            "field": "auto_charge_credit_card_fee",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "auto_wire_fee",
            "label": "Auto wire fee",
            "field": "auto_charge_wire_transfer_fee",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_notes",
            "label": "Customer notes",
            "field": "customer_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Subtotal",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home subtotal",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_tax",
            "label": "Home tax",
            "field": "home_tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "grand_total",
            "label": "Total",
            "field": "grand_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "tax_applies",
            "label": "Taxable",
            "field": "tax_applies",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_destination",
            "label": "Tax destination",
            "field": "tax_destination.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tax_suppressed",
            "label": "Tax suppressed",
            "field": "tax_suppressed",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "tax_exemption",
            "label": "Tax exemption",
            "field": "tax_exemption",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fulfillment",
            "label": "Fulfillment",
            "field": "fulfillment_status",
            "sort": "fulfillment_status",
            "kind": "text",
            "currency": null,
            "labels": {
              "unshipped": "Unshipped",
              "partially_shipped": "Partially shipped",
              "shipped": "Shipped"
            }
          },
          {
            "key": "billing",
            "label": "Billing",
            "field": "billing_status",
            "sort": "billing_status",
            "kind": "text",
            "currency": null,
            "labels": {
              "unbilled": "Unbilled",
              "partially_billed": "Partially billed",
              "billed": "Billed"
            }
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "field": "salesperson.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_term",
            "label": "Freight terms",
            "field": "freight_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_account",
            "label": "Freight account",
            "field": "freight_account",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship",
            "label": "Drop ship",
            "field": "drop_ship",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "drop_ship_company",
            "label": "Drop ship company",
            "field": "drop_ship_company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "drop_ship_email_address",
            "label": "Drop ship email address",
            "field": "drop_ship_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_sales_order",
        "summary": "Create a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_sales_order_by_external_key",
        "summary": "Retrieve a sales order by its external key",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/summary": {
      "get": {
        "operationId": "get_sales_order_summary",
        "summary": "Retrieve the sales order summary",
        "description": "The sales order list's rows totaled by named measures, grouped by a dimension, over a period of the days orders were entered; open and closed orders unless `status[]` says otherwise",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "measures[]",
            "in": "query",
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "orders",
                  "valued_orders",
                  "value",
                  "average_value",
                  "revenue_booked",
                  "costed_value",
                  "margin",
                  "margin_rate"
                ],
                "x-enum-descriptions": [
                  "Sales orders",
                  "Orders whose value is counted: those in the home currency, and foreign ones with a rate on file",
                  "The lines' totals before tax, in the home currency at each order's rate; a foreign order with no rate on file is left out",
                  "Order value over orders with a value",
                  "Order value of the orders cut from a quote: what quotes won brought in",
                  "Order value of the units whose cost is known, the value a margin is counted over: a part line's units reserved from inventory or a repair, or on a purchase order once its line is priced; a charge's whole quantity when it carries its own cost",
                  "Price less cost over the units whose cost is known, in the home currency: a part line's reserved units at what each cost, a charge at its own cost; units not yet reserved or on an unpriced purchase order line, and a charge with no cost, are left out",
                  "Margin over the value of the units whose cost is known (a part line's reserved units, a charge's own cost), so each line weighs by its value"
                ],
                "x-enum-labels": [
                  "Orders",
                  "Orders with a value",
                  "Order value",
                  "Average order value",
                  "Revenue booked",
                  "Value of lines with a cost",
                  "Margin",
                  "Margin rate"
                ]
              }
            },
            "description": "The measures to total, each a column of the answer; the first orders a grouped answer",
            "required": true,
            "explode": true
          },
          {
            "name": "group_by",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "status",
                "salesperson",
                "customer",
                "created_on",
                "created_on:day",
                "created_on:week",
                "created_on:month",
                "created_on:quarter",
                "created_on:year"
              ],
              "x-enum-descriptions": [
                "Open, closed or cancelled",
                "Who sold it",
                "Who ordered",
                "When the order was created",
                "When the order was created, by day",
                "When the order was created, by week",
                "When the order was created, by month",
                "When the order was created, by quarter",
                "When the order was created, by year"
              ],
              "x-enum-labels": [
                "Status",
                "Salesperson",
                "Customer",
                "Created",
                "Created, by day",
                "Created, by week",
                "Created, by month",
                "Created, by quarter",
                "Created, by year"
              ]
            },
            "description": "The dimension each row is one value of; a date dimension takes `:day`, `:week` (from Monday), `:month`, `:quarter` or `:year` (`:month` when none is named), in the reader's time zone. Omitted, one row totals everything"
          },
          {
            "name": "period",
            "in": "query",
            "schema": {
              "type": "object",
              "required": [
                "from",
                "to"
              ],
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "The days counted, both included: the `created` filter, which it replaces. It starts in 1900 or later, and grouped by a date it spans at most 1,000 of the grain's buckets",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "compare",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "previous_period",
                "previous_year"
              ]
            },
            "description": "Answer `compared_to` too: the same summary over the period before, or the same days a year before. Needs `period`"
          },
          {
            "name": "top",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "description": "Answer this many groups, in the first measure's order, and fold every other into one last row, `rest` true, labelled \"Everything else\". Takes a `group_by` of open-ended values, not a date or a dimension of set buckets"
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file, `xlsx` or `csv`, amounts in the home currency's units, as an `Accept` naming either does. Omitted, the answer is JSON"
          },
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "fulfillment[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unshipped",
                  "partially_shipped",
                  "shipped"
                ],
                "description": "`unshipped`: None of the ordered parts have shipped; `partially_shipped`: Some ordered parts have shipped and some remain; `shipped`: Every ordered part has shipped",
                "x-enum-descriptions": [
                  "None of the ordered parts have shipped",
                  "Some ordered parts have shipped and some remain",
                  "Every ordered part has shipped"
                ],
                "x-enum-labels": [
                  "Unshipped",
                  "Partially shipped",
                  "Shipped"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "billing[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unbilled",
                  "partially_billed",
                  "billed"
                ],
                "description": "`unbilled`: None of the shipped parts are on a sent invoice; `partially_billed`: Some shipped parts are on a sent invoice and some are not; `billed`: Every shipped part is on a sent invoice",
                "x-enum-descriptions": [
                  "None of the shipped parts are on a sent invoice",
                  "Some shipped parts are on a sent invoice and some are not",
                  "Every shipped part is on a sent invoice"
                ],
                "x-enum-labels": [
                  "Unbilled",
                  "Partially billed",
                  "Billed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "on_hold",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only orders an active hold is stopping"
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
                "x-enum-descriptions": [
                  "Being shipped and billed, from the moment it is created",
                  "Finished: shipped and billed, or closed early by hand",
                  "Called off; nothing more ships or bills"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "created",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A salesperson's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_po_number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Orders on any of these customer PO numbers, matched whole in any case",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order summary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderSummary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}": {
      "get": {
        "operationId": "get_sales_order",
        "summary": "Retrieve a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_sales_order",
        "summary": "Update a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `external_keys`, `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/apply_tax": {
      "post": {
        "operationId": "apply_tax_sales_order",
        "summary": "Apply tax to a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply_tax",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_sales_order",
        "summary": "Cancel a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/close": {
      "post": {
        "operationId": "close_sales_order",
        "summary": "Close a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/copy": {
      "post": {
        "operationId": "copy_sales_order",
        "summary": "Copy a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The sales order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "copy",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_sales_order",
        "summary": "Create a receipt for a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/email": {
      "post": {
        "operationId": "email_sales_order",
        "summary": "Email a sales order's acknowledgement or proforma",
        "description": "Emails the order's acknowledgement, or its proforma invoice where `kind` names it, as a PDF from the organization's sending address, tied to the order's conversation and narrated `emailed`. Nothing about the order changes: no order is marked acknowledged",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/external_keys": {
      "get": {
        "operationId": "list_sales_order_external_keys",
        "summary": "List a sales order's external keys",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_sales_order_external_key",
        "summary": "Retrieve a sales order by its external key",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_sales_order_external_key",
        "summary": "Link a sales order's external key",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_sales_order_external_key",
        "summary": "Unlink a sales order's external key",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/holds": {
      "get": {
        "operationId": "list_sales_order_holds",
        "summary": "List sales order holds",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "active",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only holds still in force, not yet lifted"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderHoldListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderHoldList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_sales_order_hold",
        "summary": "Create a sales order hold",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderHoldCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sales order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/holds/{uuid}": {
      "get": {
        "operationId": "get_sales_order_hold",
        "summary": "Retrieve a sales order hold",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/holds/{uuid}/lift": {
      "post": {
        "operationId": "lift_sales_order_hold",
        "summary": "Lift a sales order hold",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "lift",
        "x-risk": "reversible",
        "x-grant": "sales:release_hold",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/import_lines": {
      "post": {
        "operationId": "import_lines_sales_order",
        "summary": "Import lines into a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderImportLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "import_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines": {
      "get": {
        "operationId": "list_sales_order_lines",
        "summary": "List sales order lines",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange",
                  "repair",
                  "lease"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "linked",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines a catalog part or charge names; `false` for the typed part numbers none does yet"
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "coverage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "short",
                  "covered"
                ],
                "description": "`short`: Less supply is allocated than the line needs; `covered`: Enough supply is allocated to fill the line",
                "x-enum-descriptions": [
                  "Less supply is allocated than the line needs",
                  "Enough supply is allocated to fill the line"
                ],
                "x-enum-labels": [
                  "Short",
                  "Covered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "custody[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "in_custody",
                  "at_repair",
                  "repaired",
                  "returned",
                  "scrapped",
                  "cancelled"
                ],
                "description": "`in_custody`: Not sent out yet: the customer's unit is due in or held with us; `at_repair`: The customer's unit is at the repair shop; `repaired`: Back from the repair shop and not yet shipped to the customer; `returned`: The unit has shipped back to the customer, repaired or unrepaired; `scrapped`: The customer's unit was scrapped at the repair shop; `cancelled`: The repair was called off",
                "x-enum-descriptions": [
                  "Not sent out yet: the customer's unit is due in or held with us",
                  "The customer's unit is at the repair shop",
                  "Back from the repair shop and not yet shipped to the customer",
                  "The unit has shipped back to the customer, repaired or unrepaired",
                  "The customer's unit was scrapped at the repair shop",
                  "The repair was called off"
                ],
                "x-enum-labels": [
                  "In custody",
                  "At repair",
                  "Repaired",
                  "Returned",
                  "Scrapped",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
                "x-enum-descriptions": [
                  "Being shipped and billed, from the moment it is created",
                  "Finished: shipped and billed, or closed early by hand",
                  "Called off; nothing more ships or bills"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourced[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unsourced",
                  "requested"
                ],
                "description": "`unsourced`: No sourcing request stands for what the line still needs; `requested`: A sourcing request is out for what the line still needs",
                "x-enum-descriptions": [
                  "No sourcing request stands for what the line still needs",
                  "A sourcing request is out for what the line still needs"
                ],
                "x-enum-labels": [
                  "Unsourced",
                  "Requested"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "initial_promise_on",
                "-initial_promise_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "allocations"
                ]
              }
            },
            "description": "Inline `allocations` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "lease",
                "label": "Lease"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "coverage",
            "label": "Coverage",
            "kind": "options",
            "options": [
              {
                "value": "short",
                "label": "Short"
              },
              {
                "value": "covered",
                "label": "Covered"
              }
            ]
          },
          {
            "key": "custody",
            "label": "Custody",
            "kind": "options",
            "options": [
              {
                "value": "in_custody",
                "label": "In custody"
              },
              {
                "value": "at_repair",
                "label": "At repair"
              },
              {
                "value": "repaired",
                "label": "Repaired"
              },
              {
                "value": "returned",
                "label": "Returned"
              },
              {
                "value": "scrapped",
                "label": "Scrapped"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number_raw",
            "label": "Part number as given",
            "field": "part_number_raw",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "unit_price",
            "label": "Unit price",
            "field": "unit_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_unit_cost",
            "label": "Unit cost",
            "field": "home_unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "exchange.core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_due_days",
            "label": "Core due days",
            "field": "exchange.core_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "expected_core",
            "label": "Expected core",
            "field": "exchange.expected_core_part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_core_serial",
            "label": "Expected core serial",
            "field": "exchange.expected_core_serial",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_unit",
            "label": "Expected unit",
            "field": "repair.expected_unit_serial",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "core_repair_nte",
            "label": "Repair NTE",
            "field": "exchange.core_repair_nte_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "warranty_days",
            "label": "Our warranty (days)",
            "field": "warranty_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "Notes to customer",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_reference",
            "label": "Customer reference",
            "field": "customer_reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_reference_line",
            "label": "Customer reference line",
            "field": "customer_reference_line",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lease_rate_unit",
            "label": "Rate unit",
            "field": "lease.rate_unit",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "day": "Day",
              "week": "Week",
              "month": "Month"
            }
          },
          {
            "key": "lease_minimum_days",
            "label": "Minimum days",
            "field": "lease.minimum_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_hours",
            "label": "Included hours",
            "field": "lease.included_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_cycles",
            "label": "Included cycles",
            "field": "lease.included_cycles",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_hour_fee",
            "label": "Fee per hour over",
            "field": "lease.hour_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_cycle_fee",
            "label": "Fee per cycle over",
            "field": "lease.cycle_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_outright_price",
            "label": "Outright price",
            "field": "lease.outright_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_due_days",
            "label": "Due back in (days)",
            "field": "lease.due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "staged",
            "label": "Staged",
            "field": "staged",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "shipped",
            "label": "Shipped",
            "field": "shipped",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "received",
            "label": "Received",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_allocated",
            "label": "Quantity allocated",
            "field": "quantity_allocated",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "returnable_quantity",
            "label": "Returnable quantity",
            "field": "quantity_returnable",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange",
              "repair": "Repair",
              "lease": "Lease"
            }
          },
          {
            "key": "exchange_type",
            "label": "Exchange type",
            "field": "exchange.type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "cost_plus": "Cost plus",
              "flat_rate": "Flat rate"
            }
          },
          {
            "key": "core_disposition",
            "label": "Core disposition",
            "field": "exchange.core_disposition",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "overhaul": "Overhaul",
              "serviceable": "Repair to serviceable",
              "as_is": "Receive as-is"
            }
          },
          {
            "key": "return_disposition",
            "label": "Return disposition",
            "field": "exchange.return_disposition",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "return_to_inventory": "Return to inventory",
              "return_to_exchange_vendor": "Return to exchange vendor"
            }
          },
          {
            "key": "line_total",
            "label": "Line total",
            "field": "line_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "tax",
            "label": "Tax",
            "field": "tax_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "on_hand",
            "label": "On hand",
            "field": "part_quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Repair service",
            "field": "repair.service.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "non_oem_allowance",
            "label": "Non-OEM allowed",
            "field": "repair.non_oem_allowance",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "oem": "OEM only",
              "pma": "PMA parts",
              "der": "DER repairs",
              "pma_der": "PMA parts and DER repairs"
            }
          },
          {
            "key": "custody",
            "label": "Custody",
            "field": "repair.custody_status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "in_custody": "In custody",
              "at_repair": "At repair",
              "repaired": "Repaired",
              "returned": "Returned",
              "scrapped": "Scrapped",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "purchase_order",
            "label": "Purchase order",
            "field": "purchase_order_line",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_quote",
            "label": "Customer quote",
            "field": "customer_quote.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sourcing_request",
            "label": "Sourcing request",
            "field": "sourcing_request.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "initial_promise_on",
            "label": "Initial promise",
            "field": "initial_promise_on",
            "sort": "initial_promise_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_promise_on",
            "label": "Updated promise",
            "field": "updated_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "promised_on",
            "label": "Promised",
            "field": "promised_on",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_sales_order_line",
        "summary": "Create a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchases_held",
                  "repairs_held",
                  "allocations"
                ]
              }
            },
            "description": "Inline `purchases_held`, `repairs_held`, or `allocations` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sales order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_sales_order_line",
        "summary": "Retrieve a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchases_held",
                  "repairs_held",
                  "allocations"
                ]
              }
            },
            "description": "Inline `purchases_held`, `repairs_held`, or `allocations` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_sales_order_line",
        "summary": "Update a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchases_held",
                  "repairs_held",
                  "allocations"
                ]
              }
            },
            "description": "Inline `purchases_held`, `repairs_held`, or `allocations` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_sales_order_line",
        "summary": "Delete a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/add_to_repair_order": {
      "post": {
        "operationId": "add_to_repair_order_sales_order_line",
        "summary": "Add a sales order line to a repair order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineAddToRepairOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open repair order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_to_repair_order",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/allocate": {
      "post": {
        "operationId": "allocate_sales_order_line",
        "summary": "Allocate a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchases_held",
                  "repairs_held",
                  "allocations"
                ]
              }
            },
            "description": "Inline `purchases_held`, `repairs_held`, or `allocations` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineAllocate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "allocate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/ask": {
      "post": {
        "operationId": "ask_sales_order_line",
        "summary": "Ask a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineAsk"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sourcing request it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The line's open sourcing request, asked on again",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ask",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/order": {
      "post": {
        "operationId": "order_sales_order_line",
        "summary": "Order a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open purchase order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "order",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/return_to_customer": {
      "post": {
        "operationId": "return_to_customer_sales_order_line",
        "summary": "Return a sales order line to the customer",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "certificate_forms",
                  "shipping_blocks",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `certificate_forms`, `shipping_blocks`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReleaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderLineReturnToCustomer"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The release it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Release"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return_to_customer",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/lines/{uuid}/split": {
      "post": {
        "operationId": "split_sales_order_line",
        "summary": "Split a sales order line",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchases_held",
                  "repairs_held",
                  "allocations"
                ]
              }
            },
            "description": "Inline `purchases_held`, `repairs_held`, or `allocations` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderLineField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "split",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_sales_order",
        "summary": "Preview a sales order's email",
        "description": "Renders the email `POST /sales_orders/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and the order stays as it is",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/requirements": {
      "get": {
        "operationId": "list_sales_order_requirements",
        "summary": "List sales order requirements",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderRequirementListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderRequirementList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_sales_order_requirement",
        "summary": "Create a sales order requirement",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderRequirementCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sales order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/requirements/{uuid}": {
      "get": {
        "operationId": "get_sales_order_requirement",
        "summary": "Retrieve a sales order requirement",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_sales_order_requirement",
        "summary": "Delete a sales order requirement",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/requirements/{uuid}/waive": {
      "post": {
        "operationId": "waive_sales_order_requirement",
        "summary": "Waive a sales order requirement",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requirement"
                ]
              }
            },
            "description": "Inline `requirement` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderRequirementField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderRequirementWaive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order requirement",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrderRequirement"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "waive",
        "x-risk": "destructive",
        "x-grant": [
          "sales:write",
          "operations:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/resolve_part_numbers": {
      "post": {
        "operationId": "resolve_part_numbers_sales_order",
        "summary": "Resolve the part numbers on a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderResolvePartNumbers"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resolve_part_numbers",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/return": {
      "post": {
        "operationId": "return_sales_order",
        "summary": "Return a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "returnable_inventory_lines",
                  "exchange_lines"
                ]
              }
            },
            "description": "Inline `returnable_inventory_lines` or `exchange_lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderReturn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The customer return it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_sales_order",
        "summary": "Revise the lines of a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesOrderReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/shareable_files": {
      "get": {
        "operationId": "list_sales_order_shareable_files",
        "summary": "List shareable files",
        "description": "The files a sales order offers to share, grouped as the people it is shared with read them: its printed forms, its own files, then each unit on its lines, shipped or still to ship",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareableFileListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareableFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{uuid}/suppress_tax": {
      "post": {
        "operationId": "suppress_tax_sales_order",
        "summary": "Suppress tax on a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "suppress_tax",
        "x-risk": "reversible",
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_orders/{sales_order_uuid}/trash": {
      "post": {
        "operationId": "trash_sales_order",
        "summary": "Trash a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_sales_order",
        "summary": "Restore a sales order",
        "tags": [
          "sales_orders"
        ],
        "parameters": [
          {
            "name": "sales_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "email_drafts",
                  "email_senders",
                  "fulfillment_rollup",
                  "overview_counts",
                  "billing_rollup",
                  "progress",
                  "returnable_release_lines",
                  "unlinked_part_numbers",
                  "lines",
                  "lines.allocations",
                  "holds",
                  "requirements"
                ]
              }
            },
            "description": "Inline `email_drafts`, `email_senders`, `fulfillment_rollup`, `overview_counts`, `billing_rollup`, `progress`, `returnable_release_lines`, `unlinked_part_numbers`, `lines`, `lines.allocations`, `holds`, or `requirements` on the record; a dotted path reaches into an expansion",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The sales order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sales_reports/channels": {
      "get": {
        "operationId": "list_sales_report_channels",
        "summary": "List channel tallies",
        "tags": [
          "sales_reports"
        ],
        "parameters": [
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a salesperson"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ChannelTallyListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file: `xlsx`, a spreadsheet, or `csv`, under the columns' labels, as an `Accept` naming either does; each download is listed under `/exports` as `downloaded`. Omitted, the answer is JSON"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelTallyList"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              },
              {
                "value": "ils",
                "label": "ILS"
              },
              {
                "value": "partsbase",
                "label": "PartsBase"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Channel",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requests",
            "label": "Requests",
            "field": "requests",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted",
            "label": "Quoted",
            "field": "quoted",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "no_quote",
            "label": "No quote",
            "field": "no_quote",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sent",
            "label": "Sent",
            "field": "sent",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "won",
            "label": "Won",
            "field": "won",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lost",
            "label": "Lost",
            "field": "lost",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "open",
            "label": "Open",
            "field": "open",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "win_rate",
            "label": "Win rate",
            "field": "win_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      }
    },
    "/sales_reports/parts": {
      "get": {
        "operationId": "list_sales_report_parts",
        "summary": "List part tallies",
        "description": "Parts by how often they were asked for, or answered No quote",
        "tags": [
          "sales_reports"
        ],
        "parameters": [
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a salesperson"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "requested",
                  "no_quoted"
                ]
              }
            },
            "description": "Which parts: `requested`, every part asked for, most requested first, or `no_quoted`, every part answered No quote, most often first; required, one",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "requests",
                "-requests",
                "quantity_requested",
                "-quantity_requested",
                "no_quotes",
                "-no_quotes",
                "part_number",
                "-part_number"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Unsorted, the parts list most requested, or most often No-quoted, first. Parts equal under a count follow by part number, ascending either way, then by the catalog part's uuid, or the typed part number for a part not in the catalog; under `part_number`, parts sharing a number follow by that uuid or typed number in its direction."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PartTallyListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file: `xlsx`, a spreadsheet, or `csv`, under the columns' labels, as an `Accept` naming either does; each download is listed under `/exports` as `downloaded`. Omitted, the answer is JSON"
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartTallyList"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              },
              {
                "value": "ils",
                "label": "ILS"
              },
              {
                "value": "partsbase",
                "label": "PartsBase"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requests",
            "label": "Requests",
            "field": "requests",
            "sort": "requests",
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_requested",
            "label": "Quantity requested",
            "field": "quantity_requested",
            "sort": "quantity_requested",
            "kind": "number",
            "currency": null
          },
          {
            "key": "no_quotes",
            "label": "No quotes",
            "field": "no_quotes",
            "sort": "no_quotes",
            "kind": "number",
            "currency": null
          },
          {
            "key": "no_quote_reason",
            "label": "Usual no-quote reason",
            "field": "no_quote_reason.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/sales_reports/response_times": {
      "get": {
        "operationId": "list_sales_report_response_times",
        "summary": "List quote response times",
        "description": "Requests by how long they took from arriving to the quote's first send",
        "tags": [
          "sales_reports"
        ],
        "parameters": [
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a salesperson"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuoteResponseTimeListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file: `xlsx`, a spreadsheet, or `csv`, under the columns' labels, as an `Accept` naming either does; each download is listed under `/exports` as `downloaded`. Omitted, the answer is JSON"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteResponseTimeList"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              },
              {
                "value": "ils",
                "label": "ILS"
              },
              {
                "value": "partsbase",
                "label": "PartsBase"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Response time",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requests",
            "label": "Requests",
            "field": "requests",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted",
            "label": "Quoted",
            "field": "quoted",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "no_quote",
            "label": "No quote",
            "field": "no_quote",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sent",
            "label": "Sent",
            "field": "sent",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "won",
            "label": "Won",
            "field": "won",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lost",
            "label": "Lost",
            "field": "lost",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "open",
            "label": "Open",
            "field": "open",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "win_rate",
            "label": "Win rate",
            "field": "win_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      }
    },
    "/sales_reports/salespeople": {
      "get": {
        "operationId": "list_sales_report_salespeople",
        "summary": "List salesperson tallies",
        "description": "Requests by the salesperson holding them",
        "tags": [
          "sales_reports"
        ],
        "parameters": [
          {
            "name": "received",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "channel[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "manual",
                  "email",
                  "phone",
                  "chat",
                  "ils",
                  "partsbase",
                  "marketplace"
                ],
                "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
                "x-enum-descriptions": [
                  "Entered by hand, with no inbound request behind it",
                  "The customer's request came in by email",
                  "The customer asked on a phone call, logged as a message",
                  "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                  "The request came through ILS, the Inventory Locator Service",
                  "The request came through PartsBase",
                  "The request came through another parts marketplace"
                ],
                "x-enum-labels": [
                  "Manual",
                  "Email",
                  "Phone",
                  "Chat",
                  "ILS",
                  "PartsBase",
                  "Marketplace"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "salesperson[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a salesperson"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonTallyListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "format",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "xlsx",
                "csv"
              ]
            },
            "description": "Download the rows as a file: `xlsx`, a spreadsheet, or `csv`, under the columns' labels, as an `Accept` naming either does; each download is listed under `/exports` as `downloaded`. Omitted, the answer is JSON"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalespersonTallyList"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "summary_timed_out",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "received",
            "label": "Received",
            "kind": "range"
          },
          {
            "key": "channel",
            "label": "Channel",
            "kind": "options",
            "options": [
              {
                "value": "manual",
                "label": "Manual"
              },
              {
                "value": "email",
                "label": "Email"
              },
              {
                "value": "phone",
                "label": "Phone"
              },
              {
                "value": "chat",
                "label": "Chat"
              },
              {
                "value": "ils",
                "label": "ILS"
              },
              {
                "value": "partsbase",
                "label": "PartsBase"
              },
              {
                "value": "marketplace",
                "label": "Marketplace"
              }
            ]
          },
          {
            "key": "salesperson",
            "label": "Salesperson",
            "kind": "options",
            "references": [
              "salesperson"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "label",
            "label": "Salesperson",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "requests",
            "label": "Requests",
            "field": "requests",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted",
            "label": "Quoted",
            "field": "quoted",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "no_quote",
            "label": "No quote",
            "field": "no_quote",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sent",
            "label": "Sent",
            "field": "sent",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "won",
            "label": "Won",
            "field": "won",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lost",
            "label": "Lost",
            "field": "lost",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "open",
            "label": "Open",
            "field": "open",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "win_rate",
            "label": "Win rate",
            "field": "win_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "average_response_hours",
            "label": "Average response (hours)",
            "field": "average_response_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      }
    },
    "/salesforce_integration": {
      "get": {
        "operationId": "get_salesforce_integration",
        "summary": "Retrieve the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight": {
      "get": {
        "operationId": "get_avsight_integration",
        "summary": "Retrieve the AvSight integration",
        "description": "AvSight, where the connected Salesforce org runs it: its version, whether CorePilot reads it, and what the org lacks of what a pull reads",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_avsight_integration",
        "summary": "Update the AvSight integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvsightIntegrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The AvSight integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/activate": {
      "post": {
        "operationId": "activate_avsight_integration",
        "summary": "Activate the AvSight integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/check": {
      "post": {
        "operationId": "check_avsight_integration",
        "summary": "Check AvSight's objects and fields",
        "description": "Reads the connected org's AvSight objects and fields again and records any a pull needs that are missing. It reads no records and writes nothing into CorePilot; checking the records is `check_records`. One that finds every field a pull requires while the connection's check refuses every pull asks that check again, so the pull can run once it passes",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "AvSight, as the org describes it now",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "check",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/check_records": {
      "post": {
        "operationId": "check_records_avsight_integration",
        "summary": "Check AvSight's records",
        "description": "Queues a pull of the org, whose end checks every AvSight record the connection has landed; while the connection is paused at its budget or the org's ceiling, the check runs at once on what has landed. Each record is judged ready to apply, waiting, a problem to fix in AvSight or failed, and the values they carry are gathered for mapping. Before the migration's first apply it writes nothing into CorePilot; while AvSight is the system of record and applying has started, the check also applies every record it finds ready. `records_checked_at` moves when it has run",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "AvSight, as the check was queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "check_records",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "avsight_connection",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/deactivate": {
      "post": {
        "operationId": "deactivate_avsight_integration",
        "summary": "Deactivate the AvSight integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/migration": {
      "get": {
        "operationId": "get_avsight_migration",
        "summary": "Retrieve the AvSight migration",
        "description": "AvSight's migration into CorePilot: whether its ready records are being applied, and whether CorePilot has taken charge of them",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "counts",
                  "push_counts"
                ]
              }
            },
            "description": "Inline `counts` or `push_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightMigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight migration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightMigration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_avsight_migration",
        "summary": "Update the AvSight migration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "counts",
                  "push_counts"
                ]
              }
            },
            "description": "Inline `counts` or `push_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightMigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvsightMigrationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The AvSight migration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightMigration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/migration/apply": {
      "post": {
        "operationId": "apply_avsight_migration",
        "summary": "Apply AvSight's ready records into CorePilot",
        "description": "Queues a check that writes every ready AvSight record into CorePilot, making, linking or updating its record. From then on each pull writes what its check finds ready, until CorePilot is made the system of record in AvSight's place",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "counts",
                  "push_counts"
                ]
              }
            },
            "description": "Inline `counts` or `push_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightMigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The migration, as the apply was queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightMigration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-module": "avsight_connection",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/migration/files": {
      "get": {
        "operationId": "list_avsight_migration_files",
        "summary": "List AvSight migration files",
        "description": "Each file AvSight files on a record and hasn't attached there yet, and how its copy into CorePilot stands: still arriving, copied as an upload, or kept in AvSight and why",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type. Without it the list needs the `data:import` grant, and is refused 403",
            "explode": true
          },
          {
            "name": "include_placed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Include the files already attached to the record they're filed on, which its attachments list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightMigrationFileListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightMigrationFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/migration/finish": {
      "post": {
        "operationId": "finish_avsight_migration",
        "summary": "Finish AvSight's initial load",
        "description": "Ends the initial load and nothing else: AvSight stays the system of record, each pull is still checked and applied, and QuickBooks is left alone. It starts from a fresh pull: it queues one and finishes once that pull and its check end (`finish_asked_at`), unless Salesforce is disconnected, the API budget or the org's ceiling holds every pull back, or the module has lapsed, when it finishes at once from what has landed. A Finish refused once its pull lands is dropped and narrated (`finish_refused`). Making CorePilot the system of record is AvSight's own verb, switch_system_of_record, once this is done. Refused once the initial load is finished, while a Finish waits on its pull, while any record from AvSight is a problem, failed to apply or is still waiting, and while AvSight's lease module holds lease lines",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "counts",
                  "push_counts"
                ]
              }
            },
            "description": "Inline `counts` or `push_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightMigrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The migration, its initial load finished or waiting on its pull",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightMigration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "finish",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/missing_fields": {
      "get": {
        "operationId": "list_avsight_integration_missing_fields",
        "summary": "List AvSight integration missing fields",
        "description": "What the connected Salesforce org lacks of the objects and fields AvSight's pull reads, as its last check found it",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationMissingFieldListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationMissingFieldList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/pushes": {
      "get": {
        "operationId": "list_avsight_integration_pushes",
        "summary": "List AvSight integration pushes",
        "description": "Each record CorePilot pushes back to AvSight, by its last push: what AvSight took, refused, or what CorePilot held back or left unsent, and why",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pushed",
                  "refused",
                  "failed",
                  "unsent"
                ],
                "description": "`pushed`: AvSight took its last change; `refused`: AvSight refused its change; `failed`: Held back: AvSight's Run As user can't change a field, so it is tried again every run; `unsent`: Left in CorePilot: a change with no single AvSight value to send, or a sent quote CorePilot kept back, its message saying why",
                "x-enum-descriptions": [
                  "AvSight took its last change",
                  "AvSight refused its change",
                  "Held back: AvSight's Run As user can't change a field, so it is tried again every run",
                  "Left in CorePilot: a change with no single AvSight value to send, or a sent quote CorePilot kept back, its message saying why"
                ],
                "x-enum-labels": [
                  "Pushed",
                  "Refused",
                  "Held back",
                  "Unsent"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "company",
                  "contact",
                  "customer_quote",
                  "customer_quote_line",
                  "sales_order",
                  "sales_order_line",
                  "purchase_order",
                  "purchase_order_line",
                  "repair_order",
                  "repair_order_line"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_pushed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Include the records whose last push AvSight took"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "attempted_at",
                "-attempted_at",
                "pushed_at",
                "-pushed_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-attempted_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationPushListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationPushList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pushed",
                "label": "Pushed"
              },
              {
                "value": "refused",
                "label": "Refused"
              },
              {
                "value": "failed",
                "label": "Held back"
              },
              {
                "value": "unsent",
                "label": "Unsent"
              }
            ]
          },
          {
            "key": "include_pushed",
            "label": "Include pushed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "CorePilot record",
            "field": "record",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "mapping",
            "label": "Kind",
            "field": "mapping",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "part": "Part",
              "company": "Company",
              "contact": "Contact",
              "customer_quote": "Customer quote",
              "customer_quote_line": "Customer quote line",
              "sales_order": "Sales order",
              "sales_order_line": "Sales order line",
              "purchase_order": "Purchase order",
              "purchase_order_line": "Purchase order line",
              "repair_order": "Repair order",
              "repair_order_line": "Repair order line"
            }
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pushed": "Pushed",
              "refused": "Refused",
              "failed": "Held back",
              "unsent": "Unsent"
            }
          },
          {
            "key": "message",
            "label": "Why",
            "field": "message",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fields",
            "label": "AvSight fields",
            "field": "fields",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "key",
            "label": "AvSight Id",
            "field": "key",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "attempted_at",
            "label": "Last tried",
            "field": "attempted_at",
            "sort": "attempted_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "pushed_at",
            "label": "Last pushed",
            "field": "pushed_at",
            "sort": "pushed_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/salesforce_integration/avsight/records": {
      "get": {
        "operationId": "list_avsight_integration_records",
        "summary": "List AvSight integration records",
        "description": "Each landed AvSight record in the migration into CorePilot: how its last check judged it, why it is held, and what applying it made of it",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ready",
                  "applied",
                  "waiting",
                  "problem",
                  "failed",
                  "skipped",
                  "removed"
                ],
                "description": "`ready`: Ready to apply; `applied`: Written into CorePilot by an apply, as its last check judged it; `waiting`: Waiting on the next check, for a record it names or because it was unskipped; `problem`: Held until it is fixed in AvSight; `failed`: CorePilot couldn't write it; `skipped`: Someone held it out of the migration; `removed`: Removed in AvSight since a check judged it, whatever it stood at",
                "x-enum-descriptions": [
                  "Ready to apply",
                  "Written into CorePilot by an apply, as its last check judged it",
                  "Waiting on the next check, for a record it names or because it was unskipped",
                  "Held until it is fixed in AvSight",
                  "CorePilot couldn't write it",
                  "Someone held it out of the migration",
                  "Removed in AvSight since a check judged it, whatever it stood at"
                ],
                "x-enum-labels": [
                  "Ready",
                  "Applied",
                  "Waiting",
                  "Problem",
                  "Failed",
                  "Skipped",
                  "Removed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "company",
                  "company_address",
                  "contact",
                  "facility",
                  "warehouse",
                  "alternate",
                  "customer_part_price",
                  "vendor_part_price",
                  "vendor_repair_price",
                  "inventory_code",
                  "bin",
                  "inventory_line",
                  "vendor_inventory_line",
                  "customer_quote",
                  "customer_quote_line",
                  "vendor_rfq",
                  "vendor_rfq_line",
                  "sales_order",
                  "sales_order_line",
                  "allocation",
                  "purchase_order",
                  "purchase_order_line",
                  "repair_order",
                  "repair_order_line",
                  "issued_part",
                  "release",
                  "release_line",
                  "invoice",
                  "invoice_line",
                  "customer_payment",
                  "customer_return",
                  "customer_return_line",
                  "customer_exchange",
                  "manifest",
                  "manifest_line",
                  "ledger_default",
                  "voucher_line",
                  "calendar_event",
                  "inventory_entry",
                  "event"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A record's uuid"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "mapping[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "company",
                  "account_ship_address",
                  "contact",
                  "company_location",
                  "warehouse",
                  "alternate",
                  "price",
                  "customer_contract_price",
                  "vendor_contract_price",
                  "repair_contract_price",
                  "owner_code",
                  "inventory_location",
                  "inventory_line",
                  "secondary_inventory",
                  "customer_quote",
                  "customer_quote_line",
                  "vendor_rfq",
                  "vendor_rfq_line",
                  "sales_order",
                  "sales_order_line",
                  "allocation",
                  "purchase_order",
                  "purchase_order_line",
                  "repair_order",
                  "repair_order_line",
                  "ro_issue",
                  "release",
                  "release_line",
                  "invoice",
                  "invoice_line",
                  "deposit",
                  "rma",
                  "rma_line",
                  "customer_exchange_summary",
                  "manifest",
                  "manifest_line",
                  "company_default_gl_accounts",
                  "payment_voucher",
                  "event",
                  "owner_code_adjustment",
                  "transaction_activity",
                  "part_history",
                  "company_history",
                  "account_ship_address_history",
                  "contact_history",
                  "company_location_history",
                  "warehouse_history",
                  "alternate_history",
                  "price_history",
                  "customer_contract_price_history",
                  "vendor_contract_price_history",
                  "repair_contract_price_history",
                  "owner_code_history",
                  "inventory_location_history",
                  "inventory_line_history",
                  "secondary_inventory_history",
                  "customer_quote_history",
                  "customer_quote_line_history",
                  "vendor_rfq_history",
                  "vendor_rfq_line_history",
                  "sales_order_history",
                  "sales_order_line_history",
                  "allocation_history",
                  "purchase_order_history",
                  "purchase_order_line_history",
                  "repair_order_history",
                  "repair_order_line_history",
                  "ro_issue_history",
                  "release_history",
                  "release_line_history",
                  "invoice_history",
                  "invoice_line_history",
                  "rma_history",
                  "rma_line_history",
                  "customer_exchange_summary_history",
                  "manifest_history",
                  "manifest_line_history",
                  "payment_voucher_history",
                  "receipt_history"
                ],
                "description": "`part`: AvSight's part records, brought over as parts; `company`: AvSight's company records, brought over as companies; `account_ship_address`: AvSight's account ship address records, brought over as company addresses; `contact`: AvSight's contact records, brought over as contacts; `company_location`: AvSight's company location records, brought over as facilities; `warehouse`: AvSight's warehouse records, brought over as warehouses; `alternate`: AvSight's alternate records, brought over as alternates; `price`: AvSight's price records, brought over as part prices; `customer_contract_price`: AvSight's customer contract price records, brought over as part prices; `vendor_contract_price`: AvSight's vendor contract price records, brought over as vendor part prices; `repair_contract_price`: AvSight's repair contract price records, brought over as vendor repair prices; `owner_code`: AvSight's owner code records, brought over as inventory codes; `inventory_location`: AvSight's inventory location records, brought over as bins; `inventory_line`: AvSight's inventory line records, brought over as inventory lines; `secondary_inventory`: AvSight's vendor inventory line records, brought over as vendor inventory lines; `customer_quote`: AvSight's customer quote records, brought over as customer quotes; `customer_quote_line`: AvSight's customer quote line records, brought over as customer quote lines; `vendor_rfq`: AvSight's vendor RFQ records, brought over as vendor RFQs; `vendor_rfq_line`: AvSight's vendor RFQ line records, brought over as vendor RFQ lines; `sales_order`: AvSight's sales order records, brought over as sales orders; `sales_order_line`: AvSight's sales order line records, brought over as sales order lines; `allocation`: AvSight's allocation records, brought over as allocations; `purchase_order`: AvSight's purchase order records, brought over as purchase orders; `purchase_order_line`: AvSight's purchase order line records, brought over as purchase order lines; `repair_order`: AvSight's repair order records, brought over as repair orders; `repair_order_line`: AvSight's repair order line records, brought over as repair order lines; `ro_issue`: AvSight's RO issue records, brought over as repair order issues; `release`: AvSight's release records, brought over as releases; `release_line`: AvSight's release line records, brought over as release lines; `invoice`: AvSight's invoice records, brought over as invoices; `invoice_line`: AvSight's invoice line records, brought over as invoice lines; `deposit`: AvSight's deposit records, brought over as customer payments; `rma`: AvSight's RMA records, brought over as customer returns; `rma_line`: AvSight's RMA line records, brought over as customer return lines; `customer_exchange_summary`: AvSight's customer exchange records, brought over as customer exchanges; `manifest`: AvSight's manifest records, brought over as manifests; `manifest_line`: AvSight's manifest line records, brought over as manifest lines; `company_default_gl_accounts`: AvSight's company default GL accounts records, brought over as GL defaults; `payment_voucher`: AvSight's payment voucher records, brought over as voucher lines; `event`: AvSight's calendar event records, brought over as calendar events; `owner_code_adjustment`: AvSight's owner code adjustment records, brought over as inventory entries; `transaction_activity`: AvSight's transaction activity records, brought over as posting history; `part_history`: AvSight's part history records, brought over as field history; `company_history`: AvSight's company history records, brought over as field history; `account_ship_address_history`: AvSight's account ship address history records, brought over as field history; `contact_history`: AvSight's contact history records, brought over as field history; `company_location_history`: AvSight's company location history records, brought over as field history; `warehouse_history`: AvSight's warehouse history records, brought over as field history; `alternate_history`: AvSight's alternate history records, brought over as field history; `price_history`: AvSight's price history records, brought over as field history; `customer_contract_price_history`: AvSight's customer contract price history records, brought over as field history; `vendor_contract_price_history`: AvSight's vendor contract price history records, brought over as field history; `repair_contract_price_history`: AvSight's repair contract price history records, brought over as field history; `owner_code_history`: AvSight's owner code history records, brought over as field history; `inventory_location_history`: AvSight's inventory location history records, brought over as field history; `inventory_line_history`: AvSight's inventory line history records, brought over as field history; `secondary_inventory_history`: AvSight's vendor inventory line history records, brought over as field history; `customer_quote_history`: AvSight's customer quote history records, brought over as field history; `customer_quote_line_history`: AvSight's customer quote line history records, brought over as field history; `vendor_rfq_history`: AvSight's vendor RFQ history records, brought over as field history; `vendor_rfq_line_history`: AvSight's vendor RFQ line history records, brought over as field history; `sales_order_history`: AvSight's sales order history records, brought over as field history; `sales_order_line_history`: AvSight's sales order line history records, brought over as field history; `allocation_history`: AvSight's allocation history records, brought over as field history; `purchase_order_history`: AvSight's purchase order history records, brought over as field history; `purchase_order_line_history`: AvSight's purchase order line history records, brought over as field history; `repair_order_history`: AvSight's repair order history records, brought over as field history; `repair_order_line_history`: AvSight's repair order line history records, brought over as field history; `ro_issue_history`: AvSight's RO issue history records, brought over as field history; `release_history`: AvSight's release history records, brought over as field history; `release_line_history`: AvSight's release line history records, brought over as field history; `invoice_history`: AvSight's invoice history records, brought over as field history; `invoice_line_history`: AvSight's invoice line history records, brought over as field history; `rma_history`: AvSight's RMA history records, brought over as field history; `rma_line_history`: AvSight's RMA line history records, brought over as field history; `customer_exchange_summary_history`: AvSight's customer exchange history records, brought over as field history; `manifest_history`: AvSight's manifest history records, brought over as field history; `manifest_line_history`: AvSight's manifest line history records, brought over as field history; `payment_voucher_history`: AvSight's payment voucher history records, brought over as field history; `receipt_history`: AvSight's receipt history records, brought over as field history",
                "x-enum-descriptions": [
                  "AvSight's part records, brought over as parts",
                  "AvSight's company records, brought over as companies",
                  "AvSight's account ship address records, brought over as company addresses",
                  "AvSight's contact records, brought over as contacts",
                  "AvSight's company location records, brought over as facilities",
                  "AvSight's warehouse records, brought over as warehouses",
                  "AvSight's alternate records, brought over as alternates",
                  "AvSight's price records, brought over as part prices",
                  "AvSight's customer contract price records, brought over as part prices",
                  "AvSight's vendor contract price records, brought over as vendor part prices",
                  "AvSight's repair contract price records, brought over as vendor repair prices",
                  "AvSight's owner code records, brought over as inventory codes",
                  "AvSight's inventory location records, brought over as bins",
                  "AvSight's inventory line records, brought over as inventory lines",
                  "AvSight's vendor inventory line records, brought over as vendor inventory lines",
                  "AvSight's customer quote records, brought over as customer quotes",
                  "AvSight's customer quote line records, brought over as customer quote lines",
                  "AvSight's vendor RFQ records, brought over as vendor RFQs",
                  "AvSight's vendor RFQ line records, brought over as vendor RFQ lines",
                  "AvSight's sales order records, brought over as sales orders",
                  "AvSight's sales order line records, brought over as sales order lines",
                  "AvSight's allocation records, brought over as allocations",
                  "AvSight's purchase order records, brought over as purchase orders",
                  "AvSight's purchase order line records, brought over as purchase order lines",
                  "AvSight's repair order records, brought over as repair orders",
                  "AvSight's repair order line records, brought over as repair order lines",
                  "AvSight's RO issue records, brought over as repair order issues",
                  "AvSight's release records, brought over as releases",
                  "AvSight's release line records, brought over as release lines",
                  "AvSight's invoice records, brought over as invoices",
                  "AvSight's invoice line records, brought over as invoice lines",
                  "AvSight's deposit records, brought over as customer payments",
                  "AvSight's RMA records, brought over as customer returns",
                  "AvSight's RMA line records, brought over as customer return lines",
                  "AvSight's customer exchange records, brought over as customer exchanges",
                  "AvSight's manifest records, brought over as manifests",
                  "AvSight's manifest line records, brought over as manifest lines",
                  "AvSight's company default GL accounts records, brought over as GL defaults",
                  "AvSight's payment voucher records, brought over as voucher lines",
                  "AvSight's calendar event records, brought over as calendar events",
                  "AvSight's owner code adjustment records, brought over as inventory entries",
                  "AvSight's transaction activity records, brought over as posting history",
                  "AvSight's part history records, brought over as field history",
                  "AvSight's company history records, brought over as field history",
                  "AvSight's account ship address history records, brought over as field history",
                  "AvSight's contact history records, brought over as field history",
                  "AvSight's company location history records, brought over as field history",
                  "AvSight's warehouse history records, brought over as field history",
                  "AvSight's alternate history records, brought over as field history",
                  "AvSight's price history records, brought over as field history",
                  "AvSight's customer contract price history records, brought over as field history",
                  "AvSight's vendor contract price history records, brought over as field history",
                  "AvSight's repair contract price history records, brought over as field history",
                  "AvSight's owner code history records, brought over as field history",
                  "AvSight's inventory location history records, brought over as field history",
                  "AvSight's inventory line history records, brought over as field history",
                  "AvSight's vendor inventory line history records, brought over as field history",
                  "AvSight's customer quote history records, brought over as field history",
                  "AvSight's customer quote line history records, brought over as field history",
                  "AvSight's vendor RFQ history records, brought over as field history",
                  "AvSight's vendor RFQ line history records, brought over as field history",
                  "AvSight's sales order history records, brought over as field history",
                  "AvSight's sales order line history records, brought over as field history",
                  "AvSight's allocation history records, brought over as field history",
                  "AvSight's purchase order history records, brought over as field history",
                  "AvSight's purchase order line history records, brought over as field history",
                  "AvSight's repair order history records, brought over as field history",
                  "AvSight's repair order line history records, brought over as field history",
                  "AvSight's RO issue history records, brought over as field history",
                  "AvSight's release history records, brought over as field history",
                  "AvSight's release line history records, brought over as field history",
                  "AvSight's invoice history records, brought over as field history",
                  "AvSight's invoice line history records, brought over as field history",
                  "AvSight's RMA history records, brought over as field history",
                  "AvSight's RMA line history records, brought over as field history",
                  "AvSight's customer exchange history records, brought over as field history",
                  "AvSight's manifest history records, brought over as field history",
                  "AvSight's manifest line history records, brought over as field history",
                  "AvSight's payment voucher history records, brought over as field history",
                  "AvSight's receipt history records, brought over as field history"
                ],
                "x-enum-labels": [
                  "Part",
                  "Company",
                  "Account ship address",
                  "Contact",
                  "Company location",
                  "Warehouse",
                  "Alternate",
                  "Price",
                  "Customer contract price",
                  "Vendor contract price",
                  "Repair contract price",
                  "Owner code",
                  "Inventory location",
                  "Inventory line",
                  "Vendor inventory line",
                  "Customer quote",
                  "Customer quote line",
                  "Vendor RFQ",
                  "Vendor RFQ line",
                  "Sales order",
                  "Sales order line",
                  "Allocation",
                  "Purchase order",
                  "Purchase order line",
                  "Repair order",
                  "Repair order line",
                  "RO issue",
                  "Release",
                  "Release line",
                  "Invoice",
                  "Invoice line",
                  "Deposit",
                  "RMA",
                  "RMA line",
                  "Customer exchange",
                  "Manifest",
                  "Manifest line",
                  "Company default GL accounts",
                  "Payment voucher",
                  "Calendar event",
                  "Owner code adjustment",
                  "Transaction activity",
                  "Part history",
                  "Company history",
                  "Account ship address history",
                  "Contact history",
                  "Company location history",
                  "Warehouse history",
                  "Alternate history",
                  "Price history",
                  "Customer contract price history",
                  "Vendor contract price history",
                  "Repair contract price history",
                  "Owner code history",
                  "Inventory location history",
                  "Inventory line history",
                  "Vendor inventory line history",
                  "Customer quote history",
                  "Customer quote line history",
                  "Vendor RFQ history",
                  "Vendor RFQ line history",
                  "Sales order history",
                  "Sales order line history",
                  "Allocation history",
                  "Purchase order history",
                  "Purchase order line history",
                  "Repair order history",
                  "Repair order line history",
                  "RO issue history",
                  "Release history",
                  "Release line history",
                  "Invoice history",
                  "Invoice line history",
                  "RMA history",
                  "RMA line history",
                  "Customer exchange history",
                  "Manifest history",
                  "Manifest line history",
                  "Payment voucher history",
                  "Receipt history"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "field[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Records with a problem on any of these AvSight fields, each by its API name as `problem_reasons` keys it (`base` where no field is at fault)",
            "explode": true
          },
          {
            "name": "reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unmapped_value",
                  "value_not_created",
                  "parent_not_applied",
                  "parent_lost",
                  "invalid",
                  "taken_by_avsight_record",
                  "taken_by_corepilot_record",
                  "moved_organization",
                  "number_taken",
                  "line_problem",
                  "line_not_applied",
                  "price_not_above_zero",
                  "charge_unmapped",
                  "non_inventory_part",
                  "held_twice",
                  "taken_while_applying",
                  "save_refused",
                  "apply_failed",
                  "unread_value",
                  "unreadable_number",
                  "blank_in_avsight",
                  "value_left_blank",
                  "inactive_in_corepilot",
                  "role_missing",
                  "names_removed",
                  "names_skipped",
                  "names_unlanded",
                  "quantity_not_allowed",
                  "amount_not_allowed",
                  "receipt_refused",
                  "voucher_refused",
                  "change_not_taken_back",
                  "names_unmigrated",
                  "organization_mismatch",
                  "quantity_committed",
                  "charge_missing",
                  "serial_shared",
                  "owner_codes_mixed",
                  "reservation_refused",
                  "staging_refused",
                  "shipped_elsewhere",
                  "no_lines",
                  "order_still_open",
                  "shipment_unrecordable",
                  "charge_split",
                  "stated_by_avsight_record",
                  "code_across_organizations",
                  "consigned_and_bought",
                  "rate_not_allowed",
                  "investors_not_allowed",
                  "changed_since_opened",
                  "cost_below_held",
                  "bin_unplaced",
                  "serial_missing",
                  "serial_units_together",
                  "credit_line",
                  "customer_unit_unclear",
                  "unit_in_custody",
                  "unit_not_shipped_home",
                  "custody_refused",
                  "repair_line_missing",
                  "supply_unreserved",
                  "cores_unplaced",
                  "returns_only",
                  "vendor_return_unplaced",
                  "inventory_unfit",
                  "unit_not_sendable",
                  "partly_returned",
                  "customer_unit_mixed",
                  "issue_unaccounted",
                  "issue_refused",
                  "release_refused",
                  "nothing_to_stage",
                  "billed_twice",
                  "shipment_unbillable",
                  "total_mismatch",
                  "credited_on_wrong_invoice",
                  "payment_applied",
                  "return_unreceived",
                  "not_a_lot_purchase",
                  "consigned_order",
                  "vendor_mismatch",
                  "voucher_approved",
                  "invoice_lines_disagree"
                ],
                "x-enum-labels": [
                  "Values not mapped yet",
                  "Values CorePilot couldn't create",
                  "Records it names not applied yet",
                  "Names a record that won't come over",
                  "Values CorePilot doesn't accept",
                  "Already brought over from another AvSight record",
                  "Already used by a record in CorePilot",
                  "Moved to another organization",
                  "Numbers CorePilot already uses",
                  "Lines with a problem to fix first",
                  "Lines CorePilot couldn't apply",
                  "Priced at zero or less",
                  "Non-inventory parts with no charge",
                  "Non-inventory parts where a part is needed",
                  "Held more than once in AvSight",
                  "Taken by another record as it applied",
                  "Stopped by a CorePilot rule as it saved",
                  "Failed on an unexpected error",
                  "Values CorePilot doesn't read",
                  "Amounts or quantities CorePilot can't read",
                  "Blank in AvSight",
                  "Values chosen to be left blank under Values to map",
                  "Inactive in CorePilot",
                  "Companies without the role in CorePilot",
                  "Names a record removed in AvSight",
                  "Names a skipped record",
                  "Names a record not pulled yet",
                  "Quantities CorePilot can't hold",
                  "Amounts CorePilot can't hold",
                  "Receipts CorePilot can't record",
                  "Vouchers CorePilot can't make",
                  "Changes CorePilot can't take back",
                  "Names a record the migration doesn't bring over",
                  "Names records of different organizations",
                  "Quantities below what CorePilot has reserved or sent out",
                  "Charges CorePilot doesn't hold",
                  "Serialized units received under one serial",
                  "Lines naming several owner codes",
                  "Reservations CorePilot can't make",
                  "Reservations CorePilot can't stage on a release",
                  "Shipments CorePilot makes another way",
                  "Records with no lines",
                  "On an order AvSight still has open",
                  "Shipments CorePilot can't record",
                  "Charges shipped on more than one release",
                  "Stated by another AvSight record",
                  "Codes with inventory in several organizations",
                  "Both a consignment and a lot purchase",
                  "Rates CorePilot can't hold",
                  "Investors CorePilot can't hold",
                  "Terms changed since CorePilot opened the code",
                  "Costs falling below what CorePilot holds",
                  "Bins with no company location that no inventory line sits in",
                  "Serialized parts coming back with no serial number",
                  "Serialized parts whose serial number names several units",
                  "Credit lines CorePilot doesn't ship",
                  "Repairs naming no one customer's unit",
                  "Customer's units CorePilot still holds",
                  "Customer's units CorePilot can't record shipped home",
                  "Customer's units CorePilot can't take into custody",
                  "On a repair order line CorePilot doesn't bring over",
                  "Filled from a source CorePilot doesn't reserve",
                  "Core returns CorePilot can't place on a line",
                  "Orders AvSight finished whose only lines send cores back",
                  "Vendor returns CorePilot can't place on a receipt of their order",
                  "Owner codes a purchase order line can't land in",
                  "Units CorePilot can't send to the shop",
                  "Units partly back from the shop",
                  "Customers' units received back among other units",
                  "Issued counts CorePilot can't account for",
                  "Issues CorePilot can't make",
                  "Releases CorePilot can't make",
                  "Releases with no line CorePilot can stage",
                  "Bills what another bill already bills",
                  "Shipments CorePilot can't bill",
                  "Totals its lines don't add up to",
                  "Credits or bills on the wrong kind of invoice",
                  "Payments already applied in CorePilot",
                  "Returns AvSight holds no receipt of",
                  "Owner codes that aren't a lot purchase",
                  "Bills a consignment order",
                  "Names another vendor than its order buys from",
                  "Joins a voucher CorePilot already approved",
                  "Lines of one vendor's invoice that disagree"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_settled",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Include the records needing no one: ready and applied ones with no note, and those removed in AvSight"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "checked_at",
                "-checked_at",
                "applied_at",
                "-applied_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-checked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_record"
                ]
              }
            },
            "description": "Inline `external_record` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count",
                  "reasons",
                  "actions"
                ]
              }
            },
            "description": "Add `total_count`, `reasons`, and `actions` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecordList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "ready",
                "label": "Ready"
              },
              {
                "value": "applied",
                "label": "Applied"
              },
              {
                "value": "waiting",
                "label": "Waiting"
              },
              {
                "value": "problem",
                "label": "Problem"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "skipped",
                "label": "Skipped"
              },
              {
                "value": "removed",
                "label": "Removed"
              }
            ]
          },
          {
            "key": "mapping",
            "label": "Mapping",
            "kind": "options",
            "options": [
              {
                "value": "part",
                "label": "Part"
              },
              {
                "value": "company",
                "label": "Company"
              },
              {
                "value": "account_ship_address",
                "label": "Account ship address"
              },
              {
                "value": "contact",
                "label": "Contact"
              },
              {
                "value": "company_location",
                "label": "Company location"
              },
              {
                "value": "warehouse",
                "label": "Warehouse"
              },
              {
                "value": "alternate",
                "label": "Alternate"
              },
              {
                "value": "price",
                "label": "Price"
              },
              {
                "value": "customer_contract_price",
                "label": "Customer contract price"
              },
              {
                "value": "vendor_contract_price",
                "label": "Vendor contract price"
              },
              {
                "value": "repair_contract_price",
                "label": "Repair contract price"
              },
              {
                "value": "owner_code",
                "label": "Owner code"
              },
              {
                "value": "inventory_location",
                "label": "Inventory location"
              },
              {
                "value": "inventory_line",
                "label": "Inventory line"
              },
              {
                "value": "secondary_inventory",
                "label": "Vendor inventory line"
              },
              {
                "value": "customer_quote",
                "label": "Customer quote"
              },
              {
                "value": "customer_quote_line",
                "label": "Customer quote line"
              },
              {
                "value": "vendor_rfq",
                "label": "Vendor RFQ"
              },
              {
                "value": "vendor_rfq_line",
                "label": "Vendor RFQ line"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              },
              {
                "value": "sales_order_line",
                "label": "Sales order line"
              },
              {
                "value": "allocation",
                "label": "Allocation"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "purchase_order_line",
                "label": "Purchase order line"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "repair_order_line",
                "label": "Repair order line"
              },
              {
                "value": "ro_issue",
                "label": "RO issue"
              },
              {
                "value": "release",
                "label": "Release"
              },
              {
                "value": "release_line",
                "label": "Release line"
              },
              {
                "value": "invoice",
                "label": "Invoice"
              },
              {
                "value": "invoice_line",
                "label": "Invoice line"
              },
              {
                "value": "deposit",
                "label": "Deposit"
              },
              {
                "value": "rma",
                "label": "RMA"
              },
              {
                "value": "rma_line",
                "label": "RMA line"
              },
              {
                "value": "customer_exchange_summary",
                "label": "Customer exchange"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "manifest_line",
                "label": "Manifest line"
              },
              {
                "value": "company_default_gl_accounts",
                "label": "Company default GL accounts"
              },
              {
                "value": "payment_voucher",
                "label": "Payment voucher"
              },
              {
                "value": "event",
                "label": "Calendar event"
              },
              {
                "value": "owner_code_adjustment",
                "label": "Owner code adjustment"
              },
              {
                "value": "transaction_activity",
                "label": "Transaction activity"
              },
              {
                "value": "part_history",
                "label": "Part history"
              },
              {
                "value": "company_history",
                "label": "Company history"
              },
              {
                "value": "account_ship_address_history",
                "label": "Account ship address history"
              },
              {
                "value": "contact_history",
                "label": "Contact history"
              },
              {
                "value": "company_location_history",
                "label": "Company location history"
              },
              {
                "value": "warehouse_history",
                "label": "Warehouse history"
              },
              {
                "value": "alternate_history",
                "label": "Alternate history"
              },
              {
                "value": "price_history",
                "label": "Price history"
              },
              {
                "value": "customer_contract_price_history",
                "label": "Customer contract price history"
              },
              {
                "value": "vendor_contract_price_history",
                "label": "Vendor contract price history"
              },
              {
                "value": "repair_contract_price_history",
                "label": "Repair contract price history"
              },
              {
                "value": "owner_code_history",
                "label": "Owner code history"
              },
              {
                "value": "inventory_location_history",
                "label": "Inventory location history"
              },
              {
                "value": "inventory_line_history",
                "label": "Inventory line history"
              },
              {
                "value": "secondary_inventory_history",
                "label": "Vendor inventory line history"
              },
              {
                "value": "customer_quote_history",
                "label": "Customer quote history"
              },
              {
                "value": "customer_quote_line_history",
                "label": "Customer quote line history"
              },
              {
                "value": "vendor_rfq_history",
                "label": "Vendor RFQ history"
              },
              {
                "value": "vendor_rfq_line_history",
                "label": "Vendor RFQ line history"
              },
              {
                "value": "sales_order_history",
                "label": "Sales order history"
              },
              {
                "value": "sales_order_line_history",
                "label": "Sales order line history"
              },
              {
                "value": "allocation_history",
                "label": "Allocation history"
              },
              {
                "value": "purchase_order_history",
                "label": "Purchase order history"
              },
              {
                "value": "purchase_order_line_history",
                "label": "Purchase order line history"
              },
              {
                "value": "repair_order_history",
                "label": "Repair order history"
              },
              {
                "value": "repair_order_line_history",
                "label": "Repair order line history"
              },
              {
                "value": "ro_issue_history",
                "label": "RO issue history"
              },
              {
                "value": "release_history",
                "label": "Release history"
              },
              {
                "value": "release_line_history",
                "label": "Release line history"
              },
              {
                "value": "invoice_history",
                "label": "Invoice history"
              },
              {
                "value": "invoice_line_history",
                "label": "Invoice line history"
              },
              {
                "value": "rma_history",
                "label": "RMA history"
              },
              {
                "value": "rma_line_history",
                "label": "RMA line history"
              },
              {
                "value": "customer_exchange_summary_history",
                "label": "Customer exchange history"
              },
              {
                "value": "manifest_history",
                "label": "Manifest history"
              },
              {
                "value": "manifest_line_history",
                "label": "Manifest line history"
              },
              {
                "value": "payment_voucher_history",
                "label": "Payment voucher history"
              },
              {
                "value": "receipt_history",
                "label": "Receipt history"
              }
            ]
          },
          {
            "key": "reason",
            "label": "Reason",
            "kind": "options",
            "options": [
              {
                "value": "unmapped_value",
                "label": "Values not mapped yet"
              },
              {
                "value": "value_not_created",
                "label": "Values CorePilot couldn't create"
              },
              {
                "value": "parent_not_applied",
                "label": "Records it names not applied yet"
              },
              {
                "value": "parent_lost",
                "label": "Names a record that won't come over"
              },
              {
                "value": "invalid",
                "label": "Values CorePilot doesn't accept"
              },
              {
                "value": "taken_by_avsight_record",
                "label": "Already brought over from another AvSight record"
              },
              {
                "value": "taken_by_corepilot_record",
                "label": "Already used by a record in CorePilot"
              },
              {
                "value": "moved_organization",
                "label": "Moved to another organization"
              },
              {
                "value": "number_taken",
                "label": "Numbers CorePilot already uses"
              },
              {
                "value": "line_problem",
                "label": "Lines with a problem to fix first"
              },
              {
                "value": "line_not_applied",
                "label": "Lines CorePilot couldn't apply"
              },
              {
                "value": "price_not_above_zero",
                "label": "Priced at zero or less"
              },
              {
                "value": "charge_unmapped",
                "label": "Non-inventory parts with no charge"
              },
              {
                "value": "non_inventory_part",
                "label": "Non-inventory parts where a part is needed"
              },
              {
                "value": "held_twice",
                "label": "Held more than once in AvSight"
              },
              {
                "value": "taken_while_applying",
                "label": "Taken by another record as it applied"
              },
              {
                "value": "save_refused",
                "label": "Stopped by a CorePilot rule as it saved"
              },
              {
                "value": "apply_failed",
                "label": "Failed on an unexpected error"
              },
              {
                "value": "unread_value",
                "label": "Values CorePilot doesn't read"
              },
              {
                "value": "unreadable_number",
                "label": "Amounts or quantities CorePilot can't read"
              },
              {
                "value": "blank_in_avsight",
                "label": "Blank in AvSight"
              },
              {
                "value": "value_left_blank",
                "label": "Values chosen to be left blank under Values to map"
              },
              {
                "value": "inactive_in_corepilot",
                "label": "Inactive in CorePilot"
              },
              {
                "value": "role_missing",
                "label": "Companies without the role in CorePilot"
              },
              {
                "value": "names_removed",
                "label": "Names a record removed in AvSight"
              },
              {
                "value": "names_skipped",
                "label": "Names a skipped record"
              },
              {
                "value": "names_unlanded",
                "label": "Names a record not pulled yet"
              },
              {
                "value": "quantity_not_allowed",
                "label": "Quantities CorePilot can't hold"
              },
              {
                "value": "amount_not_allowed",
                "label": "Amounts CorePilot can't hold"
              },
              {
                "value": "receipt_refused",
                "label": "Receipts CorePilot can't record"
              },
              {
                "value": "voucher_refused",
                "label": "Vouchers CorePilot can't make"
              },
              {
                "value": "change_not_taken_back",
                "label": "Changes CorePilot can't take back"
              },
              {
                "value": "names_unmigrated",
                "label": "Names a record the migration doesn't bring over"
              },
              {
                "value": "organization_mismatch",
                "label": "Names records of different organizations"
              },
              {
                "value": "quantity_committed",
                "label": "Quantities below what CorePilot has reserved or sent out"
              },
              {
                "value": "charge_missing",
                "label": "Charges CorePilot doesn't hold"
              },
              {
                "value": "serial_shared",
                "label": "Serialized units received under one serial"
              },
              {
                "value": "owner_codes_mixed",
                "label": "Lines naming several owner codes"
              },
              {
                "value": "reservation_refused",
                "label": "Reservations CorePilot can't make"
              },
              {
                "value": "staging_refused",
                "label": "Reservations CorePilot can't stage on a release"
              },
              {
                "value": "shipped_elsewhere",
                "label": "Shipments CorePilot makes another way"
              },
              {
                "value": "no_lines",
                "label": "Records with no lines"
              },
              {
                "value": "order_still_open",
                "label": "On an order AvSight still has open"
              },
              {
                "value": "shipment_unrecordable",
                "label": "Shipments CorePilot can't record"
              },
              {
                "value": "charge_split",
                "label": "Charges shipped on more than one release"
              },
              {
                "value": "stated_by_avsight_record",
                "label": "Stated by another AvSight record"
              },
              {
                "value": "code_across_organizations",
                "label": "Codes with inventory in several organizations"
              },
              {
                "value": "consigned_and_bought",
                "label": "Both a consignment and a lot purchase"
              },
              {
                "value": "rate_not_allowed",
                "label": "Rates CorePilot can't hold"
              },
              {
                "value": "investors_not_allowed",
                "label": "Investors CorePilot can't hold"
              },
              {
                "value": "changed_since_opened",
                "label": "Terms changed since CorePilot opened the code"
              },
              {
                "value": "cost_below_held",
                "label": "Costs falling below what CorePilot holds"
              },
              {
                "value": "bin_unplaced",
                "label": "Bins with no company location that no inventory line sits in"
              },
              {
                "value": "serial_missing",
                "label": "Serialized parts coming back with no serial number"
              },
              {
                "value": "serial_units_together",
                "label": "Serialized parts whose serial number names several units"
              },
              {
                "value": "credit_line",
                "label": "Credit lines CorePilot doesn't ship"
              },
              {
                "value": "customer_unit_unclear",
                "label": "Repairs naming no one customer's unit"
              },
              {
                "value": "unit_in_custody",
                "label": "Customer's units CorePilot still holds"
              },
              {
                "value": "unit_not_shipped_home",
                "label": "Customer's units CorePilot can't record shipped home"
              },
              {
                "value": "custody_refused",
                "label": "Customer's units CorePilot can't take into custody"
              },
              {
                "value": "repair_line_missing",
                "label": "On a repair order line CorePilot doesn't bring over"
              },
              {
                "value": "supply_unreserved",
                "label": "Filled from a source CorePilot doesn't reserve"
              },
              {
                "value": "cores_unplaced",
                "label": "Core returns CorePilot can't place on a line"
              },
              {
                "value": "returns_only",
                "label": "Orders AvSight finished whose only lines send cores back"
              },
              {
                "value": "vendor_return_unplaced",
                "label": "Vendor returns CorePilot can't place on a receipt of their order"
              },
              {
                "value": "inventory_unfit",
                "label": "Owner codes a purchase order line can't land in"
              },
              {
                "value": "unit_not_sendable",
                "label": "Units CorePilot can't send to the shop"
              },
              {
                "value": "partly_returned",
                "label": "Units partly back from the shop"
              },
              {
                "value": "customer_unit_mixed",
                "label": "Customers' units received back among other units"
              },
              {
                "value": "issue_unaccounted",
                "label": "Issued counts CorePilot can't account for"
              },
              {
                "value": "issue_refused",
                "label": "Issues CorePilot can't make"
              },
              {
                "value": "release_refused",
                "label": "Releases CorePilot can't make"
              },
              {
                "value": "nothing_to_stage",
                "label": "Releases with no line CorePilot can stage"
              },
              {
                "value": "billed_twice",
                "label": "Bills what another bill already bills"
              },
              {
                "value": "shipment_unbillable",
                "label": "Shipments CorePilot can't bill"
              },
              {
                "value": "total_mismatch",
                "label": "Totals its lines don't add up to"
              },
              {
                "value": "credited_on_wrong_invoice",
                "label": "Credits or bills on the wrong kind of invoice"
              },
              {
                "value": "payment_applied",
                "label": "Payments already applied in CorePilot"
              },
              {
                "value": "return_unreceived",
                "label": "Returns AvSight holds no receipt of"
              },
              {
                "value": "not_a_lot_purchase",
                "label": "Owner codes that aren't a lot purchase"
              },
              {
                "value": "consigned_order",
                "label": "Bills a consignment order"
              },
              {
                "value": "vendor_mismatch",
                "label": "Names another vendor than its order buys from"
              },
              {
                "value": "voucher_approved",
                "label": "Joins a voucher CorePilot already approved"
              },
              {
                "value": "invoice_lines_disagree",
                "label": "Lines of one vendor's invoice that disagree"
              }
            ]
          },
          {
            "key": "include_settled",
            "label": "Include ready, applied & removed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "external_record",
            "label": "AvSight record",
            "field": "external_record.label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "ready": "Ready",
              "applied": "Applied",
              "waiting": "Waiting",
              "problem": "Problem",
              "failed": "Failed",
              "skipped": "Skipped",
              "removed": "Removed"
            }
          },
          {
            "key": "problems",
            "label": "Why",
            "field": "problems",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "mapping",
            "label": "Becomes",
            "field": "mapping",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "part": "Part",
              "company": "Company",
              "account_ship_address": "Account ship address",
              "contact": "Contact",
              "company_location": "Company location",
              "warehouse": "Warehouse",
              "alternate": "Alternate",
              "price": "Price",
              "customer_contract_price": "Customer contract price",
              "vendor_contract_price": "Vendor contract price",
              "repair_contract_price": "Repair contract price",
              "owner_code": "Owner code",
              "inventory_location": "Inventory location",
              "inventory_line": "Inventory line",
              "secondary_inventory": "Vendor inventory line",
              "customer_quote": "Customer quote",
              "customer_quote_line": "Customer quote line",
              "vendor_rfq": "Vendor RFQ",
              "vendor_rfq_line": "Vendor RFQ line",
              "sales_order": "Sales order",
              "sales_order_line": "Sales order line",
              "allocation": "Allocation",
              "purchase_order": "Purchase order",
              "purchase_order_line": "Purchase order line",
              "repair_order": "Repair order",
              "repair_order_line": "Repair order line",
              "ro_issue": "RO issue",
              "release": "Release",
              "release_line": "Release line",
              "invoice": "Invoice",
              "invoice_line": "Invoice line",
              "deposit": "Deposit",
              "rma": "RMA",
              "rma_line": "RMA line",
              "customer_exchange_summary": "Customer exchange",
              "manifest": "Manifest",
              "manifest_line": "Manifest line",
              "company_default_gl_accounts": "Company default GL accounts",
              "payment_voucher": "Payment voucher",
              "event": "Calendar event",
              "owner_code_adjustment": "Owner code adjustment",
              "transaction_activity": "Transaction activity",
              "part_history": "Part history",
              "company_history": "Company history",
              "account_ship_address_history": "Account ship address history",
              "contact_history": "Contact history",
              "company_location_history": "Company location history",
              "warehouse_history": "Warehouse history",
              "alternate_history": "Alternate history",
              "price_history": "Price history",
              "customer_contract_price_history": "Customer contract price history",
              "vendor_contract_price_history": "Vendor contract price history",
              "repair_contract_price_history": "Repair contract price history",
              "owner_code_history": "Owner code history",
              "inventory_location_history": "Inventory location history",
              "inventory_line_history": "Inventory line history",
              "secondary_inventory_history": "Vendor inventory line history",
              "customer_quote_history": "Customer quote history",
              "customer_quote_line_history": "Customer quote line history",
              "vendor_rfq_history": "Vendor RFQ history",
              "vendor_rfq_line_history": "Vendor RFQ line history",
              "sales_order_history": "Sales order history",
              "sales_order_line_history": "Sales order line history",
              "allocation_history": "Allocation history",
              "purchase_order_history": "Purchase order history",
              "purchase_order_line_history": "Purchase order line history",
              "repair_order_history": "Repair order history",
              "repair_order_line_history": "Repair order line history",
              "ro_issue_history": "RO issue history",
              "release_history": "Release history",
              "release_line_history": "Release line history",
              "invoice_history": "Invoice history",
              "invoice_line_history": "Invoice line history",
              "rma_history": "RMA history",
              "rma_line_history": "RMA line history",
              "customer_exchange_summary_history": "Customer exchange history",
              "manifest_history": "Manifest history",
              "manifest_line_history": "Manifest line history",
              "payment_voucher_history": "Payment voucher history",
              "receipt_history": "Receipt history"
            }
          },
          {
            "key": "record",
            "label": "CorePilot record",
            "field": "record",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "outcome",
            "label": "Last apply",
            "field": "outcome",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "created": "Created",
              "linked": "Linked",
              "updated": "Updated",
              "unchanged": "Unchanged"
            }
          },
          {
            "key": "checked_at",
            "label": "Checked",
            "field": "checked_at",
            "sort": "checked_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "applied_at",
            "label": "Applied",
            "field": "applied_at",
            "sort": "applied_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/salesforce_integration/avsight/records/skip": {
      "post": {
        "operationId": "skip_avsight_integration_records",
        "summary": "Skip several AvSight integration records at once",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordsSkip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every AvSight integration record named, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecordList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "skip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/records/unskip": {
      "post": {
        "operationId": "unskip_avsight_integration_records",
        "summary": "Unskip several AvSight integration records at once",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordsUnskip"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every AvSight integration record named, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecordList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unskip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/records/{uuid}": {
      "get": {
        "operationId": "get_avsight_integration_record",
        "summary": "Retrieve an AvSight integration record",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_record"
                ]
              }
            },
            "description": "Inline `external_record` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecord"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/records/{uuid}/skip": {
      "post": {
        "operationId": "skip_avsight_integration_record",
        "summary": "Skip an AvSight integration record",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_record"
                ]
              }
            },
            "description": "Inline `external_record` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecord"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "skip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/records/{uuid}/unskip": {
      "post": {
        "operationId": "unskip_avsight_integration_record",
        "summary": "Unskip an AvSight integration record",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_record"
                ]
              }
            },
            "description": "Inline `external_record` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationRecordField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationRecord"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "unskip",
        "x-risk": "reversible",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/switch_system_of_record": {
      "post": {
        "operationId": "switch_system_of_record_avsight_integration",
        "summary": "Make CorePilot the system of record in AvSight's place",
        "description": "Hands the records that came from AvSight to CorePilot: the account's system of record is cleared, no check or apply runs again, the records the migration wrote are CorePilot's to change, push-back to AvSight starts if its last day is set, and the credit holds AvSight's customers carry are placed. A connected QuickBooks with no cut-over takes the business's day as its cut-over, so CorePilot posts from then on and AvSight's own QuickBooks sync must be turned off first. Refused until AvSight's initial load is finished, and once CorePilot is the system of record",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missing_fields"
                ]
              }
            },
            "description": "Inline `missing_fields` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "AvSight, with when CorePilot became the system of record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "switch_system_of_record",
        "x-risk": "destructive",
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/value_mappings": {
      "get": {
        "operationId": "list_avsight_integration_value_mappings",
        "summary": "List AvSight integration value mappings",
        "description": "Each value AvSight's records carry (a manufacturer, a unit, a country's name) and the CorePilot value it maps to, worked out by each check until a person maps it",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applicability",
                  "charge",
                  "company_segment",
                  "condition",
                  "contact_role",
                  "core_disposition",
                  "country",
                  "exchange_type",
                  "freight_term",
                  "lead_time",
                  "ledger_account",
                  "lost_reason",
                  "manufacturer",
                  "measurement_unit",
                  "no_quote_reason",
                  "organization",
                  "part_classification",
                  "payment_term",
                  "protection_reason",
                  "rejection_reason",
                  "repair_service",
                  "return_disposition",
                  "ship_via",
                  "user"
                ],
                "description": "`applicability`: A part's applicability; `charge`: A charge, from an AvSight part marked Non Inventory Item, which the lines naming that part bill; `company_segment`: A company's segment, from AvSight's account type; `condition`: A condition, from AvSight's condition code; `contact_role`: A contact's role, from AvSight's contact type; `core_disposition`: What an exchange plans for the customer's core, from AvSight's core disposition, mapped to CorePilot's code; `country`: A country, mapped to its code; `exchange_type`: How an exchange is priced, from AvSight's exchange type, mapped to CorePilot's code, or left blank for a standard exchange; `freight_term`: A freight term, from AvSight's ship terms; `lead_time`: A lead time, from the lead time an AvSight quote line gives, which the quote line takes; `ledger_account`: A ledger account, from AvSight's GL account: the GL defaults and inventory code overrides AvSight names it for take it; `lost_reason`: Why a quote was lost, from AvSight's lost reason; `manufacturer`: A manufacturer, from AvSight's manufacturer code; `measurement_unit`: A unit of measure; `no_quote_reason`: Why a quote line wasn't quoted, from AvSight's no quote reason; `organization`: One of your organizations, from AvSight's company: its locations and warehouses arrive there; `part_classification`: A part's classification; `payment_term`: A payment term, from AvSight's account terms; `protection_reason`: Why an inventory line is protected, from AvSight's protected reason; `rejection_reason`: A rejection reason, from the rejection reasons on an AvSight inventory line protected as Rejected, which the rejection it opens takes; `repair_service`: A repair service, from the expected condition an AvSight repair order line asks for, its Repair Type of Teardown, or the service a repair contract price covers; `return_disposition`: Where an exchange's returned core goes, from AvSight's inventory disposition, mapped to CorePilot's code; `ship_via`: A carrier and its service, or a way of shipping that names no carrier, such as customer pickup, from AvSight's ship method; `user`: An AvSight user, mapped to the member who owns the accounts they own and holds their quotes, sales orders and RFQs",
                "x-enum-descriptions": [
                  "A part's applicability",
                  "A charge, from an AvSight part marked Non Inventory Item, which the lines naming that part bill",
                  "A company's segment, from AvSight's account type",
                  "A condition, from AvSight's condition code",
                  "A contact's role, from AvSight's contact type",
                  "What an exchange plans for the customer's core, from AvSight's core disposition, mapped to CorePilot's code",
                  "A country, mapped to its code",
                  "How an exchange is priced, from AvSight's exchange type, mapped to CorePilot's code, or left blank for a standard exchange",
                  "A freight term, from AvSight's ship terms",
                  "A lead time, from the lead time an AvSight quote line gives, which the quote line takes",
                  "A ledger account, from AvSight's GL account: the GL defaults and inventory code overrides AvSight names it for take it",
                  "Why a quote was lost, from AvSight's lost reason",
                  "A manufacturer, from AvSight's manufacturer code",
                  "A unit of measure",
                  "Why a quote line wasn't quoted, from AvSight's no quote reason",
                  "One of your organizations, from AvSight's company: its locations and warehouses arrive there",
                  "A part's classification",
                  "A payment term, from AvSight's account terms",
                  "Why an inventory line is protected, from AvSight's protected reason",
                  "A rejection reason, from the rejection reasons on an AvSight inventory line protected as Rejected, which the rejection it opens takes",
                  "A repair service, from the expected condition an AvSight repair order line asks for, its Repair Type of Teardown, or the service a repair contract price covers",
                  "Where an exchange's returned core goes, from AvSight's inventory disposition, mapped to CorePilot's code",
                  "A carrier and its service, or a way of shipping that names no carrier, such as customer pickup, from AvSight's ship method",
                  "An AvSight user, mapped to the member who owns the accounts they own and holds their quotes, sales orders and RFQs"
                ],
                "x-enum-labels": [
                  "Applicability",
                  "Charge",
                  "Company segment",
                  "Condition",
                  "Contact role",
                  "Core disposition",
                  "Country",
                  "Exchange type",
                  "Freight term",
                  "Lead time",
                  "Ledger account",
                  "Lost reason",
                  "Manufacturer",
                  "Measurement unit",
                  "No quote reason",
                  "Organization",
                  "Part classification",
                  "Payment term",
                  "Protection reason",
                  "Rejection reason",
                  "Repair service",
                  "Return disposition",
                  "Ship via",
                  "User"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "to_map",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the values a landed record carries that map to nothing, or match a record since deleted"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "value",
                "-value",
                "updated_at",
                "-updated_at"
              ],
              "default": "value"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `id`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationValueMappingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationValueMappingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "applicability",
                "label": "Applicability"
              },
              {
                "value": "charge",
                "label": "Charge"
              },
              {
                "value": "company_segment",
                "label": "Company segment"
              },
              {
                "value": "condition",
                "label": "Condition"
              },
              {
                "value": "contact_role",
                "label": "Contact role"
              },
              {
                "value": "core_disposition",
                "label": "Core disposition"
              },
              {
                "value": "country",
                "label": "Country"
              },
              {
                "value": "exchange_type",
                "label": "Exchange type"
              },
              {
                "value": "freight_term",
                "label": "Freight term"
              },
              {
                "value": "lead_time",
                "label": "Lead time"
              },
              {
                "value": "ledger_account",
                "label": "Ledger account"
              },
              {
                "value": "lost_reason",
                "label": "Lost reason"
              },
              {
                "value": "manufacturer",
                "label": "Manufacturer"
              },
              {
                "value": "measurement_unit",
                "label": "Measurement unit"
              },
              {
                "value": "no_quote_reason",
                "label": "No quote reason"
              },
              {
                "value": "organization",
                "label": "Organization"
              },
              {
                "value": "part_classification",
                "label": "Part classification"
              },
              {
                "value": "payment_term",
                "label": "Payment term"
              },
              {
                "value": "protection_reason",
                "label": "Protection reason"
              },
              {
                "value": "rejection_reason",
                "label": "Rejection reason"
              },
              {
                "value": "repair_service",
                "label": "Repair service"
              },
              {
                "value": "return_disposition",
                "label": "Return disposition"
              },
              {
                "value": "ship_via",
                "label": "Ship via"
              },
              {
                "value": "user",
                "label": "User"
              }
            ]
          },
          {
            "key": "to_map",
            "label": "Still to map",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "value",
            "label": "AvSight value",
            "field": "value",
            "sort": "value",
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "applicability": "Applicability",
              "charge": "Charge",
              "company_segment": "Company segment",
              "condition": "Condition",
              "contact_role": "Contact role",
              "core_disposition": "Core disposition",
              "country": "Country",
              "exchange_type": "Exchange type",
              "freight_term": "Freight term",
              "lead_time": "Lead time",
              "ledger_account": "Ledger account",
              "lost_reason": "Lost reason",
              "manufacturer": "Manufacturer",
              "measurement_unit": "Measurement unit",
              "no_quote_reason": "No quote reason",
              "organization": "Organization",
              "part_classification": "Part classification",
              "payment_term": "Payment term",
              "protection_reason": "Protection reason",
              "rejection_reason": "Rejection reason",
              "repair_service": "Repair service",
              "return_disposition": "Return disposition",
              "ship_via": "Ship via",
              "user": "User"
            }
          },
          {
            "key": "records_count",
            "label": "Records",
            "field": "records_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "action",
            "label": "Maps to",
            "field": "action",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "match": "Match",
              "create": "Create",
              "ignore": "Left blank"
            }
          },
          {
            "key": "decider",
            "label": "Mapped by",
            "field": "decider.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "decided_at",
            "label": "Mapped",
            "field": "decided_at",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/salesforce_integration/avsight/value_mappings/{uuid}": {
      "get": {
        "operationId": "get_avsight_integration_value_mapping",
        "summary": "Retrieve an AvSight integration value mapping",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationValueMappingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration value mapping",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationValueMapping"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_avsight_integration_value_mapping",
        "summary": "Update an AvSight integration value mapping",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationValueMappingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvsightIntegrationValueMappingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The AvSight integration value mapping",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationValueMapping"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "data:import",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/avsight/value_mappings/{uuid}/invite": {
      "post": {
        "operationId": "invite_avsight_integration_value_mapping",
        "summary": "Invite an AvSight integration value mapping",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AvsightIntegrationValueMappingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The AvSight integration value mapping",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AvsightIntegrationValueMapping"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "invite",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/connect": {
      "post": {
        "operationId": "connect_salesforce_integration",
        "summary": "Connect the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesforceIntegrationConnect"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "connect",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/disconnect": {
      "post": {
        "operationId": "disconnect_salesforce_integration",
        "summary": "Disconnect the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "disconnect",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/pull": {
      "post": {
        "operationId": "pull_salesforce_integration",
        "summary": "Pull the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "pull",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/refresh_streams": {
      "post": {
        "operationId": "refresh_streams_salesforce_integration",
        "summary": "Refresh the streams of the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "refresh_streams",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salesforce_integration/test": {
      "post": {
        "operationId": "test_salesforce_integration",
        "summary": "Test the Salesforce integration",
        "tags": [
          "salesforce_integration"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "avsight"
                ]
              }
            },
            "description": "Inline `avsight` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalesforceIntegrationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The Salesforce integration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesforceIntegration"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "test",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salespeople": {
      "get": {
        "operationId": "list_salespeople",
        "summary": "List salespeople",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalespersonList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "avatar",
            "label": "Avatar",
            "field": "has_avatar",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "away_until",
            "label": "Away until",
            "field": "away_until",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_salesperson",
        "summary": "Create a salesperson",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalespersonCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The salesperson",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Salesperson"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/salespeople/{uuid}": {
      "get": {
        "operationId": "get_salesperson",
        "summary": "Retrieve a salesperson",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The salesperson",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Salesperson"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_salesperson",
        "summary": "Delete a salesperson",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salespeople/{uuid}/activate": {
      "post": {
        "operationId": "activate_salesperson",
        "summary": "Activate a salesperson",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The salesperson",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Salesperson"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/salespeople/{salesperson_uuid}/avatar": {
      "get": {
        "operationId": "download_salesperson_avatar",
        "summary": "Download a salesperson's avatar",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "salesperson_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/salespeople/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_salesperson",
        "summary": "Deactivate a salesperson",
        "tags": [
          "salespeople"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SalespersonField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The salesperson",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Salesperson"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/search_results": {
      "get": {
        "operationId": "list_search_results",
        "summary": "List search results",
        "tags": [
          "search_results"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "What to look for: a name, a part number, an identifier",
            "required": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "accounting_transaction",
                  "applicability",
                  "bin",
                  "calendar",
                  "calendar_event",
                  "carrier",
                  "carrier_account",
                  "certificate",
                  "certificate_standard",
                  "charge",
                  "clause",
                  "combined_tax_rate",
                  "company",
                  "company_segment",
                  "condition",
                  "consignor_statement",
                  "contact",
                  "contact_role",
                  "conversation",
                  "customer_exchange",
                  "customer_lease",
                  "customer_no_quote_reason",
                  "customer_quote",
                  "customer_quote_archive_reason",
                  "customer_quote_lost_reason",
                  "customer_return",
                  "customer_return_reason",
                  "email_banner",
                  "email_sender_rule",
                  "email_suppression",
                  "email_template",
                  "employee",
                  "facility",
                  "freight_term",
                  "fx_rate",
                  "inspection_checklist",
                  "inventory_code",
                  "inventory_line",
                  "investor_statement",
                  "invoice",
                  "lead_time",
                  "ledger_account",
                  "manifest",
                  "manufacturer",
                  "marketplace",
                  "measurement_unit",
                  "message",
                  "part",
                  "part_classification",
                  "payment_term",
                  "printer",
                  "protection_reason",
                  "publication",
                  "publication_category",
                  "purchase_order",
                  "receipt",
                  "rejection",
                  "rejection_reason",
                  "release",
                  "repair_order",
                  "repair_order_stage",
                  "repair_service",
                  "requirement",
                  "sales_order",
                  "salesperson",
                  "share",
                  "share_recipient",
                  "ship_via",
                  "skill",
                  "sourcing_request",
                  "tax_category",
                  "tax_destination",
                  "tax_origin",
                  "team",
                  "triage_rule",
                  "upload",
                  "upload_category",
                  "vendor_exchange",
                  "vendor_inventory_line",
                  "vendor_lease",
                  "vendor_return",
                  "vendor_rfq",
                  "view",
                  "voucher",
                  "warehouse",
                  "work_center",
                  "work_order",
                  "work_order_gate",
                  "work_order_material_disposition",
                  "work_order_material_inspection_compliance",
                  "work_order_material_ndt_quantity_status",
                  "work_order_material_pick_status",
                  "work_order_material_removal_priority",
                  "work_order_material_supply_status",
                  "work_order_stage",
                  "work_order_task_stage",
                  "work_order_template",
                  "work_order_template_category",
                  "work_station"
                ],
                "description": "`accounting_transaction`: Balanced postings of our invoices, vouchers and inventory movements, sent to the connected books; `applicability`: The aircraft and engine types parts fit, such as the 737NG or the CFM56-7B; `bin`: The bins at a facility that inventory is put away to, shared by every warehouse there; `calendar`: Calendars the tenant shares, such as trade shows or audits, and closures calendars, whose events put everyone in their organization away; `calendar_event`: Time someone is away, busy or free: a person's own, such as a vacation or a visit, or an event on a shared or closures calendar. Of a private event, everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free. `/calendar_items` reads a range of days across them; `carrier`: The freight carriers and couriers we ship with, such as FedEx, UPS or DHL; `carrier_account`: Accounts with carriers that shipments are billed to: one of our organizations', or a company's for shipping on their account; `certificate`: A statement we issued about units leaving on a release, drafted over its verified part lines and signed by an employee holding its form's skill; once signed it stands as signed, and a correction voids it and issues another; `certificate_standard`: The standards and authorities a vendor's certificates are issued under, such as FAA Part 145, ASA-100 or AS9120; `charge`: Fees billed or paid beside parts, such as freight, handling, AOG and certification fees; `clause`: Reusable terms and conditions printed on quotes, orders and other documents, as text or a link; `combined_tax_rate`: The tax codes a line is taxed under, each summing the jurisdiction rates it is made of; `company`: The businesses we trade with, as a customer, a vendor or both; `company_segment`: The kinds of business a company is, such as airline, broker, OEM or repair station; `condition`: The condition codes parts are bought and sold in, such as NE, OH, SV and AR; `consignor_statement`: What we owe a consignor for the consigned parts we sold, settled on a statement; `contact`: People at the companies we trade with, and how to reach them; `contact_role`: What a contact does for their company, such as purchasing, quality or accounts payable; `conversation`: The threads an organization's messages are grouped into, each an email thread or the calls and chats logged on it; `customer_exchange`: The core a customer owes us after an exchange sale, until it is returned, billed or written off; `customer_lease`: One of our units lent to a customer for a period, from the shipment that sends it out until it comes back; `customer_no_quote_reason`: Why we did not quote a part a customer asked for, as printed on the quote; `customer_quote`: Quotes we send customers for parts, repairs and charges, from their RFQ through won or lost; `customer_quote_archive_reason`: Why a customer quote was archived unquoted, such as spam or not a request for quote; `customer_quote_lost_reason`: Why a customer quote was lost, such as price, lead time or none on hand; `customer_return`: Parts a customer is authorized to send back against a sales order, received and credited; `customer_return_reason`: Why a customer sent parts back, such as a defective unit or shipping damage; `email_banner`: A promotion an organization runs under the signature of its emails for a span of days, to the audiences and kinds of email it names; `email_sender_rule`: The rules administrators made about email from one address or one domain: a blocked sender's email is held unread until the rule is deleted, and an allowed sender's isn't held when the mail scan marks it as spam; `email_suppression`: The addresses the mail service won't send the account's email to, each because an email to it bounced for good or its recipient reported one as spam; `email_template`: An organization's own wording for one kind of email, its subject, message and Cc; at most one of each kind is its Default; `employee`: The people on the repair station's roster who do, inspect, sign off or supervise its work, with the skills they hold, their certificate number and their hourly cost. A login is access to the software, not part of being an employee: one with a login is called by its name, one without by their own; `facility`: Our own buildings, the places we ship from, each with its bins and printers, the tax origin it sells from and the bins its arrivals land in; `freight_term`: Incoterms and FOB terms, saying where freight cost and risk pass from seller to buyer; `fx_rate`: Exchange rates into our home currency by day, which records convert at; `inspection_checklist`: What an organization's inspectors check at one step, receiving inspection or outbound QC; one checklist runs per step; `inventory_code`: Inventory codes saying who owns inventory and how it is costed: our own, consigned, pooled or held for others; `inventory_line`: Units in stock by part, condition and location, with the quantity on hand and what they cost; `investor_statement`: What we owe an investor for their share of an inventory's sales, settled on a statement; `invoice`: Invoices and credit memos we bill customers, from draft through sent and paid; `lead_time`: How soon a part can ship, such as in stock or two weeks, quoted on quote lines; `ledger_account`: Our chart of accounts: the general ledger accounts postings land in; `manifest`: What a cost pool expects from a package or a teardown, line by line, until each part is received or written off; `manufacturer`: The makers of parts and publications, with their CAGE code; `marketplace`: The parts marketplaces we list on and answer RFQs from, such as ILS or PartsBase, or one of our own; `measurement_unit`: The units parts are counted, weighed and measured in, such as each, pounds or inches; `message`: Emails, calls and chats between one of our organizations and the companies it trades with: email received at its intake addresses or sent from the app, and calls and chats a person logged, each with its files; `part`: Parts we buy, sell, stock or repair, identified by part number; `part_classification`: The classes parts are grouped under, such as rotable, expendable or consumable; `payment_term`: When payment is due, such as Net 30 or prepayment, set on customers, vendors and records; `printer`: The printers at our facilities, each on a computer signed in to the tenant's PrintNode account, that documents print to; `protection_reason`: Why inventory is protected from sale, such as an inspection hold, missing documents or tooling; `publication`: The technical data we work to, such as component maintenance manuals and service bulletins; `publication_category`: The kinds of technical publication, such as maintenance manuals, service bulletins and ADs; `purchase_order`: Orders we place with vendors to buy parts, from draft through receiving and billing; `receipt`: Parts arriving from a vendor, a customer or an import, checked in line by line to inventory; `rejection`: Received units held back for a problem, until they are put back, scrapped, returned or repaired; `rejection_reason`: Why received units were rejected, such as the wrong part number, condition or certification; `release`: Shipments of our parts to a customer or vendor, picked, verified and shipped against an order; `repair_order`: Orders sending units to a vendor for repair, overhaul or test, through their return; `repair_order_stage`: The statuses an organization's repair orders move through, one per lifecycle status, each with the time tracking the shop sets; `repair_service`: The kinds of repair work, such as overhaul, repair, test or calibration; `requirement`: What a sales order needs before it opens, releases or ships, or a unit received on a purchase or repair order before it is released into inventory: a document of one upload category, or a fact the system checks; `sales_order`: Orders a customer has placed with us, open from the moment they exist through shipping and billing; `salesperson`: Members who sell, credited on the quotes and sales orders they own; `share`: Files from a record, or picked on the Uploads page, made visible to named people outside the business, each with a link of their own, until their links expire; `share_recipient`: The people files were shared with, each with a link of their own, how it stands, and when they last opened it; `ship_via`: The services a carrier offers, such as priority overnight or LTL freight, each with its mode; `skill`: Trade skills our staff hold, with the labor rates each costs and bills at; `sourcing_request`: Parts we need to find, from the first ask to vendors through the purchase order that buys them; `tax_category`: The tax classes parts and charges fall into, one of the three things that pick a tax code; `tax_destination`: Where we ship to for tax. An address with none set takes the active one its country and region match, a region's before its country's; `tax_origin`: Where we ship from for tax, set on warehouses to pick a tax code; `team`: Named groups of the tenant's people, such as a shop's inspectors, that work is routed to as one; a team grants nothing; `triage_rule`: How an organization's drafted requests for quote are routed as they land: the first active rule, in order, whose conditions all hold assigns, holds, archives or answers the quote no quote; `upload`: Files we keep, such as certificates and photos, with every version and the records they attach to; `upload_category`: The kinds of file we keep, such as 8130-3 tags, certificates of conformance and test reports; `vendor_exchange`: The core we owe a vendor after an exchange purchase, until it ships back or is settled; `vendor_inventory_line`: Vendor inventory: the parts a vendor says it holds, each at a quantity and price between two dates, to source, quote and buy from; `vendor_lease`: A vendor's unit we lease in for a period, from the receipt that brings it in until it goes back or we buy it; `vendor_return`: Parts we send back to the vendor we bought them from, and the credit we take for them; `vendor_rfq`: Requests for quote we send vendors, and the quotes they send back; `view`: A view is a named arrangement of one API path (`resource`) for one place a client draws it (`context`): its fields, sections and sort, and on a filtered list the filters that narrow its rows. A view is yours alone until you give it to everyone, a team or a person at `/views/{view_uuid}/audiences` (MCP `view_audience`), which can also make it the view that place opens first. Each person who sees a view may personalize it at `/views/{view_uuid}/personalization` (MCP `view_personalization`): their own fields, sections and sort stand in for the view's, for them alone. Each place opens on the view a person chose to open by default, else the one given to them to open first; `/view_openings` (MCP `view_openings`) says which. A list reads through a view with `?view={view_uuid}` (MCP `list`'s `view`). A bot's token gets a 404, since a bot signs in as no one; `voucher`: Vendor bills and credits for what we bought or repaired, approved before they are paid; `warehouse`: The groups of inventory we keep at each facility, with the marketplaces each is hidden from; `work_center`: Where an organization's shop does its work, set on a work order; `work_order`: A customer's unit repaired, overhauled or tested in our own shop, from its arrival until it goes home; `work_order_gate`: The steps of an organization's repair process its work orders pass in order, each holding the tasks set behind it; `work_order_material_disposition`: What becomes of a work order material's part after inspection, from a list the shop keeps; `work_order_material_inspection_compliance`: The kind of inspection a work order material's part has complied with, from a list the shop keeps; `work_order_material_ndt_quantity_status`: Where non-destructive testing of a work order material's quantity stands, from a list the shop keeps; `work_order_material_pick_status`: Where a work order material's pick stands, such as Pulled or Staged, from a list the shop keeps; `work_order_material_removal_priority`: How soon a work order material's part comes off the unit, from a list the shop keeps; `work_order_material_supply_status`: Where getting a work order material's part stands, from a list the shop keeps; `work_order_stage`: The statuses an organization's work orders move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a working one; `work_order_task_stage`: The statuses an organization's work order tasks move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a status a task moves to; `work_order_template`: A scope of work an organization keeps for a kind of job, filed under a category and copied onto a work order; `work_order_template_category`: What work order templates are filed under, such as Landing gear, and its subcategories one level beneath; `work_station`: A bench, bay or cell in an organization's shop",
                "x-enum-descriptions": [
                  "Balanced postings of our invoices, vouchers and inventory movements, sent to the connected books",
                  "The aircraft and engine types parts fit, such as the 737NG or the CFM56-7B",
                  "The bins at a facility that inventory is put away to, shared by every warehouse there",
                  "Calendars the tenant shares, such as trade shows or audits, and closures calendars, whose events put everyone in their organization away",
                  "Time someone is away, busy or free: a person's own, such as a vacation or a visit, or an event on a shared or closures calendar. Of a private event, everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free. `/calendar_items` reads a range of days across them",
                  "The freight carriers and couriers we ship with, such as FedEx, UPS or DHL",
                  "Accounts with carriers that shipments are billed to: one of our organizations', or a company's for shipping on their account",
                  "A statement we issued about units leaving on a release, drafted over its verified part lines and signed by an employee holding its form's skill; once signed it stands as signed, and a correction voids it and issues another",
                  "The standards and authorities a vendor's certificates are issued under, such as FAA Part 145, ASA-100 or AS9120",
                  "Fees billed or paid beside parts, such as freight, handling, AOG and certification fees",
                  "Reusable terms and conditions printed on quotes, orders and other documents, as text or a link",
                  "The tax codes a line is taxed under, each summing the jurisdiction rates it is made of",
                  "The businesses we trade with, as a customer, a vendor or both",
                  "The kinds of business a company is, such as airline, broker, OEM or repair station",
                  "The condition codes parts are bought and sold in, such as NE, OH, SV and AR",
                  "What we owe a consignor for the consigned parts we sold, settled on a statement",
                  "People at the companies we trade with, and how to reach them",
                  "What a contact does for their company, such as purchasing, quality or accounts payable",
                  "The threads an organization's messages are grouped into, each an email thread or the calls and chats logged on it",
                  "The core a customer owes us after an exchange sale, until it is returned, billed or written off",
                  "One of our units lent to a customer for a period, from the shipment that sends it out until it comes back",
                  "Why we did not quote a part a customer asked for, as printed on the quote",
                  "Quotes we send customers for parts, repairs and charges, from their RFQ through won or lost",
                  "Why a customer quote was archived unquoted, such as spam or not a request for quote",
                  "Why a customer quote was lost, such as price, lead time or none on hand",
                  "Parts a customer is authorized to send back against a sales order, received and credited",
                  "Why a customer sent parts back, such as a defective unit or shipping damage",
                  "A promotion an organization runs under the signature of its emails for a span of days, to the audiences and kinds of email it names",
                  "The rules administrators made about email from one address or one domain: a blocked sender's email is held unread until the rule is deleted, and an allowed sender's isn't held when the mail scan marks it as spam",
                  "The addresses the mail service won't send the account's email to, each because an email to it bounced for good or its recipient reported one as spam",
                  "An organization's own wording for one kind of email, its subject, message and Cc; at most one of each kind is its Default",
                  "The people on the repair station's roster who do, inspect, sign off or supervise its work, with the skills they hold, their certificate number and their hourly cost. A login is access to the software, not part of being an employee: one with a login is called by its name, one without by their own",
                  "Our own buildings, the places we ship from, each with its bins and printers, the tax origin it sells from and the bins its arrivals land in",
                  "Incoterms and FOB terms, saying where freight cost and risk pass from seller to buyer",
                  "Exchange rates into our home currency by day, which records convert at",
                  "What an organization's inspectors check at one step, receiving inspection or outbound QC; one checklist runs per step",
                  "Inventory codes saying who owns inventory and how it is costed: our own, consigned, pooled or held for others",
                  "Units in stock by part, condition and location, with the quantity on hand and what they cost",
                  "What we owe an investor for their share of an inventory's sales, settled on a statement",
                  "Invoices and credit memos we bill customers, from draft through sent and paid",
                  "How soon a part can ship, such as in stock or two weeks, quoted on quote lines",
                  "Our chart of accounts: the general ledger accounts postings land in",
                  "What a cost pool expects from a package or a teardown, line by line, until each part is received or written off",
                  "The makers of parts and publications, with their CAGE code",
                  "The parts marketplaces we list on and answer RFQs from, such as ILS or PartsBase, or one of our own",
                  "The units parts are counted, weighed and measured in, such as each, pounds or inches",
                  "Emails, calls and chats between one of our organizations and the companies it trades with: email received at its intake addresses or sent from the app, and calls and chats a person logged, each with its files",
                  "Parts we buy, sell, stock or repair, identified by part number",
                  "The classes parts are grouped under, such as rotable, expendable or consumable",
                  "When payment is due, such as Net 30 or prepayment, set on customers, vendors and records",
                  "The printers at our facilities, each on a computer signed in to the tenant's PrintNode account, that documents print to",
                  "Why inventory is protected from sale, such as an inspection hold, missing documents or tooling",
                  "The technical data we work to, such as component maintenance manuals and service bulletins",
                  "The kinds of technical publication, such as maintenance manuals, service bulletins and ADs",
                  "Orders we place with vendors to buy parts, from draft through receiving and billing",
                  "Parts arriving from a vendor, a customer or an import, checked in line by line to inventory",
                  "Received units held back for a problem, until they are put back, scrapped, returned or repaired",
                  "Why received units were rejected, such as the wrong part number, condition or certification",
                  "Shipments of our parts to a customer or vendor, picked, verified and shipped against an order",
                  "Orders sending units to a vendor for repair, overhaul or test, through their return",
                  "The statuses an organization's repair orders move through, one per lifecycle status, each with the time tracking the shop sets",
                  "The kinds of repair work, such as overhaul, repair, test or calibration",
                  "What a sales order needs before it opens, releases or ships, or a unit received on a purchase or repair order before it is released into inventory: a document of one upload category, or a fact the system checks",
                  "Orders a customer has placed with us, open from the moment they exist through shipping and billing",
                  "Members who sell, credited on the quotes and sales orders they own",
                  "Files from a record, or picked on the Uploads page, made visible to named people outside the business, each with a link of their own, until their links expire",
                  "The people files were shared with, each with a link of their own, how it stands, and when they last opened it",
                  "The services a carrier offers, such as priority overnight or LTL freight, each with its mode",
                  "Trade skills our staff hold, with the labor rates each costs and bills at",
                  "Parts we need to find, from the first ask to vendors through the purchase order that buys them",
                  "The tax classes parts and charges fall into, one of the three things that pick a tax code",
                  "Where we ship to for tax. An address with none set takes the active one its country and region match, a region's before its country's",
                  "Where we ship from for tax, set on warehouses to pick a tax code",
                  "Named groups of the tenant's people, such as a shop's inspectors, that work is routed to as one; a team grants nothing",
                  "How an organization's drafted requests for quote are routed as they land: the first active rule, in order, whose conditions all hold assigns, holds, archives or answers the quote no quote",
                  "Files we keep, such as certificates and photos, with every version and the records they attach to",
                  "The kinds of file we keep, such as 8130-3 tags, certificates of conformance and test reports",
                  "The core we owe a vendor after an exchange purchase, until it ships back or is settled",
                  "Vendor inventory: the parts a vendor says it holds, each at a quantity and price between two dates, to source, quote and buy from",
                  "A vendor's unit we lease in for a period, from the receipt that brings it in until it goes back or we buy it",
                  "Parts we send back to the vendor we bought them from, and the credit we take for them",
                  "Requests for quote we send vendors, and the quotes they send back",
                  "A view is a named arrangement of one API path (`resource`) for one place a client draws it (`context`): its fields, sections and sort, and on a filtered list the filters that narrow its rows. A view is yours alone until you give it to everyone, a team or a person at `/views/{view_uuid}/audiences` (MCP `view_audience`), which can also make it the view that place opens first. Each person who sees a view may personalize it at `/views/{view_uuid}/personalization` (MCP `view_personalization`): their own fields, sections and sort stand in for the view's, for them alone. Each place opens on the view a person chose to open by default, else the one given to them to open first; `/view_openings` (MCP `view_openings`) says which. A list reads through a view with `?view={view_uuid}` (MCP `list`'s `view`). A bot's token gets a 404, since a bot signs in as no one",
                  "Vendor bills and credits for what we bought or repaired, approved before they are paid",
                  "The groups of inventory we keep at each facility, with the marketplaces each is hidden from",
                  "Where an organization's shop does its work, set on a work order",
                  "A customer's unit repaired, overhauled or tested in our own shop, from its arrival until it goes home",
                  "The steps of an organization's repair process its work orders pass in order, each holding the tasks set behind it",
                  "What becomes of a work order material's part after inspection, from a list the shop keeps",
                  "The kind of inspection a work order material's part has complied with, from a list the shop keeps",
                  "Where non-destructive testing of a work order material's quantity stands, from a list the shop keeps",
                  "Where a work order material's pick stands, such as Pulled or Staged, from a list the shop keeps",
                  "How soon a work order material's part comes off the unit, from a list the shop keeps",
                  "Where getting a work order material's part stands, from a list the shop keeps",
                  "The statuses an organization's work orders move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a working one",
                  "The statuses an organization's work order tasks move through, in its order: one the system keeps for each lifecycle status, and the shop's own under a status a task moves to",
                  "A scope of work an organization keeps for a kind of job, filed under a category and copied onto a work order",
                  "What work order templates are filed under, such as Landing gear, and its subcategories one level beneath",
                  "A bench, bay or cell in an organization's shop"
                ],
                "x-enum-labels": [
                  "Accounting transaction",
                  "Applicability",
                  "Bin",
                  "Calendar",
                  "Calendar event",
                  "Carrier",
                  "Carrier account",
                  "Certificate",
                  "Certificate standard",
                  "Charge",
                  "Clause",
                  "Combined tax rate",
                  "Company",
                  "Company segment",
                  "Condition",
                  "Consignor statement",
                  "Contact",
                  "Contact role",
                  "Conversation",
                  "Customer exchange",
                  "Customer lease",
                  "Customer no quote reason",
                  "Customer quote",
                  "Customer quote archive reason",
                  "Customer quote lost reason",
                  "Customer return",
                  "Customer return reason",
                  "Email banner",
                  "Email sender rule",
                  "Email suppression",
                  "Email template",
                  "Employee",
                  "Facility",
                  "Freight term",
                  "FX rate",
                  "Inspection checklist",
                  "Inventory code",
                  "Inventory line",
                  "Investor statement",
                  "Invoice",
                  "Lead time",
                  "Ledger account",
                  "Manifest",
                  "Manufacturer",
                  "Marketplace",
                  "Measurement unit",
                  "Message",
                  "Part",
                  "Part classification",
                  "Payment term",
                  "Printer",
                  "Protection reason",
                  "Publication",
                  "Publication category",
                  "Purchase order",
                  "Receipt",
                  "Rejection",
                  "Rejection reason",
                  "Release",
                  "Repair order",
                  "Repair order stage",
                  "Repair service",
                  "Requirement",
                  "Sales order",
                  "Salesperson",
                  "Share",
                  "Share recipient",
                  "Ship via",
                  "Skill",
                  "Sourcing request",
                  "Tax category",
                  "Tax destination",
                  "Tax origin",
                  "Team",
                  "Triage rule",
                  "Upload",
                  "Upload category",
                  "Vendor exchange",
                  "Vendor inventory line",
                  "Vendor lease",
                  "Vendor return",
                  "Vendor RFQ",
                  "View",
                  "Voucher",
                  "Warehouse",
                  "Work center",
                  "Work order",
                  "Work order gate",
                  "Work order material disposition",
                  "Work order material inspection compliance",
                  "Work order material NDT quantity status",
                  "Work order material pick status",
                  "Work order material removal priority",
                  "Work order material supply status",
                  "Work order stage",
                  "Work order task stage",
                  "Work order template",
                  "Work order template category",
                  "Work station"
                ]
              }
            },
            "description": "Only hits of these kinds. A kind a module owns is searched only by a tenant holding the module, and asked for without it is a 403 `not_entitled`",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResultList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses": {
      "get": {
        "operationId": "list_sending_addresses",
        "summary": "List sending addresses",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "email_address",
                "-email_address",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "email_address"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `email_address`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddressList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_sending_address",
        "summary": "Create a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendingAddressCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses/{uuid}": {
      "get": {
        "operationId": "get_sending_address",
        "summary": "Retrieve a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_sending_address",
        "summary": "Update a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendingAddressUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses/{uuid}/activate": {
      "post": {
        "operationId": "activate_sending_address",
        "summary": "Activate a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses/{uuid}/confirm": {
      "post": {
        "operationId": "confirm_sending_address",
        "summary": "Confirm a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendingAddressConfirm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "confirm",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_sending_address",
        "summary": "Deactivate a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_addresses/{uuid}/send_code": {
      "post": {
        "operationId": "send_code_sending_address",
        "summary": "Email a confirmation code to a sending address",
        "tags": [
          "sending_addresses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingAddressField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending address",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingAddress"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send_code",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_domains": {
      "get": {
        "operationId": "list_sending_domains",
        "summary": "List sending domains",
        "tags": [
          "sending_domains"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingDomainListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingDomainList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_sending_domain",
        "summary": "Create a sending domain",
        "tags": [
          "sending_domains"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingDomainField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendingDomainCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sending domain",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingDomain"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The sending domain already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingDomain"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_domains/{uuid}": {
      "get": {
        "operationId": "get_sending_domain",
        "summary": "Retrieve a sending domain",
        "tags": [
          "sending_domains"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingDomainField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending domain",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingDomain"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_sending_domain",
        "summary": "Delete a sending domain",
        "tags": [
          "sending_domains"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sending_domains/{uuid}/check": {
      "post": {
        "operationId": "check_sending_domain",
        "summary": "Check a sending domain",
        "tags": [
          "sending_domains"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SendingDomainField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sending domain",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendingDomain"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "check",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sessions": {
      "get": {
        "operationId": "list_sessions",
        "summary": "List sessions",
        "tags": [
          "sessions"
        ],
        "parameters": [
          {
            "name": "authenticated_via[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "password",
                  "magic_link"
                ],
                "description": "`password`: Signed in with the login's password; `magic_link`: Signed in through a one-time link mailed to the login",
                "x-enum-descriptions": [
                  "Signed in with the login's password",
                  "Signed in through a one-time link mailed to the login"
                ],
                "x-enum-labels": [
                  "Password",
                  "Sign-in link"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "last_active_at",
                "-last_active_at",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-last_active_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, descending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SessionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "authenticated_via",
            "label": "Signed in with",
            "kind": "options",
            "options": [
              {
                "value": "password",
                "label": "Password"
              },
              {
                "value": "magic_link",
                "label": "Sign-in link"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "ip_address",
            "label": "Address",
            "field": "ip_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "browser",
            "label": "Browser",
            "field": "browser",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "authenticated_via",
            "label": "Signed in with",
            "field": "authenticated_via",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "password": "Password",
              "magic_link": "Sign-in link"
            }
          },
          {
            "key": "created_at",
            "label": "Started",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_active_at",
            "label": "Last active",
            "field": "last_active_at",
            "sort": "last_active_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/sessions/sign_out_elsewhere": {
      "post": {
        "operationId": "sign_out_elsewhere_sessions",
        "summary": "Sign out elsewhere",
        "tags": [
          "sessions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SessionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "Every session as it now stands, a page at a time",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "sign_out_elsewhere",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "too_many_requests"
        ]
      }
    },
    "/sessions/{uuid}": {
      "delete": {
        "operationId": "delete_session",
        "summary": "Delete a session",
        "tags": [
          "sessions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_files": {
      "get": {
        "operationId": "list_share_files",
        "summary": "List share files",
        "tags": [
          "share_files"
        ],
        "parameters": [
          {
            "name": "share[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A share's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "position",
                "-position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `position` sorts only beside a single `share[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareFileListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/share_files/{uuid}": {
      "get": {
        "operationId": "get_share_file",
        "summary": "Retrieve a share file",
        "tags": [
          "share_files"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareFileField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The share file",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareFile"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_share_file",
        "summary": "Delete a share file",
        "tags": [
          "share_files"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_recipients": {
      "get": {
        "operationId": "list_share_recipients",
        "summary": "List share recipients",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "share[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A share's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_quote[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a customer quote"
              }
            },
            "description": "The people a quote's files were shared with",
            "explode": true
          },
          {
            "name": "release[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a release"
              }
            },
            "description": "The people a release's files were shared with",
            "explode": true
          },
          {
            "name": "sales_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sales order"
              }
            },
            "description": "The people a sales order's files were shared with",
            "explode": true
          },
          {
            "name": "vendor_rfq[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a vendor RFQ"
              }
            },
            "description": "The people an RFQ's files were shared with",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "active",
                  "expired",
                  "revoked",
                  "withdrawn"
                ],
                "description": "`active`: The link opens the files; `expired`: The link's last day has passed; relinking sends a fresh one; `revoked`: The link was stopped, for this person or for the whole share; `withdrawn`: The record shared from is in the trash, so no link opens until it is restored (never for a share from the Uploads page)",
                "x-enum-descriptions": [
                  "The link opens the files",
                  "The link's last day has passed; relinking sends a fresh one",
                  "The link was stopped, for this person or for the whole share",
                  "The record shared from is in the trash, so no link opens until it is restored (never for a share from the Uploads page)"
                ],
                "x-enum-labels": [
                  "Active",
                  "Expired",
                  "Revoked",
                  "Withdrawn"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "expires_on",
                "-expires_on",
                "last_opened_at",
                "-last_opened_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipientList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "state",
            "label": "State",
            "kind": "options",
            "options": [
              {
                "value": "active",
                "label": "Active"
              },
              {
                "value": "expired",
                "label": "Expired"
              },
              {
                "value": "revoked",
                "label": "Revoked"
              },
              {
                "value": "withdrawn",
                "label": "Withdrawn"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Person",
            "field": "name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "company_name",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "file_names",
            "label": "Files",
            "field": "file_names",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "downloads_count",
            "label": "Downloads",
            "field": "downloads_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "state",
            "label": "Status",
            "field": "state",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "active": "Active",
              "expired": "Expired",
              "revoked": "Revoked",
              "withdrawn": "Withdrawn"
            }
          },
          {
            "key": "share_name",
            "label": "Share",
            "field": "share.title",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "shared_from",
            "label": "Shared from",
            "field": "shared_from",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Shared",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "last_opened_at",
            "label": "Last opened",
            "field": "last_opened_at",
            "sort": "last_opened_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "expires_on",
            "label": "Available until",
            "field": "expires_on",
            "sort": "expires_on",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_share_recipient",
        "summary": "Create a share recipient",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRecipientCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The share recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipient"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_recipients/{uuid}": {
      "get": {
        "operationId": "get_share_recipient",
        "summary": "Retrieve a share recipient",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The share recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipient"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_share_recipient",
        "summary": "Update a share recipient",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareRecipientUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The share recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipient"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_recipients/{uuid}/relink": {
      "post": {
        "operationId": "relink_share_recipient",
        "summary": "Relink a share recipient",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The share recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipient"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "relink",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_recipients/{uuid}/revoke": {
      "post": {
        "operationId": "revoke_share_recipient",
        "summary": "Revoke a share recipient",
        "tags": [
          "share_recipients"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareRecipientField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The share recipient",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareRecipient"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revoke",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/share_views": {
      "get": {
        "operationId": "list_share_views",
        "summary": "List share views",
        "tags": [
          "share_views"
        ],
        "parameters": [
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "opened",
                  "viewed",
                  "downloaded"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "share_recipient[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A share recipient's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "share[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A share's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareViewListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareViewList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/share_views/{uuid}": {
      "get": {
        "operationId": "get_share_view",
        "summary": "Retrieve a share view",
        "tags": [
          "share_views"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareViewField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The share view",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareView"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/shares": {
      "get": {
        "operationId": "list_shares",
        "summary": "List shares",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "record_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "record[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A record's uuid"
              }
            },
            "description": "Rows matching any of the values given. Only beside a single `record_type[]`, since a uuid names a record only within its type",
            "explode": true
          },
          {
            "name": "live",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only shares nobody has revoked, a share whose record is in the trash among them"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_share",
        "summary": "Create a share",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/shares/{uuid}": {
      "get": {
        "operationId": "get_share",
        "summary": "Retrieve a share",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_share",
        "summary": "Update a share",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/shares/{uuid}/add_files": {
      "post": {
        "operationId": "add_files_share",
        "summary": "Add files to a share",
        "description": "Adds more of the files the record offers (with no record, any upload), each as `POST /shares` shares them, for the people already on the share; their links don't change. A file already on the share, or chosen twice, is refused (`DELETE /share_files/{uuid}` removes one first)",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShareAddFiles"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_files",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/shares/{uuid}/replace_documents": {
      "post": {
        "operationId": "replace_documents_share",
        "summary": "Replace the printed forms on a share with the current ones",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_documents",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/shares/{uuid}/revoke": {
      "post": {
        "operationId": "revoke_share",
        "summary": "Revoke a share",
        "tags": [
          "shares"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recipients"
                ]
              }
            },
            "description": "Inline `recipients` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The share",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Share"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revoke",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ship_vias": {
      "get": {
        "operationId": "list_ship_vias",
        "summary": "List ship vias",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "carrier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A carrier's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "no_carrier",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only the ship vias that name no carrier, such as customer pickup"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Also list the retired ship vias, and those of a retired carrier"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "carrier",
                "-carrier",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipViaList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_ship_via",
        "summary": "Create a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShipViaCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The ship via",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipVia"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/ship_vias/{uuid}": {
      "get": {
        "operationId": "get_ship_via",
        "summary": "Retrieve a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The ship via",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipVia"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_ship_via",
        "summary": "Update a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShipViaUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The ship via",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipVia"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_ship_via",
        "summary": "Delete a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ship_vias/{uuid}/activate": {
      "post": {
        "operationId": "activate_ship_via",
        "summary": "Activate a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The ship via",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipVia"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/ship_vias/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_ship_via",
        "summary": "Deactivate a ship via",
        "tags": [
          "ship_vias"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShipViaField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The ship via",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipVia"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/shortcuts": {
      "get": {
        "operationId": "list_shortcuts",
        "summary": "List shortcuts",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShortcutListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShortcutList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_shortcut",
        "summary": "Create a shortcut",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShortcutField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShortcutCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The shortcut",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shortcut"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/shortcuts/{uuid}": {
      "get": {
        "operationId": "get_shortcut",
        "summary": "Retrieve a shortcut",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShortcutField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The shortcut",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shortcut"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_shortcut",
        "summary": "Update a shortcut",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShortcutField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShortcutUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The shortcut",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shortcut"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_shortcut",
        "summary": "Delete a shortcut",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/shortcuts/{uuid}/move": {
      "post": {
        "operationId": "move_shortcut",
        "summary": "Move a shortcut",
        "tags": [
          "shortcuts"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShortcutField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShortcutMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The shortcut",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shortcut"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "move",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/skills": {
      "get": {
        "operationId": "list_skills",
        "summary": "List skills",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "inspection_approved",
                "-inspection_approved",
                "excluded_from_assigned_hours",
                "-excluded_from_assigned_hours",
                "burden_rate_cents",
                "-burden_rate_cents",
                "bill_rate_cents",
                "-bill_rate_cents",
                "active",
                "-active",
                "ledger_account_label",
                "-ledger_account_label",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "inspection_approved",
            "label": "Inspection",
            "field": "inspection_approved",
            "sort": "inspection_approved",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "excluded_from_assigned_hours",
            "label": "Counted in assigned hours",
            "field": "excluded_from_assigned_hours",
            "sort": "excluded_from_assigned_hours",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "burden_rate",
            "label": "Cost / hr",
            "field": "burden_rate_cents",
            "sort": "burden_rate_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "bill_rate",
            "label": "Bills / hr",
            "field": "bill_rate_cents",
            "sort": "bill_rate_cents",
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "ledger_account_label",
            "label": "Labor account",
            "field": "ledger_account.name",
            "sort": "ledger_account_label",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_skill",
        "summary": "Create a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/skills/{uuid}": {
      "get": {
        "operationId": "get_skill",
        "summary": "Retrieve a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_skill",
        "summary": "Update a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_skill",
        "summary": "Delete a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/skills/{uuid}/activate": {
      "post": {
        "operationId": "activate_skill",
        "summary": "Activate a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/skills/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_skill",
        "summary": "Deactivate a skill",
        "tags": [
          "skills"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SkillField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The skill",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skill"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/smart_listing": {
      "get": {
        "operationId": "get_smart_listing",
        "summary": "Retrieve the smart listing",
        "tags": [
          "smart_listing"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SmartListingField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The smart listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartListing"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/smart_quoting": {
      "get": {
        "operationId": "get_smart_quoting",
        "summary": "Retrieve the smart quoting",
        "tags": [
          "smart_quoting"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SmartQuotingField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The smart quoting",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SmartQuoting"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests": {
      "get": {
        "operationId": "list_sourcing_requests",
        "summary": "List sourcing requests",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unsourced",
                  "asked",
                  "quoted",
                  "ordered"
                ],
                "description": "`unsourced`: Not yet put to any vendor or purchase order; `asked`: Put to one or more vendors on an RFQ; `quoted`: At least one vendor quoted it; `ordered`: A purchase order line buys against it",
                "x-enum-descriptions": [
                  "Not yet put to any vendor or purchase order",
                  "Put to one or more vendors on an RFQ",
                  "At least one vendor quoted it",
                  "A purchase order line buys against it"
                ],
                "x-enum-labels": [
                  "Unsourced",
                  "Asked",
                  "Quoted",
                  "Ordered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed"
                ],
                "description": "`open`: Still being sourced; `closed`: Closed; nothing more is sourced on it",
                "x-enum-descriptions": [
                  "Still being sourced",
                  "Closed; nothing more is sourced on it"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "need_by",
                "-need_by",
                "priority",
                "-priority",
                "updated_at",
                "-updated_at"
              ],
              "default": "-priority"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` sorts in its own order, routine, expedite, critical, aog, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequestList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "state",
            "label": "State",
            "kind": "options",
            "options": [
              {
                "value": "unsourced",
                "label": "Unsourced"
              },
              {
                "value": "asked",
                "label": "Asked"
              },
              {
                "value": "quoted",
                "label": "Quoted"
              },
              {
                "value": "ordered",
                "label": "Ordered"
              }
            ]
          },
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "include_closed",
            "label": "Include closed",
            "kind": "toggle",
            "lifts": {
              "key": "status",
              "values": [
                "open",
                "closed"
              ]
            }
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "part_number_raw",
            "label": "Part number as given",
            "field": "part_number_raw",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": "priority",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": "need_by",
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "states",
            "label": "State",
            "field": "states",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "unsourced": "Unsourced",
              "asked": "Asked",
              "quoted": "Quoted",
              "ordered": "Ordered"
            }
          },
          {
            "key": "open",
            "label": "Open",
            "field": "closed_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "needed",
            "label": "Needed",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "ordered",
            "label": "Ordered",
            "field": "quantity_ordered",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "remaining",
            "label": "Remaining",
            "field": "quantity_remaining",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_codes",
            "label": "Condition",
            "field": "conditions.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "origin",
            "label": "From",
            "field": "origin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "responses",
            "label": "Responses",
            "field": "awaiting_count",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_sourcing_request",
        "summary": "Create a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingRequestCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}": {
      "get": {
        "operationId": "get_sourcing_request",
        "summary": "Retrieve a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_sourcing_request",
        "summary": "Update a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "sales:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/ask": {
      "post": {
        "operationId": "ask_sourcing_request",
        "summary": "Ask a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingRequestAsk"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "ask",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/close": {
      "post": {
        "operationId": "close_sourcing_request",
        "summary": "Close a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/close_rfqs": {
      "post": {
        "operationId": "close_rfqs_sourcing_request",
        "summary": "Close the RFQs of a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close_rfqs",
        "x-risk": "destructive",
        "x-grant": [
          "sales:manage",
          "purchasing:manage"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/order": {
      "post": {
        "operationId": "order_sourcing_request",
        "summary": "Order a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SourcingRequestOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open purchase order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "order",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/reopen": {
      "post": {
        "operationId": "reopen_sourcing_request",
        "summary": "Reopen a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reopen",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{uuid}/send_rfqs": {
      "post": {
        "operationId": "send_rfqs_sourcing_request",
        "summary": "Send the RFQs of a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send_rfqs",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/sourcing_requests/{sourcing_request_uuid}/trash": {
      "post": {
        "operationId": "trash_sourcing_request",
        "summary": "Trash a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "sourcing_request_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_sourcing_request",
        "summary": "Restore a sourcing request",
        "tags": [
          "sourcing_requests"
        ],
        "parameters": [
          {
            "name": "sourcing_request_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SourcingRequestField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The sourcing request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SourcingRequest"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "sales:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/support_access": {
      "get": {
        "operationId": "get_support_access",
        "summary": "Retrieve the support access",
        "tags": [
          "support_access"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SupportAccessField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The support access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportAccess"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/support_access/turn_off": {
      "post": {
        "operationId": "turn_off_support_access",
        "summary": "Turn off the support access",
        "tags": [
          "support_access"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SupportAccessField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The support access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportAccess"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "turn_off",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/support_access/turn_on": {
      "post": {
        "operationId": "turn_on_support_access",
        "summary": "Turn on the support access",
        "tags": [
          "support_access"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SupportAccessField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The support access",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportAccess"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "turn_on",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/support_messenger": {
      "get": {
        "operationId": "get_support_messenger",
        "summary": "Retrieve the support messenger",
        "description": "Only a browser signed in to this tenant may call it; a token is answered 404",
        "tags": [
          "support_messenger"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SupportMessengerField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The support messenger",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportMessenger"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-session-only": true,
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/support_sessions": {
      "get": {
        "operationId": "list_support_sessions",
        "summary": "List support sessions",
        "tags": [
          "support_sessions"
        ],
        "parameters": [
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SupportSessionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupportSessionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [],
        "x-columns": [
          {
            "key": "staff",
            "label": "Staff",
            "field": "membership.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "reason",
            "label": "Reason",
            "field": "reason",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "opened",
            "label": "Opened",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "ended",
            "label": "Ended",
            "field": "ended_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "changes",
            "label": "Changes",
            "field": "changes_first_allowed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "token",
            "label": "API token",
            "field": "token_issued_at",
            "sort": null,
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/tax_categories": {
      "get": {
        "operationId": "list_tax_categories",
        "summary": "List tax categories",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "description",
                "-description",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategoryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Notes",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_tax_category",
        "summary": "Create a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxCategoryCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The tax category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_categories/{uuid}": {
      "get": {
        "operationId": "get_tax_category",
        "summary": "Retrieve a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_tax_category",
        "summary": "Update a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxCategoryUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tax category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_tax_category",
        "summary": "Delete a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_categories/{uuid}/activate": {
      "post": {
        "operationId": "activate_tax_category",
        "summary": "Activate a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_categories/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_tax_category",
        "summary": "Deactivate a tax category",
        "tags": [
          "tax_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_destinations": {
      "get": {
        "operationId": "list_tax_destinations",
        "summary": "List tax destinations",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "description",
                "-description",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestinationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Notes",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "jurisdiction",
            "label": "Jurisdiction",
            "field": "jurisdiction",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_tax_destination",
        "summary": "Create a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxDestinationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The tax destination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestination"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_destinations/{uuid}": {
      "get": {
        "operationId": "get_tax_destination",
        "summary": "Retrieve a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax destination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestination"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_tax_destination",
        "summary": "Update a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxDestinationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tax destination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestination"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_tax_destination",
        "summary": "Delete a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_destinations/{uuid}/activate": {
      "post": {
        "operationId": "activate_tax_destination",
        "summary": "Activate a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax destination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestination"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_destinations/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_tax_destination",
        "summary": "Deactivate a tax destination",
        "tags": [
          "tax_destinations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxDestinationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax destination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxDestination"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_origins": {
      "get": {
        "operationId": "list_tax_origins",
        "summary": "List tax origins",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "description",
                "-description",
                "created_at",
                "-created_at",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOriginList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Notes",
            "field": "description",
            "sort": "description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_tax_origin",
        "summary": "Create a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxOriginCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The tax origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOrigin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_origins/{uuid}": {
      "get": {
        "operationId": "get_tax_origin",
        "summary": "Retrieve a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOrigin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_tax_origin",
        "summary": "Update a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaxOriginUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The tax origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOrigin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_tax_origin",
        "summary": "Delete a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_origins/{uuid}/activate": {
      "post": {
        "operationId": "activate_tax_origin",
        "summary": "Activate a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOrigin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/tax_origins/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_tax_origin",
        "summary": "Deactivate a tax origin",
        "tags": [
          "tax_origins"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaxOriginField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The tax origin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaxOrigin"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/teams": {
      "get": {
        "operationId": "list_teams",
        "summary": "List teams",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "members",
            "label": "Members",
            "field": "memberships.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_team",
        "summary": "Create a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The team",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/teams/{uuid}": {
      "get": {
        "operationId": "get_team",
        "summary": "Retrieve a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The team",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_team",
        "summary": "Update a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TeamUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The team",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_team",
        "summary": "Delete a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/teams/{uuid}/activate": {
      "post": {
        "operationId": "activate_team",
        "summary": "Activate a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The team",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/teams/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_team",
        "summary": "Deactivate a team",
        "tags": [
          "teams"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TeamField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The team",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-token-scope": "admin",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/time_zones": {
      "get": {
        "operationId": "list_time_zones",
        "summary": "List time zones",
        "tags": [
          "time_zones"
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A name or a code to narrow to"
          },
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Only these codes",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TimeZoneListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeZoneList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/tools": {
      "get": {
        "operationId": "list_tools",
        "summary": "List tools",
        "tags": [
          "tools"
        ],
        "parameters": [
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "calibration[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue",
                  "due_soon",
                  "current",
                  "uncalibrated",
                  "not_required"
                ],
                "description": "`overdue`: A tool whose calibration due date has come; `due_soon`: A tool due for calibration within 30 days; `current`: A tool calibrated and not due for more than 30 days; `uncalibrated`: A tool that requires calibration and has never had one; `not_required`: A tool whose part needs no calibration",
                "x-enum-descriptions": [
                  "A tool whose calibration due date has come",
                  "A tool due for calibration within 30 days",
                  "A tool calibrated and not due for more than 30 days",
                  "A tool that requires calibration and has never had one",
                  "A tool whose part needs no calibration"
                ],
                "x-enum-labels": [
                  "Out of calibration",
                  "Due within 30 days",
                  "Current",
                  "Never calibrated",
                  "Calibration not required"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "warehouse[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A warehouse's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "converted"
                ],
                "description": "`open`: A unit in the books, whether or not any of it is left on hand; `converted`: Torn down into a cost pool, which took its cost",
                "x-enum-descriptions": [
                  "A unit in the books, whether or not any of it is left on hand",
                  "Torn down into a cost pool, which took its cost"
                ],
                "x-enum-labels": [
                  "Open",
                  "Converted"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "quantity_on_hand",
                "-quantity_on_hand",
                "serial_number",
                "-serial_number",
                "received_on",
                "-received_on",
                "calibration_due_on",
                "-calibration_due_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "calibration_due_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "condition",
                  "offered_condition",
                  "warehouse",
                  "bin",
                  "inventory_code"
                ]
              }
            },
            "description": "Inline `condition`, `offered_condition`, `warehouse`, `bin`, or `inventory_code` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InventoryLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "calibration",
            "label": "Calibration",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Out of calibration"
              },
              {
                "value": "due_soon",
                "label": "Due within 30 days"
              },
              {
                "value": "current",
                "label": "Current"
              },
              {
                "value": "uncalibrated",
                "label": "Never calibrated"
              },
              {
                "value": "not_required",
                "label": "Calibration not required"
              }
            ]
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "kind": "options",
            "references": [
              "warehouse"
            ],
            "fenced": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "include_consumed",
            "label": "Include consumed",
            "kind": "toggle",
            "lifts": {
              "key": "status",
              "values": [
                "open",
                "converted"
              ]
            }
          }
        ],
        "x-columns": [
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "field": "standard_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "offered_condition",
            "label": "Offered condition",
            "field": "offered_condition.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": "serial_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "batch_lot_number",
            "label": "Batch/lot number",
            "field": "batch_lot_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity_on_hand",
            "label": "On hand",
            "field": "quantity_on_hand",
            "sort": "quantity_on_hand",
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_reserved",
            "label": "Reserved",
            "field": "quantity_reserved",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_available",
            "label": "Available",
            "field": "quantity_available",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "warehouse",
            "label": "Warehouse",
            "field": "warehouse.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sub_location",
            "label": "Sub-location",
            "field": "sub_location",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_code",
            "label": "Inventory code",
            "field": "inventory_code.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "total_cost",
            "label": "Total cost",
            "field": "total_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "received_on",
            "label": "Received",
            "field": "received_on",
            "sort": "received_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "acquisition_cost",
            "label": "Acquisition cost",
            "field": "acquisition_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "repair_cost",
            "label": "Repair cost",
            "field": "repair_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "trace",
            "label": "Trace",
            "field": "trace_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "air_carrier": "Air carrier",
              "repair_station": "Repair station",
              "oem": "OEM",
              "distributor": "Distributor",
              "government": "Government",
              "other": "Other"
            }
          },
          {
            "key": "tag_types",
            "label": "Tag types",
            "field": "tag_types",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "faa_8130_3": "FAA 8130-3",
              "easa_form_1": "EASA Form 1",
              "uk_caa_form_1": "UK CAA Form 1",
              "tcca_form_one": "TCCA Form One",
              "casa_form_1": "CASA Form 1",
              "caac_release": "CAAC Form AAC",
              "coc": "Certificate of Conformance",
              "other": "Other"
            }
          },
          {
            "key": "certificate_number",
            "label": "Certificate number",
            "field": "certificate_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tag_number",
            "label": "Tag number",
            "field": "tag_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_on",
            "label": "Tagged on",
            "field": "tagged_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "tagged_by",
            "label": "Tagged by",
            "field": "tagged_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tail_number",
            "label": "Tail number",
            "field": "tail_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "engine_serial_number",
            "label": "Engine serial number",
            "field": "engine_serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "receiver_number",
            "label": "Receiver",
            "field": "receiver_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "date_of_manufacture",
            "label": "Date of manufacture",
            "field": "date_of_manufacture",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "shelf_life_expires_on",
            "label": "Shelf life expires",
            "field": "shelf_life_expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "warranty_expires_on",
            "label": "Warranty expires",
            "field": "warranty_expires_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "parent_identifier",
            "label": "Parent",
            "field": "parent.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "protected",
            "label": "Protected",
            "field": "protected",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "open_rejection_identifier",
            "label": "Open rejection",
            "field": "open_rejection.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tool",
            "label": "Tool",
            "field": "tool",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "calibration",
            "label": "Calibration",
            "field": "calibration_due_on",
            "sort": "calibration_due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "calibration_interval_months",
            "label": "Interval",
            "field": "calibration_interval_months",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "away_repair_order",
            "label": "Out for repair",
            "field": "away_repair_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "converted": "Converted"
            }
          },
          {
            "key": "quantity_sold",
            "label": "Qty sold",
            "field": "quantity_sold",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sold_for",
            "label": "Sold for",
            "field": "sold_for_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "cost_of_sale",
            "label": "Cost of sale",
            "field": "cost_of_sale_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "margin",
            "label": "Margin",
            "field": "margin_cents",
            "sort": null,
            "kind": "money",
            "currency": "account"
          },
          {
            "key": "sold_on",
            "label": "Sold on",
            "field": "sold_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sold_orders",
            "label": "Sales order",
            "field": "sold_orders.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sold_to",
            "label": "Customer",
            "field": "sold_to.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "converted_to_code",
            "label": "Converted to",
            "field": "converted_to.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "shipped_back_on",
            "label": "Shipped back on",
            "field": "shipped_back_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "ownership",
            "label": "Ownership",
            "field": "owner_company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/triage_rules": {
      "get": {
        "operationId": "list_triage_rules",
        "summary": "List triage rules",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "triage_action[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "assign",
                  "round_robin",
                  "archive",
                  "hold",
                  "no_quote"
                ],
                "description": "`assign`: Give the quote to one salesperson; `round_robin`: Give the quote to the rule's salespeople in turn, skipping anyone inactive or away unless everyone is away; `archive`: Move the quote to the trash, naming the archive reason; `hold`: Keep the quote under Needs review until a person works it; `no_quote`: Answer every line asked for no quote, naming the no quote reason, and send it as autoquote's sending settings allow",
                "x-enum-descriptions": [
                  "Give the quote to one salesperson",
                  "Give the quote to the rule's salespeople in turn, skipping anyone inactive or away unless everyone is away",
                  "Move the quote to the trash, naming the archive reason",
                  "Keep the quote under Needs review until a person works it",
                  "Answer every line asked for no quote, naming the no quote reason, and send it as autoquote's sending settings allow"
                ],
                "x-enum-labels": [
                  "Assign",
                  "Round robin",
                  "Archive",
                  "Hold",
                  "No quote"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "triage_action",
                "-triage_action",
                "keeps_from_autoquote",
                "-keeps_from_autoquote",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRuleList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "triage_action",
            "label": "Action",
            "kind": "options",
            "options": [
              {
                "value": "assign",
                "label": "Assign"
              },
              {
                "value": "round_robin",
                "label": "Round robin"
              },
              {
                "value": "archive",
                "label": "Archive"
              },
              {
                "value": "hold",
                "label": "Hold"
              },
              {
                "value": "no_quote",
                "label": "No quote"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "triage_action",
            "label": "Action",
            "field": "triage_action",
            "sort": "triage_action",
            "kind": "text",
            "currency": null,
            "labels": {
              "assign": "Assign",
              "round_robin": "Round robin",
              "archive": "Archive",
              "hold": "Hold",
              "no_quote": "No quote"
            }
          },
          {
            "key": "archive_reason",
            "label": "Archive reason",
            "field": "archive_reason.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "no_quote_reason",
            "label": "No quote reason",
            "field": "no_quote_reason.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "keeps_from_autoquote",
            "label": "Keep out of autoquote",
            "field": "keeps_from_autoquote",
            "sort": "keeps_from_autoquote",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_triage_rule",
        "summary": "Create a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriageRuleCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The triage rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/triage_rules/{uuid}": {
      "get": {
        "operationId": "get_triage_rule",
        "summary": "Retrieve a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The triage rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_triage_rule",
        "summary": "Update a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriageRuleUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The triage rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_triage_rule",
        "summary": "Delete a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/triage_rules/{uuid}/activate": {
      "post": {
        "operationId": "activate_triage_rule",
        "summary": "Activate a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The triage rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/triage_rules/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_triage_rule",
        "summary": "Deactivate a triage rule",
        "tags": [
          "triage_rules"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TriageRuleField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The triage rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriageRule"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-module": "smart_quoting",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/upload_categories": {
      "get": {
        "operationId": "list_upload_categories",
        "summary": "List upload categories",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategoryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_upload_category",
        "summary": "Create an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadCategoryCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/upload_categories/{uuid}": {
      "get": {
        "operationId": "get_upload_category",
        "summary": "Retrieve an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_upload_category",
        "summary": "Update an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadCategoryUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The upload category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_upload_category",
        "summary": "Delete an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/upload_categories/{uuid}/activate": {
      "post": {
        "operationId": "activate_upload_category",
        "summary": "Activate an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/upload_categories/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_upload_category",
        "summary": "Deactivate an upload category",
        "tags": [
          "upload_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/uploads": {
      "get": {
        "operationId": "list_uploads",
        "summary": "List uploads",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "category[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An upload category's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "name",
                "-name",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "category",
            "label": "Category",
            "kind": "options",
            "references": [
              "upload_category"
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "generated",
            "label": "Generated",
            "field": "generated",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "byte_size",
            "label": "Size",
            "field": "byte_size",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "attachments",
            "label": "Used on",
            "field": "attachments_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "content_type",
            "label": "Content type",
            "field": "content_type",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "version",
            "label": "Version",
            "field": "version",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "category",
            "label": "Category",
            "field": "category.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Uploaded by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "file_filename",
            "label": "Filename",
            "field": "file_filename",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Uploaded",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_upload",
        "summary": "Create an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadCreate"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadCreateMultipart"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/uploads/{uuid}": {
      "get": {
        "operationId": "get_upload",
        "summary": "Retrieve an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_upload",
        "summary": "Update an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/uploads/{upload_uuid}/content": {
      "get": {
        "operationId": "download_upload",
        "summary": "Download an upload's file",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "upload_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "disposition",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "attachment",
                "inline"
              ],
              "default": "attachment"
            },
            "description": "`inline` opens the file in the browser; `attachment` downloads it"
          },
          {
            "name": "variant",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "thumbnail"
              ]
            },
            "description": "A smaller copy of the file in place of it; a file with none is a 404"
          },
          {
            "name": "v",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Any value; a client changes it to fetch bytes it has drawn before afresh"
          }
        ],
        "responses": {
          "200": {
            "description": "The file itself, when `disposition=inline` is asked of an image or a PDF, sent with `Content-Security-Policy: sandbox` and `X-Content-Type-Options: nosniff` so a browser opening it runs no script from it",
            "content": {
              "image/webp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/avif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/png": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/gif": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/jpeg": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/tiff": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/bmp": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.adobe.photoshop": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "image/vnd.microsoft.icon": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            },
            "headers": {
              "Content-Disposition": {
                "description": "`inline`, with the file's name",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "302": {
            "description": "A redirect to the bytes at a signed URL that lapses in minutes; follow it without the bearer. Answers a download, a `variant`, and a file asked `inline` that is not an image or a PDF",
            "headers": {
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "too_many_requests"
        ]
      }
    },
    "/uploads/{uuid}/replace": {
      "post": {
        "operationId": "replace_upload",
        "summary": "Replace an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadReplace"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/UploadReplaceMultipart"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/uploads/{upload_uuid}/trash": {
      "post": {
        "operationId": "trash_upload",
        "summary": "Trash an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "upload_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_upload",
        "summary": "Restore an upload",
        "tags": [
          "uploads"
        ],
        "parameters": [
          {
            "name": "upload_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/UploadField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The upload",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Upload"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_capabilities": {
      "get": {
        "operationId": "list_vendor_capabilities",
        "summary": "List vendor capabilities",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "part_number",
                "-part_number",
                "service",
                "-service",
                "active",
                "-active",
                "vendor",
                "-vendor",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `part_number` sorts only beside a single company's `vendor[]`. `service` sorts only beside a single company's `vendor[]` or `part[]`. `active` sorts only beside a single company's `vendor[]` or `part[]`. `vendor` sorts only beside a single `part[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapabilityList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "repair_service",
            "label": "Repair service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": "vendor",
            "kind": "text",
            "currency": null,
            "beside": [
              "part"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null,
            "beside": [
              "vendor"
            ]
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": "service",
            "kind": "text",
            "currency": null,
            "beside": [
              "vendor",
              "part"
            ]
          },
          {
            "key": "active",
            "label": "Status",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null,
            "beside": [
              "vendor",
              "part"
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_capability",
        "summary": "Create a vendor capability",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCapabilityCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor capability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The vendor capability already there",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_capabilities/replace": {
      "post": {
        "operationId": "replace_vendor_capabilities",
        "summary": "Set a vendor's whole capability list",
        "description": "Sets one vendor's whole list of parts, each for one repair service or any, up to 100 rows: a part and service left out is retired, one retired and named again comes back, and an empty list retires them all. A list longer than 100 is added a row at a time through `POST /vendor_capabilities`",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCapabilitiesReplace"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor's active capabilities, as they now stand",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapabilityList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace",
        "x-risk": "reversible",
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_capabilities/{uuid}": {
      "get": {
        "operationId": "get_vendor_capability",
        "summary": "Retrieve a vendor capability",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor capability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_capabilities/{uuid}/activate": {
      "post": {
        "operationId": "activate_vendor_capability",
        "summary": "Activate a vendor capability",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor capability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_capabilities/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_vendor_capability",
        "summary": "Deactivate a vendor capability",
        "tags": [
          "vendor_capabilities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCapabilityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor capability",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCapability"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_certificates": {
      "get": {
        "operationId": "list_vendor_certificates",
        "summary": "List vendor certificates",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "certificate_standard[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A certificate standard's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "expires_on",
                "-expires_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "expires_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "certificate_standard",
            "label": "Certificate standard",
            "kind": "options",
            "references": [
              "certificate_standard"
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "certificate_number",
            "label": "Certificate number",
            "field": "certificate_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "certificate_standard",
            "label": "Certificate standard",
            "field": "certificate_standard.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_on",
            "sort": "expires_on",
            "kind": "text",
            "currency": null
          },
          {
            "key": "approval_basis",
            "label": "Approval basis",
            "field": "approval_basis",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "purchase_orders": "Purchase orders",
              "repair_orders": "Repair orders",
              "both": "Purchase and repair orders"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          },
          {
            "key": "scans",
            "label": "Scans",
            "field": "scan_count",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_certificate",
        "summary": "Create a vendor certificate",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCertificateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_certificates/{uuid}": {
      "get": {
        "operationId": "get_vendor_certificate",
        "summary": "Retrieve a vendor certificate",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_certificate",
        "summary": "Update a vendor certificate",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCertificateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_certificates/{uuid}/activate": {
      "post": {
        "operationId": "activate_vendor_certificate",
        "summary": "Activate a vendor certificate",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_certificates/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_vendor_certificate",
        "summary": "Deactivate a vendor certificate",
        "tags": [
          "vendor_certificates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorCertificateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorCertificate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "catalog:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_exchanges": {
      "get": {
        "operationId": "list_vendor_exchanges",
        "summary": "List vendor exchanges",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "core_shipped",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: We owe the vendor a core that has not shipped; `core_shipped`: Our core has shipped back to the vendor; `closed`: Finished; the core owed the vendor is settled; `cancelled`: Called off before any core shipped",
                "x-enum-descriptions": [
                  "We owe the vendor a core that has not shipped",
                  "Our core has shipped back to the vendor",
                  "Finished; the core owed the vendor is settled",
                  "Called off before any core shipped"
                ],
                "x-enum-labels": [
                  "Open",
                  "Core shipped",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "core_due_on",
                "-core_due_on",
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "expected_core_condition",
                "-expected_core_condition",
                "updated_at",
                "-updated_at"
              ],
              "default": "core_due_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, core_shipped, closed, cancelled, not the alphabet. `expected_core_condition` sorts only beside a single `purchase_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchangeList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "core_shipped",
                "label": "Core shipped"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "core_shipped": "Core shipped",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_due_days",
            "label": "Core due days",
            "field": "core_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "received_at",
            "label": "Received",
            "field": "received_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "core_due_on",
            "label": "Core due",
            "field": "core_due_on",
            "sort": "core_due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "core_shipped_at",
            "label": "Core shipped",
            "field": "core_shipped_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "owed",
            "label": "Owed",
            "field": "quantity_owed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "allocated",
            "label": "Allocated",
            "field": "quantity_allocated",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "sent",
            "label": "Sent",
            "field": "quantity_shipped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "cores",
            "label": "Cores back",
            "field": "quantity_shipped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "bought",
            "label": "Bought outright",
            "field": "quantity_bought",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "expected_core_condition",
            "label": "Core condition",
            "field": "expected_core_condition",
            "sort": "expected_core_condition",
            "kind": "text",
            "currency": null,
            "beside": [
              "purchase_order"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "order",
            "label": "Order",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vendor_exchanges/{uuid}": {
      "get": {
        "operationId": "get_vendor_exchange",
        "summary": "Retrieve a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_exchange",
        "summary": "Update a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorExchangeUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_exchanges/{uuid}/buy_outright": {
      "post": {
        "operationId": "buy_outright_vendor_exchange",
        "summary": "Buy the cores of a vendor exchange outright",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorExchangeBuyOutright"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order line it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "buy_outright",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_exchanges/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_vendor_exchange",
        "summary": "Cancel a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_exchanges/{uuid}/close": {
      "post": {
        "operationId": "close_vendor_exchange",
        "summary": "Close a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_exchanges/{vendor_exchange_uuid}/trash": {
      "post": {
        "operationId": "trash_vendor_exchange",
        "summary": "Trash a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "vendor_exchange_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_vendor_exchange",
        "summary": "Restore a vendor exchange",
        "tags": [
          "vendor_exchanges"
        ],
        "parameters": [
          {
            "name": "vendor_exchange_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorExchangeField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor exchange",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorExchange"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_inventory_lines": {
      "get": {
        "operationId": "list_vendor_inventory_lines",
        "summary": "List vendor inventory lines",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange"
                ],
                "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back",
                "x-enum-descriptions": [
                  "An outright sale: the unit changes hands for its price, with no core owed",
                  "An exchange: a serviceable unit now, with a core unit owed back"
                ],
                "x-enum-labels": [
                  "Outright",
                  "Exchange"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "current",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only the rows inside their dates today: in effect from `effective_on` through `expires_on`, either left open"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at",
                "expires_on",
                "-expires_on"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              }
            ]
          },
          {
            "key": "current",
            "label": "Current only",
            "kind": "toggle"
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "serial_number",
            "label": "Serial number",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange"
            }
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_on",
            "sort": "expires_on",
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_inventory_line",
        "summary": "Create a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorInventoryLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_inventory_lines/{uuid}": {
      "get": {
        "operationId": "get_vendor_inventory_line",
        "summary": "Retrieve a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_inventory_line",
        "summary": "Update a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorInventoryLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_inventory_line",
        "summary": "Delete a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_inventory_lines/{uuid}/activate": {
      "post": {
        "operationId": "activate_vendor_inventory_line",
        "summary": "Activate a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_inventory_lines/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_vendor_inventory_line",
        "summary": "Deactivate a vendor inventory line",
        "tags": [
          "vendor_inventory_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorInventoryLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor inventory line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorInventoryLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases": {
      "get": {
        "operationId": "list_vendor_leases",
        "summary": "List vendor leases",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "shipped_back",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: We hold the vendor's leased unit, or some of the units we leased; `shipped_back`: Every leased unit has shipped back to the vendor: close the lease once their last bill is in; `closed`: Finished: the units went back, or we bought them; `cancelled`: Called off with nothing charged",
                "x-enum-descriptions": [
                  "We hold the vendor's leased unit, or some of the units we leased",
                  "Every leased unit has shipped back to the vendor: close the lease once their last bill is in",
                  "Finished: the units went back, or we bought them",
                  "Called off with nothing charged"
                ],
                "x-enum-labels": [
                  "Open",
                  "Shipped back",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "charging[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "to_charge"
                ],
                "description": "`to_charge`: Held, or shipped back, with days no period charge covers yet",
                "x-enum-descriptions": [
                  "Held, or shipped back, with days no period charge covers yet"
                ],
                "x-enum-labels": [
                  "To charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "due_back[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: A unit is past its due-back day and still with us",
                "x-enum-descriptions": [
                  "A unit is past its due-back day and still with us"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "number",
                "-number",
                "started_on",
                "-started_on",
                "due_back_on",
                "-due_back_on",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "due_back_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, shipped_back, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLeaseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "shipped_back",
                "label": "Shipped back"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "charging",
            "label": "Charging",
            "kind": "options",
            "options": [
              {
                "value": "to_charge",
                "label": "To charge"
              }
            ]
          },
          {
            "key": "due_back",
            "label": "Due back",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "shipped_back": "Shipped back",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "rate",
            "label": "Rate",
            "field": "rate_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_rate_unit",
            "label": "Rate per",
            "field": "lease_rate_unit",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "day": "Day",
              "week": "Week",
              "month": "Month"
            }
          },
          {
            "key": "lease_minimum_days",
            "label": "Minimum days",
            "field": "lease_minimum_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_hours",
            "label": "Included hours",
            "field": "lease_included_hours",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_included_cycles",
            "label": "Included cycles",
            "field": "lease_included_cycles",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "lease_hour_fee",
            "label": "Hour fee",
            "field": "lease_hour_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_cycle_fee",
            "label": "Cycle fee",
            "field": "lease_cycle_fee_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_outright_price",
            "label": "Outright price",
            "field": "lease_outright_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lease_due_days",
            "label": "Due back in (days)",
            "field": "lease_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "started_on",
            "label": "Started",
            "field": "started_on",
            "sort": "started_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_back_on",
            "label": "Due back",
            "field": "due_back_on",
            "sort": "due_back_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "shipped_back_on",
            "label": "Shipped back",
            "field": "shipped_back_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "charged_through_on",
            "label": "Charged through",
            "field": "charged_through_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "uncharged_days",
            "label": "Uncharged days",
            "field": "uncharged_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_owed",
            "label": "Units leased",
            "field": "quantity_owed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "order",
            "label": "Order",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vendor_leases/{uuid}": {
      "get": {
        "operationId": "get_vendor_lease",
        "summary": "Retrieve a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_lease",
        "summary": "Update a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorLeaseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases/{uuid}/buy_outright": {
      "post": {
        "operationId": "buy_outright_vendor_lease",
        "summary": "Buy a vendor lease outright",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorLeaseBuyOutright"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order line it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrderLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "buy_outright",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_vendor_lease",
        "summary": "Cancel a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases/{uuid}/charge_period": {
      "post": {
        "operationId": "charge_period_vendor_lease",
        "summary": "Charge a period of a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorLeaseChargePeriod"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "charge_period",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases/{uuid}/close": {
      "post": {
        "operationId": "close_vendor_lease",
        "summary": "Close a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_leases/{vendor_lease_uuid}/trash": {
      "post": {
        "operationId": "trash_vendor_lease",
        "summary": "Trash a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "vendor_lease_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_vendor_lease",
        "summary": "Restore a vendor lease",
        "tags": [
          "vendor_leases"
        ],
        "parameters": [
          {
            "name": "vendor_lease_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorLeaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor lease",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorLease"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_part_prices": {
      "get": {
        "operationId": "list_vendor_part_prices",
        "summary": "List vendor part prices",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at",
                "created_at",
                "-created_at"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "minimum_quantity",
            "label": "Min qty",
            "field": "minimum_quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lead_time",
            "label": "Lead time",
            "field": "lead_time.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_from",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_part_price",
        "summary": "Create a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPartPriceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_part_prices/{uuid}": {
      "get": {
        "operationId": "get_vendor_part_price",
        "summary": "Retrieve a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_part_price",
        "summary": "Update a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPartPriceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_part_price",
        "summary": "Delete a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_part_prices/{uuid}/activate": {
      "post": {
        "operationId": "activate_vendor_part_price",
        "summary": "Activate a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_part_prices/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_vendor_part_price",
        "summary": "Deactivate a vendor part price",
        "tags": [
          "vendor_part_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPartPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor part price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPartPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_payments": {
      "get": {
        "operationId": "list_vendor_payments",
        "summary": "List vendor payments",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "voucher[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A voucher's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "consignor_statement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A consignor statement's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "investor_statement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An investor statement's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "unapplied",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only live payments with money left to apply to a voucher"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "paid_on",
                "-paid_on",
                "updated_at",
                "-updated_at"
              ],
              "default": "-paid_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPaymentListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPaymentList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "unapplied",
            "label": "Unapplied",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "paid_on",
            "sort": "paid_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "prepayment": "Prepayment",
              "payment": "Payment"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "applied",
            "label": "Applied",
            "field": "applied_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "applied_to",
            "label": "Applied to",
            "field": "applied_to",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "unapplied",
            "label": "Unapplied",
            "field": "unapplied_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "voided_at",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_payment",
        "summary": "Create a vendor payment",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPaymentCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_payments/{uuid}": {
      "get": {
        "operationId": "get_vendor_payment",
        "summary": "Retrieve a vendor payment",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_payments/{vendor_payment_uuid}/applications": {
      "get": {
        "operationId": "list_vendor_payment_applications",
        "summary": "List payable applications",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "vendor_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_payment_application",
        "summary": "Create a payable application",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "vendor_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayableApplicationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The payable application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_payments/{vendor_payment_uuid}/applications/{uuid}": {
      "get": {
        "operationId": "get_vendor_payment_application",
        "summary": "Retrieve a payable application",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "vendor_payment_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The payable application",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplication"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_payments/{uuid}/void": {
      "post": {
        "operationId": "void_vendor_payment",
        "summary": "Void a vendor payment",
        "tags": [
          "vendor_payments"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "applications"
                ]
              }
            },
            "description": "Inline `applications` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorPaymentField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorPayment"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "void",
        "x-risk": "destructive",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_quote_lines": {
      "get": {
        "operationId": "list_vendor_quote_lines_across_documents",
        "summary": "List vendor quote lines across every document",
        "tags": [
          "vendor_quote_lines"
        ],
        "parameters": [
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unanswered",
                  "quoted",
                  "declined"
                ],
                "description": "`unanswered`: No answer from the vendor recorded yet; `quoted`: The vendor answered with a price; `declined`: The vendor declined to quote",
                "x-enum-descriptions": [
                  "No answer from the vendor recorded yet",
                  "The vendor answered with a price",
                  "The vendor declined to quote"
                ],
                "x-enum-labels": [
                  "Unanswered",
                  "Quoted",
                  "Declined"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor_rfq_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A vendor RFQ line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sourcing request"
              }
            },
            "description": "Leaves out the lines `sourcing_request[]` would list: a part's price history beside a request, without the request's own",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "quantity",
                "-quantity",
                "answered_at",
                "-answered_at",
                "unit_cost_cents",
                "-unit_cost_cents",
                "home_unit_cost_cents",
                "-home_unit_cost_cents",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "vendor",
            "label": "Company",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "dated",
            "label": "Dated",
            "kind": "range"
          },
          {
            "key": "priced",
            "label": "Priced only",
            "kind": "toggle"
          },
          {
            "key": "request_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "outright",
                "label": "Outright"
              },
              {
                "value": "exchange",
                "label": "Exchange"
              }
            ]
          },
          {
            "key": "response",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "unanswered",
                "label": "Unanswered"
              },
              {
                "value": "quoted",
                "label": "Quoted"
              },
              {
                "value": "declined",
                "label": "Declined"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "record",
            "label": "Record",
            "field": "vendor_rfq.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "counterparty",
            "label": "Company",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "request_type",
            "label": "Type",
            "field": "request_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "outright": "Outright",
              "exchange": "Exchange"
            }
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": "home_unit_cost_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lead_time",
            "label": "Lead time",
            "field": "lead_time.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "answered_at",
            "label": "Answered",
            "field": "answered_at",
            "sort": "answered_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "position",
            "label": "Line",
            "field": "position",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "minimum_quantity",
            "label": "Minimum quantity",
            "field": "minimum_quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "line_total",
            "label": "Line total",
            "field": "line_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_charge",
            "label": "Core charge",
            "field": "core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "core_due_days",
            "label": "Core due days",
            "field": "core_due_days",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "vendor_remarks",
            "label": "Vendor remarks",
            "field": "vendor_remarks",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_by",
            "label": "Tagged by",
            "field": "tagged_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "tagged_on",
            "label": "Tagged on",
            "field": "tagged_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "date_of_manufacture",
            "label": "Date of manufacture",
            "field": "date_of_manufacture",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "charge_code",
            "label": "Charge code",
            "field": "charge.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "purchase_order",
            "label": "Purchase order",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "valid_until",
            "label": "Valid until",
            "field": "vendor_rfq_valid_until",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor_approval",
            "label": "Approval",
            "field": "vendor_approval",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vendor_repair_prices": {
      "get": {
        "operationId": "list_vendor_repair_prices",
        "summary": "List vendor repair prices",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "non_oem_allowance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "oem",
                  "pma",
                  "der",
                  "pma_der"
                ],
                "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                "x-enum-descriptions": [
                  "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                  "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                  "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                  "PMA parts and DER repairs both allowed"
                ],
                "x-enum-labels": [
                  "OEM only",
                  "PMA parts",
                  "DER repairs",
                  "PMA parts and DER repairs"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at",
                "created_at",
                "-created_at"
              ],
              "default": "-updated_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPriceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "repair_service",
            "label": "Service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "non_oem_allowance",
            "label": "Non-OEM allowed",
            "kind": "options",
            "options": [
              {
                "value": "oem",
                "label": "OEM only"
              },
              {
                "value": "pma",
                "label": "PMA parts"
              },
              {
                "value": "der",
                "label": "DER repairs"
              },
              {
                "value": "pma_der",
                "label": "PMA parts and DER repairs"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          },
          {
            "key": "standard_code",
            "label": "Standard grade",
            "kind": "options",
            "options": [
              {
                "value": "FN",
                "label": "FN — Factory new"
              },
              {
                "value": "NE",
                "label": "NE — New"
              },
              {
                "value": "NS",
                "label": "NS — New surplus"
              },
              {
                "value": "OH",
                "label": "OH — Overhauled"
              },
              {
                "value": "RD",
                "label": "RD — Repaired"
              },
              {
                "value": "IN",
                "label": "IN — Inspected"
              },
              {
                "value": "SV",
                "label": "SV — Serviceable"
              },
              {
                "value": "AR",
                "label": "AR — As removed"
              },
              {
                "value": "RP",
                "label": "RP — Repairable"
              },
              {
                "value": "BER",
                "label": "BER — Beyond economical repair"
              }
            ]
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "minimum_quantity",
            "label": "Min qty",
            "field": "minimum_quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "unit_cost",
            "label": "Unit cost",
            "field": "unit_cost_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "notes",
            "label": "Notes",
            "field": "notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_at",
            "label": "Updated",
            "field": "updated_at",
            "sort": "updated_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "non_oem_allowance",
            "label": "Non-OEM allowed",
            "field": "non_oem_allowance",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "oem": "OEM only",
              "pma": "PMA parts",
              "der": "DER repairs",
              "pma_der": "PMA parts and DER repairs"
            }
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "lead_time",
            "label": "Lead time",
            "field": "lead_time.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "in_effect",
            "label": "In effect",
            "field": "effective_from",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Description",
            "field": "part_description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": null,
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_repair_price",
        "summary": "Create a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRepairPriceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_repair_prices/{uuid}": {
      "get": {
        "operationId": "get_vendor_repair_price",
        "summary": "Retrieve a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_repair_price",
        "summary": "Update a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRepairPriceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_repair_price",
        "summary": "Delete a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_repair_prices/{uuid}/activate": {
      "post": {
        "operationId": "activate_vendor_repair_price",
        "summary": "Activate a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_repair_prices/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_vendor_repair_price",
        "summary": "Deactivate a vendor repair price",
        "tags": [
          "vendor_repair_prices"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRepairPriceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor repair price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRepairPrice"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns": {
      "get": {
        "operationId": "list_vendor_returns",
        "summary": "List vendor returns",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "closed",
                  "cancelled"
                ],
                "description": "`open`: Parts are being sent back to the vendor; `closed`: Finished; anything not shipped back stays with us; `cancelled`: Called off before anything shipped",
                "x-enum-descriptions": [
                  "Parts are being sent back to the vendor",
                  "Finished; anything not shipped back stays with us",
                  "Called off before anything shipped"
                ],
                "x-enum-labels": [
                  "Open",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inventory_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An inventory line's uuid"
              }
            },
            "description": "Returns holding, or having shipped back, any of these inventory lines",
            "explode": true
          },
          {
            "name": "uncredited",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only returns shipped back on a creditable receipt with no vendor credit yet"
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, open, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturnList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "open",
                "label": "Open"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "open": "Open",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "order",
            "label": "Order",
            "field": "purchase_order.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "consignment",
            "label": "Consignment",
            "field": "consignment",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "credit",
            "label": "Credit",
            "field": "credit.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "creditable_quantity",
            "label": "Creditable units",
            "field": "quantity_creditable",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "creditable",
            "label": "Creditable amount",
            "field": "creditable_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "lines",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "units",
            "label": "Units",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "shipped",
            "label": "Shipped",
            "field": "quantity_shipped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          }
        ]
      }
    },
    "/vendor_returns/{uuid}": {
      "get": {
        "operationId": "get_vendor_return",
        "summary": "Retrieve a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines"
                ]
              }
            },
            "description": "Inline `lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_return",
        "summary": "Update a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines"
                ]
              }
            },
            "description": "Inline `lines` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorReturnUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_vendor_return",
        "summary": "Cancel a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns/{uuid}/close": {
      "post": {
        "operationId": "close_vendor_return",
        "summary": "Close a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns/{uuid}/credit": {
      "post": {
        "operationId": "credit_vendor_return",
        "summary": "Credit a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorReturnCredit"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The voucher it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "credit",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns/{vendor_return_uuid}/lines": {
      "get": {
        "operationId": "list_vendor_return_lines",
        "summary": "List vendor return lines",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "vendor_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "receipt[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A receipt's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "receipt",
                "-receipt",
                "quantity",
                "-quantity",
                "part_number",
                "-part_number",
                "part_description",
                "-part_description",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturnLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "receipt",
            "label": "Receipt",
            "kind": "options",
            "references": [
              "receipt"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "shipped_quantity",
            "label": "Shipped",
            "field": "quantity_shipped",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "outstanding_quantity",
            "label": "Outstanding",
            "field": "quantity_outstanding",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": "part_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_description",
            "label": "Part description",
            "field": "part_description",
            "sort": "part_description",
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition_code",
            "label": "Condition",
            "field": "condition_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "receipt",
            "label": "Receipt",
            "field": "receipt.identifier",
            "sort": "receipt",
            "kind": "text",
            "currency": null
          },
          {
            "key": "inventory_line",
            "label": "Inventory line",
            "field": "inventory_line.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "rejection",
            "label": "Rejection",
            "field": "rejection.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "releases",
            "label": "Shipped on",
            "field": "releases.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vendor_returns/{vendor_return_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_vendor_return_line",
        "summary": "Retrieve a vendor return line",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "vendor_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturnLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_returns/{vendor_return_uuid}/trash": {
      "post": {
        "operationId": "trash_vendor_return",
        "summary": "Trash a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "vendor_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_vendor_return",
        "summary": "Restore a vendor return",
        "tags": [
          "vendor_returns"
        ],
        "parameters": [
          {
            "name": "vendor_return_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorReturnField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor return",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorReturn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "purchasing:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfq_lines": {
      "get": {
        "operationId": "list_vendor_rfq_lines",
        "summary": "List vendor RFQ lines",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor_rfq[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A vendor RFQ's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unanswered",
                  "quoted",
                  "declined"
                ],
                "description": "`unanswered`: No answer from the vendor recorded yet; `quoted`: The vendor answered with a price; `declined`: The vendor declined to quote",
                "x-enum-descriptions": [
                  "No answer from the vendor recorded yet",
                  "The vendor answered with a price",
                  "The vendor declined to quote"
                ],
                "x-enum-labels": [
                  "Unanswered",
                  "Quoted",
                  "Declined"
                ]
              }
            },
            "description": "Rows matching any of the values given. Only beside `vendor_rfq[]`, since it is worked out row by row",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfqLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "response",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "unanswered",
                "label": "Unanswered"
              },
              {
                "value": "quoted",
                "label": "Quoted"
              },
              {
                "value": "declined",
                "label": "Declined"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_rfq_line",
        "summary": "Create a vendor RFQ line",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfq_lines/{uuid}": {
      "get": {
        "operationId": "get_vendor_rfq_line",
        "summary": "Retrieve a vendor RFQ line",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_rfq_line",
        "summary": "Update a vendor RFQ line",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfqLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_rfq_line",
        "summary": "Delete a vendor RFQ line",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfq_lines/{uuid}/quote": {
      "post": {
        "operationId": "quote_vendor_rfq_line",
        "summary": "Quote a vendor RFQ line",
        "tags": [
          "vendor_rfq_lines"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqLineQuote"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor quote line it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "quote",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs": {
      "get": {
        "operationId": "list_vendor_rfqs",
        "summary": "List vendor RFQs",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "awaiting",
                  "answered",
                  "declined",
                  "converted",
                  "expired"
                ],
                "description": "`awaiting`: Sent, with lines the vendor has not answered; `answered`: The vendor quoted at least one line; `declined`: The vendor answered every line with no quote; `converted`: A quoted line was bought on a purchase order; `expired`: Past the vendor quote's valid-until date",
                "x-enum-descriptions": [
                  "Sent, with lines the vendor has not answered",
                  "The vendor quoted at least one line",
                  "The vendor answered every line with no quote",
                  "A quoted line was bought on a purchase order",
                  "Past the vendor quote's valid-until date"
                ],
                "x-enum-labels": [
                  "Awaiting",
                  "Answered",
                  "Declined",
                  "Converted",
                  "Expired"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "sent",
                  "closed",
                  "cancelled"
                ],
                "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; answers may still come back; `closed`: Closed once the vendor's answers were in; `cancelled`: Called off; nothing more is asked",
                "x-enum-descriptions": [
                  "Being written; not yet sent to the vendor",
                  "Sent to the vendor; answers may still come back",
                  "Closed once the vendor's answers were in",
                  "Called off; nothing more is asked"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Sent",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "sent_at",
                "-sent_at",
                "priority",
                "-priority",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-priority"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `priority` sorts in its own order, routine, expedite, critical, aog, not the alphabet. `status` sorts in its own order, draft, sent, closed, cancelled, not the alphabet. Rows equal under the sort follow by `created_at`, then uuid, the sort's way, but ascending beside a `sourcing_request[]` filter. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfqList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "sent",
                "label": "Sent"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "priority",
            "label": "Priority",
            "kind": "options",
            "options": [
              {
                "value": "aog",
                "label": "AOG"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "routine",
                "label": "Routine"
              }
            ]
          },
          {
            "key": "state",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "awaiting",
                "label": "Awaiting"
              },
              {
                "value": "answered",
                "label": "Answered"
              },
              {
                "value": "declined",
                "label": "Declined"
              },
              {
                "value": "converted",
                "label": "Converted"
              },
              {
                "value": "expired",
                "label": "Expired"
              }
            ]
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "sent": "Sent",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "vendor_quote_number",
            "label": "Vendor quote number",
            "field": "vendor_quote_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "need_by",
            "label": "Need by",
            "field": "need_by",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "valid_until",
            "label": "Valid until",
            "field": "valid_until",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "sent_at",
            "label": "Sent",
            "field": "sent_at",
            "sort": "sent_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "response",
            "label": "Response",
            "field": "states",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "awaiting": "Awaiting",
              "answered": "Answered",
              "declined": "Declined",
              "converted": "Converted",
              "expired": "Expired"
            }
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "editable",
            "label": "Editable",
            "field": "editable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "freight_term",
            "label": "Freight terms",
            "field": "freight_term.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "clause",
            "label": "Clause",
            "field": "clause.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ship_via",
            "label": "Ship via",
            "field": "ship_via",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "asked",
            "label": "Asked",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted",
            "label": "Quoted",
            "field": "quote_line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "requested_quantity",
            "label": "Requested units",
            "field": "quantity_requested",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quoted_quantity",
            "label": "Quoted units",
            "field": "quantity_quoted",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Quoted total",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home total",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "orderable",
            "label": "Orderable",
            "field": "orderable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "priority",
            "label": "Priority",
            "field": "priority",
            "sort": "priority",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "contingent_core_charge",
            "label": "Core charge if unreturned",
            "field": "contingent_core_charge_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_rfq",
        "summary": "Create a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "quote_lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `quote_lines`, `rfq_lines`, `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/external_keys/{system}/{key}": {
      "get": {
        "operationId": "get_vendor_rfq_by_external_key",
        "summary": "Retrieve a vendor RFQ by its external key",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 255,
              "description": "What that system calls the record, percent-encoded"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "quote_lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `quote_lines`, `rfq_lines`, `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}": {
      "get": {
        "operationId": "get_vendor_rfq",
        "summary": "Retrieve a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "quote_lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `quote_lines`, `rfq_lines`, `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_rfq",
        "summary": "Update a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "quote_lines",
                  "rfq_lines",
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `external_keys`, `quote_lines`, `rfq_lines`, `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/align_lines": {
      "post": {
        "operationId": "align_lines_vendor_rfq",
        "summary": "Align the lines of a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "align_lines",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_vendor_rfq",
        "summary": "Cancel a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": [
          "sales:manage",
          "purchasing:manage"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/close": {
      "post": {
        "operationId": "close_vendor_rfq",
        "summary": "Close a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "close",
        "x-risk": "reversible",
        "x-grant": [
          "sales:manage",
          "purchasing:manage"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/copy": {
      "post": {
        "operationId": "copy_vendor_rfq",
        "summary": "Copy a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqCopy"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor RFQ it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "copy",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/decline": {
      "post": {
        "operationId": "decline_vendor_rfq",
        "summary": "Decline a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "decline",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/email": {
      "post": {
        "operationId": "email_vendor_rfq",
        "summary": "Email an RFQ",
        "description": "Emails the RFQ's form as a PDF from the organization's sending address, tied to the RFQ's conversation and narrated `emailed`. A draft is marked sent first, as `POST /vendor_rfqs/{uuid}/send` would; a failure after that leaves it sent, and the refusal says so. A sent one goes out again unchanged",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          },
          "503": {
            "$ref": "#/components/responses/503"
          }
        },
        "x-verb": "email",
        "x-risk": "destructive",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests",
          "email_unanswered"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/external_keys": {
      "get": {
        "operationId": "list_vendor_rfq_external_keys",
        "summary": "List a vendor RFQ's external keys",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "linked_at",
                "-linked_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "linked_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKeyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/external_keys/{system}": {
      "get": {
        "operationId": "get_vendor_rfq_external_key",
        "summary": "Retrieve a vendor RFQ by its external key",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_rfq_external_key",
        "summary": "Link a vendor RFQ's external key",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ExternalKeyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExternalKeyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The external key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalKey"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_rfq_external_key",
        "summary": "Unlink a vendor RFQ's external key",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "system",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The external system's `code`, in any case"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/import_rfq_lines": {
      "post": {
        "operationId": "import_rfq_lines_vendor_rfq",
        "summary": "Import RFQ lines into a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqImportRfqLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "import_rfq_lines",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/order": {
      "post": {
        "operationId": "order_vendor_rfq",
        "summary": "Order a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "order",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/preview_email": {
      "post": {
        "operationId": "preview_email_vendor_rfq",
        "summary": "Preview an RFQ's email",
        "description": "Renders the email `POST /vendor_rfqs/{uuid}/email` would send from the same words, in the organization's layout, with its images at their hosted addresses rather than inside it. Nothing is saved or sent, and a draft stays a draft",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/EmailPreviewField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqPreviewEmail"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The email as it would go out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailPreview"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "preview_email",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/quote_lines": {
      "get": {
        "operationId": "list_vendor_quote_lines",
        "summary": "List vendor quote lines",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dated",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "part",
                  "charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "condition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A condition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "standard_code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "FN",
                  "NE",
                  "NS",
                  "OH",
                  "RD",
                  "IN",
                  "SV",
                  "AR",
                  "RP",
                  "BER"
                ],
                "description": "`FN`: Factory new: from the manufacturer, never installed, with its original certification; `NE`: New: never installed, with a release certificate; `NS`: New surplus: never installed, from surplus stock, possibly past its shelf certification; `OH`: Overhauled: restored to the manufacturer's overhaul standard by a repair station; `RD`: Repaired: returned to service by a repair station, short of a full overhaul; `IN`: Inspected: inspected or tested by a repair station and found serviceable; `SV`: Serviceable: fit for installation, with a release certificate; `AR`: As removed: taken off an aircraft, not yet inspected; `RP`: Repairable: unserviceable, but worth repairing; `BER`: Beyond economical repair: not worth restoring; scrap or parts value",
                "x-enum-descriptions": [
                  "Factory new: from the manufacturer, never installed, with its original certification",
                  "New: never installed, with a release certificate",
                  "New surplus: never installed, from surplus stock, possibly past its shelf certification",
                  "Overhauled: restored to the manufacturer's overhaul standard by a repair station",
                  "Repaired: returned to service by a repair station, short of a full overhaul",
                  "Inspected: inspected or tested by a repair station and found serviceable",
                  "Serviceable: fit for installation, with a release certificate",
                  "As removed: taken off an aircraft, not yet inspected",
                  "Repairable: unserviceable, but worth repairing",
                  "Beyond economical repair: not worth restoring; scrap or parts value"
                ],
                "x-enum-labels": [
                  "FN — Factory new",
                  "NE — New",
                  "NS — New surplus",
                  "OH — Overhauled",
                  "RD — Repaired",
                  "IN — Inspected",
                  "SV — Serviceable",
                  "AR — As removed",
                  "RP — Repairable",
                  "BER — Beyond economical repair"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "priced",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` for the lines that carry a price; `false` for the lines that don't"
          },
          {
            "name": "response[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unanswered",
                  "quoted",
                  "declined"
                ],
                "description": "`unanswered`: No answer from the vendor recorded yet; `quoted`: The vendor answered with a price; `declined`: The vendor declined to quote",
                "x-enum-descriptions": [
                  "No answer from the vendor recorded yet",
                  "The vendor answered with a price",
                  "The vendor declined to quote"
                ],
                "x-enum-labels": [
                  "Unanswered",
                  "Quoted",
                  "Declined"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "order_state[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "ordered",
                  "unordered"
                ],
                "description": "`ordered`: Bought on a purchase order; `unordered`: Not bought on any purchase order yet",
                "x-enum-descriptions": [
                  "Bought on a purchase order",
                  "Not bought on any purchase order yet"
                ],
                "x-enum-labels": [
                  "Ordered",
                  "Unordered"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "orderable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only priced lines no purchase order holds yet whose RFQ line none has been bought for, which `POST /vendor_rfqs/{uuid}/order` takes"
          },
          {
            "name": "vendor_rfq_line[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A vendor RFQ line's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "request_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "outright",
                  "exchange"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A sourcing request's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "not_sourcing_request[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a sourcing request"
              }
            },
            "description": "Leaves out the lines `sourcing_request[]` would list: a part's price history beside a request, without the request's own",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "response",
            "label": "Response",
            "kind": "options",
            "options": [
              {
                "value": "unanswered",
                "label": "Unanswered"
              },
              {
                "value": "quoted",
                "label": "Quoted"
              },
              {
                "value": "declined",
                "label": "Declined"
              }
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "kind": "options",
            "references": [
              "condition"
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_vendor_quote_line",
        "summary": "Create a vendor quote line",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorQuoteLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The vendor quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/quote_lines/{uuid}": {
      "get": {
        "operationId": "get_vendor_quote_line",
        "summary": "Retrieve a vendor quote line",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_vendor_quote_line",
        "summary": "Update a vendor quote line",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorQuoteLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorQuoteLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor quote line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorQuoteLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_vendor_quote_line",
        "summary": "Delete a vendor quote line",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/record_requests": {
      "post": {
        "operationId": "record_requests_vendor_rfq",
        "summary": "Record requests on a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqRecordRequests"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "record_requests",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/resolve_part_numbers": {
      "post": {
        "operationId": "resolve_part_numbers_vendor_rfq",
        "summary": "Resolve the part numbers on a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqResolvePartNumbers"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resolve_part_numbers",
        "x-risk": "reversible",
        "x-grant": "catalog:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/revise_quote_lines": {
      "post": {
        "operationId": "revise_quote_lines_vendor_rfq",
        "summary": "Revise the quote lines of a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqReviseQuoteLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_quote_lines",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/revise_rfq_lines": {
      "post": {
        "operationId": "revise_rfq_lines_vendor_rfq",
        "summary": "Revise the RFQ lines of a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRfqReviseRfqLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_rfq_lines",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{uuid}/send": {
      "post": {
        "operationId": "send_vendor_rfq",
        "summary": "Send a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "send",
        "x-risk": "reversible",
        "x-grant": [
          "sales:write",
          "purchasing:write"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/shareable_files": {
      "get": {
        "operationId": "list_vendor_rfq_shareable_files",
        "summary": "List shareable files",
        "description": "The files an RFQ offers to share with the vendor's people: its printed form, then its own files",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ShareableFileListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareableFileList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/vendor_rfqs/{vendor_rfq_uuid}/trash": {
      "post": {
        "operationId": "trash_vendor_rfq",
        "summary": "Trash a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": [
          "sales:manage",
          "purchasing:manage"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_vendor_rfq",
        "summary": "Restore a vendor RFQ",
        "tags": [
          "vendor_rfqs"
        ],
        "parameters": [
          {
            "name": "vendor_rfq_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unlinked_part_numbers",
                  "sourcing_request_quantities",
                  "email_drafts",
                  "email_senders"
                ]
              }
            },
            "description": "Inline `unlinked_part_numbers`, `sourcing_request_quantities`, `email_drafts`, or `email_senders` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VendorRfqField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The vendor RFQ",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VendorRfq"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": [
          "sales:manage",
          "purchasing:manage"
        ],
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/view_openings": {
      "get": {
        "operationId": "get_view_openings",
        "summary": "Retrieve the view openings",
        "tags": [
          "view_openings"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewOpeningsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The view openings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewOpenings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/views": {
      "get": {
        "operationId": "list_views",
        "summary": "List views",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "resource[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "context[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audiences"
                ]
              }
            },
            "description": "Inline `audiences` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_view",
        "summary": "Create a view",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audiences"
                ]
              }
            },
            "description": "Inline `audiences` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The view",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/View"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/views/{uuid}": {
      "get": {
        "operationId": "get_view",
        "summary": "Retrieve a view",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audiences"
                ]
              }
            },
            "description": "Inline `audiences` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The view",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/View"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_view",
        "summary": "Update a view",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "audiences"
                ]
              }
            },
            "description": "Inline `audiences` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The view",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/View"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_view",
        "summary": "Delete a view",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/views/{view_uuid}/audiences": {
      "get": {
        "operationId": "list_view_audiences",
        "summary": "List view audiences",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewAudienceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewAudienceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_view_audience",
        "summary": "Create a view audience",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewAudienceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The view audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/views/{view_uuid}/audiences/{uuid}": {
      "get": {
        "operationId": "get_view_audience",
        "summary": "Retrieve a view audience",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The view audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_view_audience",
        "summary": "Update a view audience",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewAudienceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewAudienceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The view audience",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewAudience"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_view_audience",
        "summary": "Delete a view audience",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/views/{view_uuid}/personalization": {
      "get": {
        "operationId": "get_view_personalization",
        "summary": "Retrieve a view personalization",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewPersonalizationField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The view personalization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewPersonalization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_view_personalization",
        "summary": "Update a view personalization",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ViewPersonalizationField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViewPersonalizationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The view personalization",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewPersonalization"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_view_personalization",
        "summary": "Reset your personalization of a view",
        "description": "Puts the view back as it was given to you: your fields, sections, sort and direction are cleared, and whether it opens by default for you is kept. Nothing is deleted: a later read answers the view's own columns and sort",
        "tags": [
          "views"
        ],
        "parameters": [
          {
            "name": "view_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Reset"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers": {
      "get": {
        "operationId": "list_vouchers",
        "summary": "List vouchers",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "settlement[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "unpaid",
                  "partially_paid",
                  "paid",
                  "overpaid",
                  "credited",
                  "corrected"
                ],
                "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
                "x-enum-descriptions": [
                  "Owed in full: nothing paid yet",
                  "Some of it paid, a balance left",
                  "Payments cleared the balance",
                  "Payments came to more than was owed",
                  "Credits cleared the balance with no payment",
                  "Corrections cleared the balance with no payment or credit"
                ],
                "x-enum-labels": [
                  "Unpaid",
                  "Partially paid",
                  "Paid",
                  "Overpaid",
                  "Credited",
                  "Corrected"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "due[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overdue"
                ],
                "description": "`overdue`: Still owed past its due date",
                "x-enum-descriptions": [
                  "Still owed past its due date"
                ],
                "x-enum-labels": [
                  "Overdue"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "draft",
                  "approved",
                  "cancelled"
                ],
                "description": "`draft`: Being entered from the vendor's bill; not yet approved; `approved`: Approved and posted; what it bills is owed to the vendor; `cancelled`: Called off before approval; nothing is owed on it",
                "x-enum-descriptions": [
                  "Being entered from the vendor's bill; not yet approved",
                  "Approved and posted; what it bills is owed to the vendor",
                  "Called off before approval; nothing is owed on it"
                ],
                "x-enum-labels": [
                  "Draft",
                  "Approved",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "vendor[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "source_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "purchase_order",
                  "repair_order",
                  "vendor_return",
                  "voucher"
                ],
                "description": "`purchase_order`: Bills what a purchase order received; `repair_order`: Bills a repair order's work; `vendor_return`: Credits what went back to the vendor; `voucher`: Corrects a voucher already approved",
                "x-enum-descriptions": [
                  "Bills what a purchase order received",
                  "Bills a repair order's work",
                  "Credits what went back to the vendor",
                  "Corrects a voucher already approved"
                ],
                "x-enum-labels": [
                  "Purchase order",
                  "Repair order",
                  "Vendor return",
                  "Voucher"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "purchase_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A purchase order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "repair_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "bill",
                  "credit",
                  "correction"
                ],
                "description": "`bill`: The vendor's bill for what an order bought or repaired; `credit`: The vendor's credit for what was returned to them; `correction`: Corrects a voucher already approved",
                "x-enum-descriptions": [
                  "The vendor's bill for what an order bought or repaired",
                  "The vendor's credit for what was returned to them",
                  "Corrects a voucher already approved"
                ],
                "x-enum-labels": [
                  "Voucher",
                  "Credit",
                  "Correction"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "invoice_date",
                "-invoice_date",
                "approved_at",
                "-approved_at",
                "status",
                "-status",
                "settlement",
                "-settlement",
                "due_on",
                "-due_on",
                "payment_term",
                "-payment_term",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, draft, approved, cancelled, not the alphabet. `settlement` sorts in its own order, unpaid, partially_paid, paid, overpaid, credited, corrected, not the alphabet. `payment_term` sorts only beside a single `purchase_order[]` or `repair_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoucherList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "draft",
                "label": "Draft"
              },
              {
                "value": "approved",
                "label": "Approved"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Kind",
            "kind": "options",
            "options": [
              {
                "value": "bill",
                "label": "Voucher"
              },
              {
                "value": "credit",
                "label": "Credit"
              },
              {
                "value": "correction",
                "label": "Correction"
              }
            ]
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "kind": "options",
            "options": [
              {
                "value": "unpaid",
                "label": "Unpaid"
              },
              {
                "value": "partially_paid",
                "label": "Partially paid"
              },
              {
                "value": "paid",
                "label": "Paid"
              },
              {
                "value": "overpaid",
                "label": "Overpaid"
              },
              {
                "value": "credited",
                "label": "Credited"
              },
              {
                "value": "corrected",
                "label": "Corrected"
              }
            ]
          },
          {
            "key": "due",
            "label": "Due",
            "kind": "options",
            "options": [
              {
                "value": "overdue",
                "label": "Overdue"
              }
            ]
          },
          {
            "key": "source_type",
            "label": "Source type",
            "kind": "options",
            "options": [
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "vendor_return",
                "label": "Vendor return"
              },
              {
                "value": "voucher",
                "label": "Voucher"
              }
            ]
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "draft": "Draft",
              "approved": "Approved",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "invoice_number",
            "label": "Invoice number",
            "field": "invoice_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "invoice_date",
            "label": "Invoice date",
            "field": "invoice_date",
            "sort": "invoice_date",
            "kind": "date",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "external_notes",
            "label": "External notes",
            "field": "external_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Kind",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "bill": "Voucher",
              "credit": "Credit",
              "correction": "Correction"
            }
          },
          {
            "key": "editable",
            "label": "Editable",
            "field": "editable",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "approved_at",
            "label": "Approved",
            "field": "approved_at",
            "sort": "approved_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "payment_term",
            "label": "Payment terms",
            "field": "payment_term.name",
            "sort": "payment_term",
            "kind": "text",
            "currency": null,
            "beside": [
              "purchase_order",
              "repair_order"
            ]
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "total",
            "label": "Total",
            "field": "total_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "home_total",
            "label": "Home total",
            "field": "home_total_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "ordered",
            "label": "Ordered",
            "field": "ordered_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "variance",
            "label": "Variance",
            "field": "variance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "charges",
            "label": "Charges",
            "field": "charges_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "inventory_variance",
            "label": "Inventory variance",
            "field": "inventory_variance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "paid",
            "label": "Paid",
            "field": "paid_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "credited",
            "label": "Credited",
            "field": "credited_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "balance",
            "label": "Balance",
            "field": "balance_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "settlement",
            "label": "Settlement",
            "field": "settlement",
            "sort": "settlement",
            "kind": "text",
            "currency": null,
            "labels": {
              "unpaid": "Unpaid",
              "partially_paid": "Partially paid",
              "paid": "Paid",
              "overpaid": "Overpaid",
              "credited": "Credited",
              "corrected": "Corrected"
            }
          },
          {
            "key": "vendor",
            "label": "Vendor",
            "field": "vendor.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "source",
            "label": "Source",
            "field": "source",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vouchers/{uuid}": {
      "get": {
        "operationId": "get_voucher",
        "summary": "Retrieve a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `lines` or `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_voucher",
        "summary": "Update a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lines",
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `lines` or `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoucherUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{voucher_uuid}/applications": {
      "get": {
        "operationId": "list_voucher_applications",
        "summary": "List payable applications",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "payment",
                  "credit"
                ],
                "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
                "x-enum-descriptions": [
                  "Money the counterparty paid, or we paid them",
                  "A credit memo or vendor credit's line, applied to the bill"
                ],
                "x-enum-labels": [
                  "Payment",
                  "Credit"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "recorded",
                  "voided",
                  "applied"
                ],
                "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
                "x-enum-descriptions": [
                  "A payment that counts toward the bill's settlement",
                  "Its payment was voided, so it counts for nothing",
                  "A credit that counts toward the bill's settlement"
                ],
                "x-enum-labels": [
                  "Recorded",
                  "Voided",
                  "Applied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "applied_on",
                "-applied_on",
                "amount_cents",
                "-amount_cents",
                "kind",
                "-kind",
                "reference",
                "-reference",
                "creator",
                "-creator",
                "updated_at",
                "-updated_at"
              ],
              "default": "-applied_on"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `created_at`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PayableApplicationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayableApplicationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "payment",
                "label": "Payment"
              },
              {
                "value": "credit",
                "label": "Credit"
              }
            ]
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "recorded",
                "label": "Recorded"
              },
              {
                "value": "voided",
                "label": "Voided"
              },
              {
                "value": "applied",
                "label": "Applied"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "dated_on",
            "label": "Date",
            "field": "applied_on",
            "sort": "applied_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": "kind",
            "kind": "text",
            "currency": null,
            "labels": {
              "payment": "Payment",
              "credit": "Credit"
            }
          },
          {
            "key": "reference",
            "label": "Reference",
            "field": "reference",
            "sort": "reference",
            "kind": "text",
            "currency": null
          },
          {
            "key": "amount",
            "label": "Amount",
            "field": "amount_cents",
            "sort": "amount_cents",
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "recorded": "Recorded",
              "voided": "Voided",
              "applied": "Applied"
            }
          },
          {
            "key": "creator",
            "label": "Recorded by",
            "field": "creator.name",
            "sort": "creator",
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/vouchers/{uuid}/approve": {
      "post": {
        "operationId": "approve_voucher",
        "summary": "Approve a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "approve",
        "x-risk": "reversible",
        "x-grant": "accounting:approve",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_voucher",
        "summary": "Cancel a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{uuid}/correct": {
      "post": {
        "operationId": "correct_voucher",
        "summary": "Correct a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoucherCorrect"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The voucher it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "correct",
        "x-risk": "reversible",
        "x-grant": "accounting:void",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{voucher_uuid}/lines": {
      "get": {
        "operationId": "list_voucher_lines",
        "summary": "List voucher lines",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "source[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receipt",
                  "charge"
                ],
                "description": "`receipt`: Bills parts received, matched against their receipt; `charge`: Bills a charge, such as freight or a fee",
                "x-enum-descriptions": [
                  "Bills parts received, matched against their receipt",
                  "Bills a charge, such as freight or a fee"
                ],
                "x-enum-labels": [
                  "Receipt",
                  "Charge"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "variance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "matched",
                  "varied"
                ],
                "description": "`matched`: The billed total equals what was ordered; `varied`: The billed total differs from what was ordered",
                "x-enum-descriptions": [
                  "The billed total equals what was ordered",
                  "The billed total differs from what was ordered"
                ],
                "x-enum-labels": [
                  "Matched",
                  "Varied"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherLineListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoucherLineList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "source",
            "label": "Source",
            "kind": "options",
            "options": [
              {
                "value": "receipt",
                "label": "Receipt"
              },
              {
                "value": "charge",
                "label": "Charge"
              }
            ]
          },
          {
            "key": "variance",
            "label": "Variance",
            "kind": "options",
            "options": [
              {
                "value": "matched",
                "label": "Matched"
              },
              {
                "value": "varied",
                "label": "Varied"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_voucher_line",
        "summary": "Create a voucher line",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoucherLineCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The voucher line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoucherLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{voucher_uuid}/lines/{uuid}": {
      "get": {
        "operationId": "get_voucher_line",
        "summary": "Retrieve a voucher line",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoucherLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_voucher_line",
        "summary": "Update a voucher line",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherLineField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoucherLineUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The voucher line",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoucherLine"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_voucher_line",
        "summary": "Delete a voucher line",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{uuid}/revise_lines": {
      "post": {
        "operationId": "revise_lines_voucher",
        "summary": "Revise the lines of a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoucherReviseLines"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_lines",
        "x-risk": "reversible",
        "x-grant": "accounting:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/vouchers/{voucher_uuid}/trash": {
      "post": {
        "operationId": "trash_voucher",
        "summary": "Trash a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_voucher",
        "summary": "Restore a voucher",
        "tags": [
          "vouchers"
        ],
        "parameters": [
          {
            "name": "voucher_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "billed_on_another_order"
                ]
              }
            },
            "description": "Inline `billed_on_another_order` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/VoucherField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The voucher",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Voucher"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "accounting:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/warehouse_work/items": {
      "get": {
        "operationId": "list_warehouse_work_items",
        "summary": "List warehouse work items",
        "tags": [
          "warehouse_work"
        ],
        "parameters": [
          {
            "name": "step[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pick",
                  "check",
                  "ship",
                  "receive"
                ],
                "description": "`pick`: A release with a part line not yet picked; `check`: A release with a picked line waiting on its outbound QC checklist; `ship`: A release with a line picked and checked, or picked where no checklist runs; `receive`: An order owed goods with a line due by today",
                "x-enum-descriptions": [
                  "A release with a part line not yet picked",
                  "A release with a picked line waiting on its outbound QC checklist",
                  "A release with a line picked and checked, or picked where no checklist runs",
                  "An order owed goods with a line due by today"
                ],
                "x-enum-labels": [
                  "Pick",
                  "Check",
                  "Ship",
                  "Receive"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "urgency[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "expedite",
                  "critical",
                  "aog"
                ],
                "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
                "x-enum-descriptions": [
                  "Ordinary lead time; no rush",
                  "Needed sooner than usual; moves ahead of routine work",
                  "Urgent: an aircraft will be grounded soon without it",
                  "Aircraft on ground: an airplane cannot fly until this arrives"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Expedite",
                  "Critical",
                  "AOG"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "kind[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "release",
                  "purchase_order",
                  "repair_order",
                  "customer_return",
                  "customer_exchange",
                  "customer_lease",
                  "work_order",
                  "manifest",
                  "sales_order"
                ],
                "x-enum-labels": [
                  "Release",
                  "Purchase order",
                  "Repair order",
                  "Customer return",
                  "Exchange",
                  "Lease",
                  "Work order",
                  "Manifest",
                  "Sales order"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A release by its number, order, customer or a part on its lines; an order by its number, company, reference or a part on its lines"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "urgency",
                "-urgency",
                "due_on",
                "-due_on",
                "step",
                "-step"
              ],
              "default": "urgency"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `due_on`, then the record's uuid and step, ascending either way."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseWorkItemListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseWorkItemList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "step",
            "label": "Step",
            "kind": "options",
            "options": [
              {
                "value": "pick",
                "label": "Pick"
              },
              {
                "value": "check",
                "label": "Check"
              },
              {
                "value": "ship",
                "label": "Ship"
              },
              {
                "value": "receive",
                "label": "Receive"
              }
            ]
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "kind": "options",
            "options": [
              {
                "value": "routine",
                "label": "Routine"
              },
              {
                "value": "expedite",
                "label": "Expedite"
              },
              {
                "value": "critical",
                "label": "Critical"
              },
              {
                "value": "aog",
                "label": "AOG"
              }
            ]
          },
          {
            "key": "kind",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "release",
                "label": "Release"
              },
              {
                "value": "purchase_order",
                "label": "Purchase order"
              },
              {
                "value": "repair_order",
                "label": "Repair order"
              },
              {
                "value": "customer_return",
                "label": "Customer return"
              },
              {
                "value": "customer_exchange",
                "label": "Exchange"
              },
              {
                "value": "customer_lease",
                "label": "Lease"
              },
              {
                "value": "work_order",
                "label": "Work order"
              },
              {
                "value": "manifest",
                "label": "Manifest"
              },
              {
                "value": "sales_order",
                "label": "Sales order"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "step",
            "label": "Step",
            "field": "step",
            "sort": "step",
            "kind": "text",
            "currency": null,
            "labels": {
              "pick": "Pick",
              "check": "Check",
              "ship": "Ship",
              "receive": "Receive"
            }
          },
          {
            "key": "subject",
            "label": "Record",
            "field": "subject",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "kind",
            "label": "Type",
            "field": "kind",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "release": "Release",
              "purchase_order": "Purchase order",
              "repair_order": "Repair order",
              "customer_return": "Customer return",
              "customer_exchange": "Exchange",
              "customer_lease": "Lease",
              "work_order": "Work order",
              "manifest": "Manifest",
              "sales_order": "Sales order"
            }
          },
          {
            "key": "company",
            "label": "Company",
            "field": "company.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "urgency",
            "label": "Urgency",
            "field": "urgency",
            "sort": "urgency",
            "kind": "text",
            "currency": null,
            "labels": {
              "routine": "Routine",
              "expedite": "Expedite",
              "critical": "Critical",
              "aog": "AOG"
            }
          },
          {
            "key": "due_on",
            "label": "Due",
            "field": "due_on",
            "sort": "due_on",
            "kind": "date",
            "currency": null
          },
          {
            "key": "line_count",
            "label": "Lines",
            "field": "line_count",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "bins",
            "label": "Bins",
            "field": "bins",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "open_receipt",
            "label": "Receipt",
            "field": "open_receipt.identifier",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "detail",
            "label": "What to do",
            "field": "detail",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      }
    },
    "/warehouses": {
      "get": {
        "operationId": "list_warehouses",
        "summary": "List warehouses",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "facility[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A facility's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "tool_crib",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only warehouses marked as tool cribs"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "code",
                "-code",
                "tool_crib",
                "-tool_crib",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WarehouseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "facility",
            "label": "Facility",
            "kind": "options",
            "references": [
              "facility"
            ],
            "fenced": true
          },
          {
            "key": "tool_crib",
            "label": "Tool crib",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "tool_crib",
            "label": "Tool crib",
            "field": "tool_crib",
            "sort": "tool_crib",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "facility_label",
            "label": "Facility",
            "field": "facility.label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "hidden_marketplaces",
            "label": "Hidden from marketplaces",
            "field": "hidden_marketplaces.name",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_warehouse",
        "summary": "Create a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `external_keys` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarehouseCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The warehouse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/warehouses/{uuid}": {
      "get": {
        "operationId": "get_warehouse",
        "summary": "Retrieve a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `external_keys` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The warehouse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_warehouse",
        "summary": "Update a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "external_keys",
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `external_keys` or `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WarehouseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The warehouse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_warehouse",
        "summary": "Delete a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/warehouses/{uuid}/activate": {
      "post": {
        "operationId": "activate_warehouse",
        "summary": "Activate a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The warehouse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/warehouses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_warehouse",
        "summary": "Deactivate a warehouse",
        "tags": [
          "warehouses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "overview_counts"
                ]
              }
            },
            "description": "Inline `overview_counts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WarehouseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The warehouse",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Warehouse"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints": {
      "get": {
        "operationId": "list_webhook_endpoints",
        "summary": "List webhook endpoints",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "webhook",
                "-webhook",
                "description",
                "-description",
                "url",
                "-url",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `description`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpointList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "webhook",
            "label": "Webhook",
            "field": "description",
            "sort": "webhook",
            "kind": "text",
            "currency": null
          },
          {
            "key": "told",
            "label": "Told of",
            "field": "enabled_actions",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "*": "Every action",
              "access_token_minted": "Access token minted",
              "access_token_revoked": "Access token revoked",
              "activated": "Activated",
              "added_to_receipt": "Added to receipt",
              "added_to_repair_order": "Added to repair order",
              "added_to_suppression_list": "Added to suppression list",
              "answered_no_quote": "Answered no quote",
              "application_authorized": "Application authorized",
              "application_revoked": "Application revoked",
              "applied": "Rows applied",
              "approved": "Approved",
              "arrived": "Arrived",
              "asked": "Asked",
              "asked_for": "Asked for",
              "assigned": "Assigned",
              "assignments_forgotten": "Assignments forgotten",
              "autoquoted": "Autoquoted",
              "bought_outright": "Bought outright",
              "built": "Built",
              "calendar_feed_issued": "Calendar feed issued",
              "calendar_feed_reset": "Calendar feed reset",
              "calibrated": "Calibrated",
              "cancelled": "Cancelled",
              "capabilities_changed": "Capabilities changed",
              "carried_over": "Carried over",
              "certificate_deleted": "Certificate deleted",
              "certificate_drafted": "Certificate drafted",
              "certificate_revised": "Certificate revised",
              "certificate_signed": "Certificate signed",
              "certificate_signed_by_hand": "Certificate signed by hand",
              "certificate_voided": "Certificate voided",
              "change_acknowledged": "Change acknowledged",
              "charge_billed": "Charge billed",
              "checked": "Rows checked",
              "chosen_to_open_first": "Chosen to open first",
              "closed": "Closed",
              "combined": "Combined",
              "combined_into": "Combined into",
              "comparison_stated": "Comparison stated",
              "company_linked": "Company linked",
              "company_unlinked": "Company unlinked",
              "completed": "Completed",
              "condition_mapped": "Condition mapped",
              "confirmed": "Confirmed",
              "connected": "Connected",
              "contacts_changed": "Contacts changed",
              "conversion_reverted": "Conversion reverted",
              "converted": "Converted",
              "converted_to_cost_pool": "Converted to cost pool",
              "copied": "Copied",
              "copied_from": "Copied from",
              "core_added_to_repair_order": "Core added to repair order",
              "core_allocated": "Core allocated",
              "core_billed": "Core billed",
              "core_bought": "Core bought",
              "core_due_revised": "Core due revised",
              "core_owed": "Core owed",
              "core_purchase_removed": "Core purchase removed",
              "core_received": "Core received",
              "core_repair_billed": "Core repair billed",
              "core_returned_to_inventory": "Core returned to inventory",
              "core_scrapped": "Core scrapped",
              "core_shipped": "Core shipped",
              "core_unshipped": "Core unshipped",
              "corrected": "Corrected",
              "correction_generated": "Correction generated",
              "cost_pool_revised": "Cost pool revised",
              "cost_recovered": "Cost recovered",
              "cost_transferred_in": "Cost transferred in",
              "cost_transferred_out": "Cost transferred out",
              "cost_unpriced": "Cost unpriced",
              "cost_variance": "Cost variance",
              "created": "Created",
              "credentials_changed": "Credentials changed",
              "credit_generated": "Credit generated",
              "credit_memo_generated": "Credit memo generated",
              "credit_memo_sent": "Credit memo sent",
              "credited": "Credited",
              "currency_changed": "Currency changed",
              "custody_allocated": "Custody allocated",
              "custody_returned": "Custody returned",
              "customer_replied": "Customer replied",
              "customer_unit_received": "Customer unit received",
              "customer_unit_returned": "Customer unit returned",
              "customer_unit_scrapped": "Customer unit scrapped",
              "deactivated": "Deactivated",
              "declined": "Declined",
              "declined_quote_sending_started": "Declined quote sending started",
              "declined_quote_sending_stopped": "Declined quote sending stopped",
              "defaults_changed": "Defaults changed",
              "deleted": "Deleted",
              "did_not_arrive": "Did not arrive",
              "direct_rfq_answers_changed": "Direct RFQ answers changed",
              "disconnected": "Disconnected",
              "downloaded": "Form downloaded",
              "draft_discarded": "Draft discarded",
              "drafted": "Drafted",
              "drafted_from_message": "Drafted from message",
              "due_back_revised": "Due back revised",
              "duplicated": "Duplicated",
              "duplicated_from": "Duplicated from",
              "email_bounced": "Email bounced",
              "email_reported_as_spam": "Email reported as spam",
              "email_resumed": "Email resumed",
              "email_stopped": "Email stopped",
              "email_template_chosen": "Email template chosen",
              "email_template_cleared": "Email template cleared",
              "emailed": "Emailed",
              "exchange_activity_recorded": "Exchange activity recorded",
              "exchange_cancelled": "Exchange cancelled",
              "exchange_opened": "Exchange opened",
              "expired": "Expired",
              "external_key_linked": "External key linked",
              "external_key_unlinked": "External key unlinked",
              "failed": "Failed",
              "fields_drafted": "Fields drafted",
              "file_attached": "File attached",
              "file_copying_started": "File copying started",
              "file_copying_stopped": "File copying stopped",
              "file_removed": "File removed",
              "files_shared": "Files shared",
              "finding_added": "Finding added",
              "finding_removed": "Finding removed",
              "finding_updated": "Finding updated",
              "finish_refused": "Finish refused",
              "finish_scheduled": "Finish scheduled",
              "finished": "Finished",
              "following_revised": "This and following changed",
              "fx_rate_stamped": "FX rate stamped",
              "gate_reached": "Gate reached",
              "generated": "Form generated",
              "given": "Given",
              "held": "Held",
              "held_for_review": "Held for review",
              "hidden_marketplaces_changed": "Hidden marketplaces changed",
              "hold_lifted": "Hold lifted",
              "hold_placed": "Hold placed",
              "humidity_over_limit": "Humidity over limit",
              "ignored": "Ignored",
              "initial_load_reopened": "Initial load reopened",
              "inspection_completed": "Inspection completed",
              "inspection_discarded": "Inspection discarded",
              "inspection_item_answered": "Inspection item answered",
              "inspection_item_waived": "Inspection item waived",
              "inspection_reopened": "Inspection reopened",
              "inspection_started": "Inspection started",
              "instruction_added": "Instruction added",
              "instruction_assigned": "Instruction assigned",
              "instruction_cancelled": "Instruction cancelled",
              "instruction_carried_forward": "Instruction carried forward",
              "instruction_completed": "Instruction completed",
              "instruction_removed": "Instruction removed",
              "instruction_reopened": "Instruction reopened",
              "instruction_updated": "Instruction updated",
              "instructions_imported": "Instructions imported",
              "inventory_line_minted": "Inventory line minted",
              "invited": "Invited",
              "invoice_generated": "Invoice generated",
              "invoice_sent": "Invoice sent",
              "issue_allocated": "Issue allocated",
              "issue_quarantined": "Issue quarantined",
              "issue_removed": "Issue removed",
              "issue_seeded": "Issue seeded",
              "issue_split_planned": "Issue split planned",
              "kept_as_draft": "Kept as draft",
              "kept_from_autoquote": "Kept from autoquote",
              "labor_clocked_in": "Labor clocked in",
              "labor_charged": "Labor charged",
              "labor_clocked_out": "Labor clocked out",
              "labor_corrected": "Labor corrected",
              "labor_keyed": "Labor keyed",
              "labor_removed": "Labor removed",
              "layout_fell_back": "Layout fell back",
              "lease_opened": "Lease opened",
              "lease_unit_allocated": "Lease unit allocated",
              "line_added": "Line added",
              "line_allocated": "Line allocated",
              "line_cancelled": "Line cancelled",
              "line_deallocated": "Line deallocated",
              "line_estimate_approved": "Line estimate approved",
              "line_estimate_recorded": "Line estimate recorded",
              "line_final_cost_recorded": "Line final cost recorded",
              "line_matched": "Line matched",
              "line_moved": "Line moved",
              "line_picked": "Line picked",
              "line_promise_revised": "Line promise revised",
              "line_rejected": "Line rejected",
              "line_removed": "Line removed",
              "line_repointed": "Line repointed",
              "line_returned_to_inventory": "Line returned to inventory",
              "line_scrapped": "Line scrapped",
              "line_shipped": "Line shipped",
              "line_split": "Line split",
              "line_unpicked": "Line unpicked",
              "line_unshipped": "Line unshipped",
              "line_unverified": "Line unverified",
              "line_updated": "Line updated",
              "line_verified": "Line verified",
              "lines_aligned_to_requests": "Lines aligned to requests",
              "lines_imported": "Lines imported",
              "lines_moved_in": "Lines moved in",
              "lines_reordered": "Lines reordered",
              "load_failed": "Load failed",
              "loaded": "Loaded",
              "logged": "Logged",
              "lost": "Lost",
              "lost_reason_changed": "Lost reason changed",
              "mapping_saved": "Mapping saved",
              "material_added": "Material added",
              "material_added_to_repair_order": "Material added to repair order",
              "material_flagged_unused": "Material flagged unused",
              "material_issued": "Material issued",
              "material_moved": "Material moved",
              "material_ordered": "Material ordered",
              "material_reallocated": "Material reallocated",
              "material_rejected": "Material rejected",
              "material_removed": "Material removed",
              "material_returned": "Material returned",
              "material_turn_in_cancelled": "Material turn in cancelled",
              "material_turned_in": "Material turned in",
              "material_updated": "Material updated",
              "material_visually_checked": "Material visually checked",
              "materials_imported": "Materials imported",
              "measurement_unit_mapped": "Measurement unit mapped",
              "members_changed": "Members changed",
              "moved": "Moved",
              "noted_from_message": "Noted from message",
              "occurrence_cancelled": "Occurrence cancelled",
              "occurrence_revised": "Occurrence changed",
              "onboarding_dismissed": "Onboarding dismissed",
              "onboarding_undismissed": "Onboarding undismissed",
              "opened": "Opened",
              "ordered": "Ordered",
              "orders_left_waiting": "Orders left waiting",
              "outright_purchase_removed": "Outright purchase removed",
              "package_added": "Package added",
              "package_arrived": "Package arrived",
              "part_numbers_resolved": "Part numbers resolved",
              "part_removed": "Part removed",
              "participant_added": "Participant added",
              "parts_added": "Parts added",
              "parts_issued": "Parts issued",
              "parts_returned_to_inventory": "Parts returned to inventory",
              "parts_shipped": "Parts shipped",
              "parts_unshipped": "Parts unshipped",
              "payment_applied": "Payment applied",
              "payment_recorded": "Payment recorded",
              "payment_unapplied": "Payment unapplied",
              "payment_voided": "Payment voided",
              "period_billed": "Period billed",
              "period_charged": "Period charged",
              "posted": "Posted",
              "posting_recorded": "Posting recorded",
              "print_expired": "Print expired",
              "print_failed": "Print failed",
              "print_requested": "Print requested",
              "printed": "Printed",
              "promise_revised": "Promise revised",
              "protection_held": "Protection held",
              "protection_released": "Protection released",
              "published": "Published",
              "publications_applied": "Publications applied",
              "publications_changed": "Publications changed",
              "purchased_without_coverage": "Purchased without coverage",
              "push_back_scheduled": "Push back scheduled",
              "quickbooks_linked": "QuickBooks linked",
              "quickbooks_relinked": "QuickBooks relinked",
              "quickbooks_unlinked": "QuickBooks unlinked",
              "quote_line_added": "Quote line added",
              "quote_line_moved": "Quote line moved",
              "quote_line_removed": "Quote line removed",
              "quote_line_updated": "Quote line updated",
              "quote_lines_aligned_to_requests": "Quote lines aligned to requests",
              "quoted_unit_unavailable": "Quoted unit unavailable",
              "quoted_vendor_inventory_unavailable": "Quoted vendor inventory unavailable",
              "quoting_reading_started": "Quoting reading started",
              "quoting_reading_stopped": "Quoting reading stopped",
              "rate_revised": "Rate revised",
              "read": "Read",
              "receipt_created": "Receipt created",
              "receipt_received": "Receipt received",
              "received": "Received",
              "recorded": "Recorded",
              "records_skipped": "Records skipped",
              "records_unskipped": "Records unskipped",
              "refund_clamped": "Refund clamped",
              "reissued": "Reissued",
              "removed_from_suppression_list": "Removed from suppression list",
              "renamed": "Renamed",
              "release_cancelled": "Release cancelled",
              "release_generated": "Release generated",
              "release_shipped": "Release shipped",
              "release_split": "Release split",
              "release_unshipped": "Release unshipped",
              "releases_combined": "Releases combined",
              "reopened": "Reopened",
              "repair_service_mapped": "Repair service mapped",
              "replacement_ordered": "Replacement ordered",
              "reply_handled": "Reply handled",
              "reposted": "Reposted",
              "reprint_requested": "Reprint requested",
              "reprinted": "Reprinted",
              "reprocessed": "Reprocessed",
              "request_line_added": "Request line added",
              "request_line_moved": "Request line moved",
              "request_line_removed": "Request line removed",
              "request_line_updated": "Request line updated",
              "requested_for": "Requested for",
              "requirement_added": "Requirement added",
              "requirement_removed": "Requirement removed",
              "requirement_waived": "Requirement waived",
              "requirements_changed": "Requirements changed",
              "resent": "Resent",
              "restated_from_message": "Restated from message",
              "restored": "Restored",
              "resumed": "Resumed",
              "return_opened": "Return opened",
              "returned_to_inventory": "Returned to inventory",
              "returned_to_queue": "Returned to queue",
              "returned_to_vendor": "Returned to vendor",
              "revision_adopted": "Revision adopted",
              "role_mapped": "Role mapped",
              "roles_changed": "Roles changed",
              "scrapped": "Scrapped",
              "sender_allowed": "Sender allowed",
              "sender_blocked": "Sender blocked",
              "sending_domain_failing": "Sending domain failing",
              "sending_domain_recovered": "Sending domain recovered",
              "sent": "Sent",
              "sent_to_avsight": "Sent to AvSight",
              "sent_to_purchasing": "Sent to purchasing",
              "sent_to_sourcing": "Sent to sourcing",
              "share_extended": "Share extended",
              "share_fresh_link_sent": "Share fresh link sent",
              "share_link_reissued": "Share link reissued",
              "share_recipient_extended": "Share recipient extended",
              "share_recipient_revoked": "Share recipient revoked",
              "share_recipients_added": "Share recipients added",
              "share_revised": "Share revised",
              "share_revoked": "Share revoked",
              "shared_document_replaced": "Shared document replaced",
              "shared_file_downloaded": "Shared file downloaded",
              "shared_file_removed": "Shared file removed",
              "shared_files_added": "Shared files added",
              "shared_files_downloaded": "Shared files downloaded",
              "shared_files_opened": "Shared files opened",
              "shipment_cancelled": "Shipment cancelled",
              "shipped": "Shipped",
              "shop_supply_added": "Shop supply added",
              "shop_supply_removed": "Shop supply removed",
              "shop_supply_updated": "Shop supply updated",
              "signed_out": "Signed out",
              "signer_skill_changed": "Signer skill changed",
              "skipped": "Skipped",
              "skipped_away": "Skipped away",
              "sold_outright": "Sold outright",
              "sourcing_request_carried_over": "Sourcing request carried over",
              "split": "Split",
              "split_from": "Split from",
              "phases_changed": "Phases changed",
              "statement_sent": "Statement sent",
              "status_changed": "Status changed",
              "stopped_opening_first": "Stopped opening first",
              "superseded": "Superseded",
              "supply_claimed": "Supply claimed",
              "supply_landed": "Supply landed",
              "supply_reassigned": "Supply reassigned",
              "supply_released": "Supply released",
              "support_access_turned_off": "Support access turned off",
              "support_access_turned_on": "Support access turned on",
              "system_of_record_switched": "Made CorePilot the system of record",
              "task_added": "Task added",
              "task_assigned": "Task assigned",
              "task_cancelled": "Task cancelled",
              "task_removed": "Task removed",
              "task_skills_changed": "Task skills changed",
              "task_status_changed": "Task status changed",
              "task_updated": "Task updated",
              "tasks_imported": "Tasks imported",
              "tasks_made_ready": "Tasks made ready to work",
              "tasks_repriced": "Tasks repriced",
              "tax_applied": "Tax applied",
              "tax_suppressed": "Tax suppressed",
              "teardown_completed": "Teardown completed",
              "teardown_undone": "Teardown undone",
              "template_applied": "Template applied",
              "template_instructions_copied": "Template instructions copied",
              "template_materials_copied": "Template materials copied",
              "tier_changed": "Tier changed",
              "trashed": "Trashed",
              "trigger_skipped": "Trigger skipped",
              "unit_added_to_repair_order": "Unit added to repair order",
              "unit_returned": "Unit returned",
              "unit_shipped_back": "Unit shipped back",
              "unit_unshipped": "Unit unshipped",
              "unrecovered_cost_billed": "Unrecovered cost billed",
              "updated": "Updated",
              "value_adjusted": "Value adjusted",
              "value_matches_changed": "Value matches changed",
              "verified": "Verified",
              "version_added": "Version added",
              "voucher_generated": "Voucher generated",
              "vouchered": "Vouchered",
              "warehouse_defaults_applied": "Warehouse defaults applied",
              "warehouse_defaults_dismissed": "Warehouse defaults dismissed",
              "withdrawn": "Withdrawn",
              "won": "Won",
              "work_completed": "Work completed",
              "work_started": "Work started",
              "written_off": "Written off"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          },
          {
            "key": "added",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_webhook_endpoint",
        "summary": "Create a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{uuid}": {
      "get": {
        "operationId": "get_webhook_endpoint",
        "summary": "Retrieve a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_webhook_endpoint",
        "summary": "Update a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookEndpointUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_webhook_endpoint",
        "summary": "Delete a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{uuid}/activate": {
      "post": {
        "operationId": "activate_webhook_endpoint",
        "summary": "Activate a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_webhook_endpoint",
        "summary": "Deactivate a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{webhook_endpoint_uuid}/deliveries": {
      "get": {
        "operationId": "list_webhook_deliveries",
        "summary": "List webhook deliveries",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "webhook_endpoint_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "succeeded",
                  "failed",
                  "skipped"
                ],
                "description": "`pending`: Queued and not yet delivered; `succeeded`: The endpoint accepted it; `failed`: The endpoint refused it or could not be reached; `skipped`: Never sent: the endpoint is inactive",
                "x-enum-descriptions": [
                  "Queued and not yet delivered",
                  "The endpoint accepted it",
                  "The endpoint refused it or could not be reached",
                  "Never sent: the endpoint is inactive"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Delivered",
                  "Failed",
                  "Skipped"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "attempts",
                "-attempts",
                "next_attempt_at",
                "-next_attempt_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookDeliveryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDeliveryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "succeeded",
                "label": "Delivered"
              },
              {
                "value": "failed",
                "label": "Failed"
              },
              {
                "value": "skipped",
                "label": "Skipped"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "sent",
            "label": "Sent",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "type",
            "label": "Event",
            "field": "type",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "succeeded": "Delivered",
              "failed": "Failed",
              "skipped": "Skipped"
            }
          },
          {
            "key": "answer",
            "label": "Answer",
            "field": "response_status",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "attempts",
            "label": "Attempts",
            "field": "attempts",
            "sort": "attempts",
            "kind": "number",
            "currency": null
          },
          {
            "key": "next_try",
            "label": "Next try",
            "field": "next_attempt_at",
            "sort": "next_attempt_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/webhook_endpoints/{webhook_endpoint_uuid}/deliveries/{uuid}": {
      "get": {
        "operationId": "get_webhook_delivery",
        "summary": "Retrieve a webhook delivery",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "webhook_endpoint_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookDeliveryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook delivery",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{webhook_endpoint_uuid}/deliveries/{uuid}/resend": {
      "post": {
        "operationId": "resend_webhook_delivery",
        "summary": "Resend a webhook delivery",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "webhook_endpoint_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookDeliveryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The webhook delivery it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "resend",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{uuid}/rotate_secret": {
      "post": {
        "operationId": "rotate_secret_webhook_endpoint",
        "summary": "Rotate the secret of a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookEndpointField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The webhook endpoint",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookEndpoint"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "rotate_secret",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/webhook_endpoints/{uuid}/test": {
      "post": {
        "operationId": "test_webhook_endpoint",
        "summary": "Test a webhook endpoint",
        "tags": [
          "webhook_endpoints"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WebhookDeliveryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The webhook delivery it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookDelivery"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "test",
        "x-risk": "reversible",
        "x-grant": "settings:manage",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_centers": {
      "get": {
        "operationId": "list_work_centers",
        "summary": "List work centers",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenterList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_center",
        "summary": "Create a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkCenterCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work center",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenter"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_centers/{uuid}": {
      "get": {
        "operationId": "get_work_center",
        "summary": "Retrieve a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work center",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenter"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_center",
        "summary": "Update a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkCenterUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work center",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenter"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_center",
        "summary": "Delete a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_centers/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_center",
        "summary": "Activate a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work center",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenter"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_centers/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_center",
        "summary": "Deactivate a work center",
        "tags": [
          "work_centers"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkCenterField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work center",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkCenter"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions": {
      "get": {
        "operationId": "list_work_instructions",
        "summary": "List work instructions",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "work_order_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "open",
                  "completed",
                  "carried_forward",
                  "cancelled"
                ],
                "description": "`open`: Still to be done; `completed`: Done, with who completed it and when; `carried_forward`: Left for later work, with a note saying why; it counts as done for its task; `cancelled`: Called off; it counts toward nothing",
                "x-enum-descriptions": [
                  "Still to be done",
                  "Done, with who completed it and when",
                  "Left for later work, with a note saying why; it counts as done for its task",
                  "Called off; it counts toward nothing"
                ],
                "x-enum-labels": [
                  "Open",
                  "Completed",
                  "Carried forward",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "assigned_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_station[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work station's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "environment_check",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the humidity and temperature checks"
          },
          {
            "name": "due",
            "in": "query",
            "schema": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string",
                  "format": "date"
                },
                "to": {
                  "type": "string",
                  "format": "date"
                }
              }
            },
            "description": "A date range, either bound optional",
            "style": "deepObject",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "position",
                "-position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `position` sorts only beside a single `work_order_task[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstructionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_work_instruction",
        "summary": "Create a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkInstructionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}": {
      "get": {
        "operationId": "get_work_instruction",
        "summary": "Retrieve a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_instruction",
        "summary": "Update a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkInstructionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_instruction",
        "summary": "Delete a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}/assign": {
      "post": {
        "operationId": "assign_work_instruction",
        "summary": "Assign a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkInstructionAssign"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "assign",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_work_instruction",
        "summary": "Cancel a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}/carry_forward": {
      "post": {
        "operationId": "carry_forward_work_instruction",
        "summary": "Carry forward a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkInstructionCarryForward"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "carry_forward",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}/complete": {
      "post": {
        "operationId": "complete_work_instruction",
        "summary": "Complete a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkInstructionComplete"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "complete",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_instructions/{uuid}/reopen": {
      "post": {
        "operationId": "reopen_work_instruction",
        "summary": "Reopen a work instruction",
        "tags": [
          "work_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reopen",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_gates": {
      "get": {
        "operationId": "list_work_order_gates",
        "summary": "List work order gates",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `position`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_gate",
        "summary": "Create a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderGateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order gate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_gates/{uuid}": {
      "get": {
        "operationId": "get_work_order_gate",
        "summary": "Retrieve a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order gate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_gate",
        "summary": "Update a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderGateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order gate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_gate",
        "summary": "Delete a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_gates/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_gate",
        "summary": "Activate a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order gate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_gates/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_gate",
        "summary": "Deactivate a work order gate",
        "tags": [
          "work_order_gates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderGateField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order gate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderGate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_dispositions": {
      "get": {
        "operationId": "list_work_order_material_dispositions",
        "summary": "List work order material dispositions",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDispositionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_disposition",
        "summary": "Create a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material disposition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_dispositions/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_disposition",
        "summary": "Retrieve a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material disposition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_disposition",
        "summary": "Update a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material disposition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_disposition",
        "summary": "Delete a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_dispositions/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_disposition",
        "summary": "Activate a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material disposition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_dispositions/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_disposition",
        "summary": "Deactivate a work order material disposition",
        "tags": [
          "work_order_material_dispositions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialDispositionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material disposition",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_inspection_compliances": {
      "get": {
        "operationId": "list_work_order_material_inspection_compliances",
        "summary": "List work order material inspection compliances",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_inspection_compliance",
        "summary": "Create a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material inspection compliance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_inspection_compliances/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_inspection_compliance",
        "summary": "Retrieve a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material inspection compliance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_inspection_compliance",
        "summary": "Update a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material inspection compliance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_inspection_compliance",
        "summary": "Delete a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_inspection_compliances/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_inspection_compliance",
        "summary": "Activate a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material inspection compliance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_inspection_compliances/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_inspection_compliance",
        "summary": "Deactivate a work order material inspection compliance",
        "tags": [
          "work_order_material_inspection_compliances"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialInspectionComplianceField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material inspection compliance",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_ndt_quantity_statuses": {
      "get": {
        "operationId": "list_work_order_material_ndt_quantity_statuses",
        "summary": "List work order material NDT quantity statuses",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_ndt_quantity_status",
        "summary": "Create a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material NDT quantity status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_ndt_quantity_statuses/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_ndt_quantity_status",
        "summary": "Retrieve a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material NDT quantity status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_ndt_quantity_status",
        "summary": "Update a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material NDT quantity status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_ndt_quantity_status",
        "summary": "Delete a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_ndt_quantity_statuses/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_ndt_quantity_status",
        "summary": "Activate a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material NDT quantity status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_ndt_quantity_statuses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_ndt_quantity_status",
        "summary": "Deactivate a work order material NDT quantity status",
        "tags": [
          "work_order_material_ndt_quantity_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material NDT quantity status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_pick_statuses": {
      "get": {
        "operationId": "list_work_order_material_pick_statuses",
        "summary": "List work order material pick statuses",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatusList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_pick_status",
        "summary": "Create a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material pick status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_pick_statuses/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_pick_status",
        "summary": "Retrieve a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material pick status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_pick_status",
        "summary": "Update a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material pick status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_pick_status",
        "summary": "Delete a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_pick_statuses/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_pick_status",
        "summary": "Activate a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material pick status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_pick_statuses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_pick_status",
        "summary": "Deactivate a work order material pick status",
        "tags": [
          "work_order_material_pick_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialPickStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material pick status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_removal_priorities": {
      "get": {
        "operationId": "list_work_order_material_removal_priorities",
        "summary": "List work order material removal priorities",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_removal_priority",
        "summary": "Create a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material removal priority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_removal_priorities/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_removal_priority",
        "summary": "Retrieve a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material removal priority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_removal_priority",
        "summary": "Update a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material removal priority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_removal_priority",
        "summary": "Delete a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_removal_priorities/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_removal_priority",
        "summary": "Activate a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material removal priority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_removal_priorities/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_removal_priority",
        "summary": "Deactivate a work order material removal priority",
        "tags": [
          "work_order_material_removal_priorities"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriorityField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material removal priority",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_supply_statuses": {
      "get": {
        "operationId": "list_work_order_material_supply_statuses",
        "summary": "List work order material supply statuses",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material_supply_status",
        "summary": "Create a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material supply status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_supply_statuses/{uuid}": {
      "get": {
        "operationId": "get_work_order_material_supply_status",
        "summary": "Retrieve a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material supply status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material_supply_status",
        "summary": "Update a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material supply status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material_supply_status",
        "summary": "Delete a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_supply_statuses/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_material_supply_status",
        "summary": "Activate a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material supply status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_material_supply_statuses/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_material_supply_status",
        "summary": "Deactivate a work order material supply status",
        "tags": [
          "work_order_material_supply_statuses"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatusField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material supply status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials": {
      "get": {
        "operationId": "list_work_order_materials",
        "summary": "List work order materials",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "material_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "consumable",
                  "replace",
                  "repair",
                  "remove",
                  "visual_check",
                  "component",
                  "main_component_repair",
                  "offer_exchange"
                ],
                "description": "`consumable`: A part used up in the work, with nothing taken off the unit for it; `replace`: A part taken off the unit, and another put on in its place; `repair`: A part taken off the unit, repaired and put back on; `remove`: A part taken off the unit, with nothing put on in its place; `visual_check`: The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory; `component`: A component put on the unit with no part taken off for it; `main_component_repair`: The customer's unit itself, sent out to a vendor for repair; `offer_exchange`: A unit of ours offered to the customer in exchange for theirs",
                "x-enum-descriptions": [
                  "A part used up in the work, with nothing taken off the unit for it",
                  "A part taken off the unit, and another put on in its place",
                  "A part taken off the unit, repaired and put back on",
                  "A part taken off the unit, with nothing put on in its place",
                  "The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory",
                  "A component put on the unit with no part taken off for it",
                  "The customer's unit itself, sent out to a vendor for repair",
                  "A unit of ours offered to the customer in exchange for theirs"
                ],
                "x-enum-labels": [
                  "Consumable",
                  "Replace",
                  "Repair",
                  "Remove",
                  "Visual check",
                  "Component",
                  "Main component repair",
                  "Offer exchange"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "requested_reason[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "missed_in_evaluation",
                  "additional_damage_found",
                  "broken_hardware",
                  "missing_hardware",
                  "sb_required",
                  "ad_required",
                  "part_not_on_bom_list"
                ],
                "description": "`missed_in_evaluation`: The evaluation missed it; `additional_damage_found`: More damage was found than the evaluation saw; `broken_hardware`: Hardware on the unit is broken; `missing_hardware`: Hardware is missing from the unit; `sb_required`: A service bulletin calls for it; `ad_required`: An airworthiness directive calls for it; `part_not_on_bom_list`: The work order's materials list left it out",
                "x-enum-descriptions": [
                  "The evaluation missed it",
                  "More damage was found than the evaluation saw",
                  "Hardware on the unit is broken",
                  "Hardware is missing from the unit",
                  "A service bulletin calls for it",
                  "An airworthiness directive calls for it",
                  "The work order's materials list left it out"
                ],
                "x-enum-labels": [
                  "Missed in evaluation",
                  "Additional damage found",
                  "Broken hardware",
                  "Missing hardware",
                  "SB required",
                  "AD required",
                  "Part not on BOM list"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "teardown_finding[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "found",
                  "missing",
                  "damaged",
                  "alt_part_number"
                ],
                "description": "`found`: The part was on the unit at teardown; `missing`: The part wasn't on the unit at teardown; `damaged`: The part was on the unit at teardown, damaged; `alt_part_number`: Another part number was on the unit in its place",
                "x-enum-descriptions": [
                  "The part was on the unit at teardown",
                  "The part wasn't on the unit at teardown",
                  "The part was on the unit at teardown, damaged",
                  "Another part number was on the unit in its place"
                ],
                "x-enum-labels": [
                  "Found",
                  "Missing",
                  "Damaged",
                  "Alternate part number"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "pick_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material pick status's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "removal_priority[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material removal priority's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "supply_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material supply status's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "disposition[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material disposition's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "inspection_compliance[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material inspection compliance's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "ndt_quantity_status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order material NDT quantity status's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "customer_supplied",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the parts the customer supplies"
          },
          {
            "name": "unused",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials with issued parts flagged unused"
          },
          {
            "name": "short",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials still needing more than inventory holds free of their part, in their condition or better"
          },
          {
            "name": "in_inventory",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials whose part inventory holds free now, in their condition or better"
          },
          {
            "name": "allocated",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials holding parts allocated and not yet issued"
          },
          {
            "name": "holding_parts",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials holding parts, allocated and not yet issued or issued and not returned"
          },
          {
            "name": "fully_allocated",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the materials with all they ask of inventory allocated, issued parts counted"
          },
          {
            "name": "reallocatable",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the replaces, consumables and components still needing parts that another open work order's material holds allocated and not yet issued, in a condition they take: what `POST …/reallocate` can bring them"
          },
          {
            "name": "teardown",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the teardown parts, added by Add Teardown"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "sequence",
                "-sequence",
                "part_number_raw",
                "-part_number_raw",
                "material_type",
                "-material_type",
                "quantity_requested",
                "-quantity_requested",
                "quantity_issued",
                "-quantity_issued",
                "quantity_unused",
                "-quantity_unused",
                "work_order_task",
                "-work_order_task",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `sequence` sorts only beside a single `work_order_task[]` or `work_order[]`. `part_number_raw` sorts only beside a single `work_order_task[]` or `work_order[]`. `material_type` sorts only beside a single `work_order_task[]` or `work_order[]`. `quantity_requested` sorts only beside a single `work_order_task[]` or `work_order[]`. `quantity_issued` sorts only beside a single `work_order_task[]` or `work_order[]`. `quantity_unused` sorts only beside a single `work_order_task[]` or `work_order[]`. `work_order_task` sorts only beside a single `work_order[]`. Rows equal under the sort follow by `sequence`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterialList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "material_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "consumable",
                "label": "Consumable"
              },
              {
                "value": "replace",
                "label": "Replace"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "remove",
                "label": "Remove"
              },
              {
                "value": "visual_check",
                "label": "Visual check"
              },
              {
                "value": "component",
                "label": "Component"
              },
              {
                "value": "main_component_repair",
                "label": "Main component repair"
              },
              {
                "value": "offer_exchange",
                "label": "Offer exchange"
              }
            ]
          },
          {
            "key": "customer_supplied",
            "label": "Customer supplied",
            "kind": "toggle"
          },
          {
            "key": "unused",
            "label": "Only unused",
            "kind": "toggle"
          },
          {
            "key": "short",
            "label": "Only short",
            "kind": "toggle"
          },
          {
            "key": "in_inventory",
            "label": "Only in inventory",
            "kind": "toggle"
          },
          {
            "key": "allocated",
            "label": "Only remaining to issue",
            "kind": "toggle"
          },
          {
            "key": "holding_parts",
            "label": "Only holding parts",
            "kind": "toggle"
          },
          {
            "key": "fully_allocated",
            "label": "Only fully allocated",
            "kind": "toggle"
          },
          {
            "key": "reallocatable",
            "label": "Only reallocatable",
            "kind": "toggle"
          },
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          },
          {
            "key": "work_order_task",
            "label": "Work order task",
            "kind": "options",
            "references": [
              "work_order_task"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "requested_reason",
            "label": "Requested reason",
            "kind": "options",
            "options": [
              {
                "value": "missed_in_evaluation",
                "label": "Missed in evaluation"
              },
              {
                "value": "additional_damage_found",
                "label": "Additional damage found"
              },
              {
                "value": "broken_hardware",
                "label": "Broken hardware"
              },
              {
                "value": "missing_hardware",
                "label": "Missing hardware"
              },
              {
                "value": "sb_required",
                "label": "SB required"
              },
              {
                "value": "ad_required",
                "label": "AD required"
              },
              {
                "value": "part_not_on_bom_list",
                "label": "Part not on BOM list"
              }
            ]
          },
          {
            "key": "teardown_finding",
            "label": "Teardown finding",
            "kind": "options",
            "options": [
              {
                "value": "found",
                "label": "Found"
              },
              {
                "value": "missing",
                "label": "Missing"
              },
              {
                "value": "damaged",
                "label": "Damaged"
              },
              {
                "value": "alt_part_number",
                "label": "Alternate part number"
              }
            ]
          },
          {
            "key": "pick_status",
            "label": "Pick status",
            "kind": "options",
            "references": [
              "work_order_material_pick_status"
            ]
          },
          {
            "key": "removal_priority",
            "label": "Removal priority",
            "kind": "options",
            "references": [
              "work_order_material_removal_priority"
            ]
          },
          {
            "key": "supply_status",
            "label": "Supply status",
            "kind": "options",
            "references": [
              "work_order_material_supply_status"
            ]
          },
          {
            "key": "disposition",
            "label": "Disposition",
            "kind": "options",
            "references": [
              "work_order_material_disposition"
            ]
          },
          {
            "key": "inspection_compliance",
            "label": "Inspection compliance",
            "kind": "options",
            "references": [
              "work_order_material_inspection_compliance"
            ]
          },
          {
            "key": "ndt_quantity_status",
            "label": "NDT quantity status",
            "kind": "options",
            "references": [
              "work_order_material_ndt_quantity_status"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "part",
            "label": "Part",
            "field": "part_number_raw",
            "sort": "part_number_raw",
            "kind": "text",
            "currency": null,
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "material_type",
            "label": "Type",
            "field": "material_type",
            "sort": "material_type",
            "kind": "text",
            "currency": null,
            "labels": {
              "consumable": "Consumable",
              "replace": "Replace",
              "repair": "Repair",
              "remove": "Remove",
              "visual_check": "Visual check",
              "component": "Component",
              "main_component_repair": "Main component repair",
              "offer_exchange": "Offer exchange"
            },
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "quantity_requested",
            "label": "Qty requested",
            "field": "quantity_requested",
            "sort": "quantity_requested",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "quantity_allocated",
            "label": "Qty allocated",
            "field": "quantity_allocated",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_issued",
            "label": "Qty issued",
            "field": "quantity_issued",
            "sort": "quantity_issued",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "quantity_reallocatable",
            "label": "Qty on other work orders",
            "field": "quantity_reallocatable",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_unused",
            "label": "Qty unused",
            "field": "quantity_unused",
            "sort": "quantity_unused",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "unused_reason",
            "label": "Unused reason",
            "field": "unused_reason",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "higher_quantity": "Higher quantity than required",
              "not_replaced": "BOM not replaced",
              "request_cancelled": "Request cancelled",
              "failed_on_install": "Failed on install"
            }
          },
          {
            "key": "unused_by",
            "label": "Unused parts technician",
            "field": "unused_by.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sequence",
            "label": "Sequence",
            "field": "sequence",
            "sort": "sequence",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_task",
              "work_order"
            ]
          },
          {
            "key": "work_order",
            "label": "Work order",
            "field": "work_order_task",
            "sort": "work_order_task",
            "kind": "text",
            "currency": null,
            "beside": [
              "work_order"
            ]
          },
          {
            "key": "work_order_task",
            "label": "Task",
            "field": "work_order_task",
            "sort": "work_order_task",
            "kind": "text",
            "currency": null,
            "beside": [
              "work_order"
            ]
          },
          {
            "key": "quantity",
            "label": "Qty asked of inventory",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_returned",
            "label": "Qty returned",
            "field": "quantity_returned",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_removed",
            "label": "Qty removed",
            "field": "quantity_removed",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "multiplied_by_quantity_to_repair",
            "label": "Multiplied by quantity to repair",
            "field": "multiplied_by_quantity_to_repair",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "customer_supplied",
            "label": "Customer supplied",
            "field": "customer_supplied",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "optional",
            "label": "Optional",
            "field": "optional",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "teardown",
            "label": "Teardown",
            "field": "teardown",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "requested_reason",
            "label": "Requested reason",
            "field": "requested_reason",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "missed_in_evaluation": "Missed in evaluation",
              "additional_damage_found": "Additional damage found",
              "broken_hardware": "Broken hardware",
              "missing_hardware": "Missing hardware",
              "sb_required": "SB required",
              "ad_required": "AD required",
              "part_not_on_bom_list": "Part not on BOM list"
            }
          },
          {
            "key": "teardown_finding",
            "label": "Teardown finding",
            "field": "teardown_finding",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "found": "Found",
              "missing": "Missing",
              "damaged": "Damaged",
              "alt_part_number": "Alternate part number"
            }
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_market_value",
            "label": "Expected market value",
            "field": "expected_market_value_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "part_off",
            "label": "Part off",
            "field": "part_off.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_off_serial_number",
            "label": "Part off serial number",
            "field": "part_off_serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_off_condition",
            "label": "Part off condition",
            "field": "part_off_condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_off_life_status",
            "label": "Part off life status",
            "field": "part_off_life_status",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_part",
            "label": "Expected part",
            "field": "expected_part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "expected_condition",
            "label": "Expected condition",
            "field": "expected_condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "picker",
            "label": "Picker",
            "field": "picker.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "pick_status",
            "label": "Pick status",
            "field": "pick_status.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "removal_priority",
            "label": "Removal priority",
            "field": "removal_priority.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "supply_status",
            "label": "Supply status",
            "field": "supply_status.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "disposition",
            "label": "Disposition",
            "field": "disposition.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "inspection_compliance",
            "label": "Inspection compliance",
            "field": "inspection_compliance.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "ndt_quantity_status",
            "label": "NDT quantity status",
            "field": "ndt_quantity_status.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "pick_completed_at",
            "label": "Pick completed",
            "field": "pick_completed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "repair_status",
            "label": "Repair status",
            "field": "repair_status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "on_repair": "On repair",
              "repair_required": "Repair required"
            }
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_material",
        "summary": "Create a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}": {
      "get": {
        "operationId": "get_work_order_material",
        "summary": "Retrieve a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_material",
        "summary": "Update a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_material",
        "summary": "Delete a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/add_to_repair_order": {
      "post": {
        "operationId": "add_to_repair_order_work_order_material",
        "summary": "Add a work order material to a repair order",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "progress",
                  "email_drafts",
                  "email_senders",
                  "requirements"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `progress`, `email_drafts`, `email_senders`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RepairOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialAddToRepairOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The repair order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open repair order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RepairOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_to_repair_order",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/allocate": {
      "post": {
        "operationId": "allocate_work_order_material",
        "summary": "Allocate a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialAllocate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "allocate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/assign_pick": {
      "post": {
        "operationId": "assign_pick_work_order_material",
        "summary": "Assign the pick of a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialAssignPick"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "assign_pick",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/cancel_turn_in": {
      "post": {
        "operationId": "cancel_turn_in_work_order_material",
        "summary": "Cancel the turn-in of a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialCancelTurnIn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel_turn_in",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/check_visually": {
      "post": {
        "operationId": "check_visually_work_order_material",
        "summary": "Check a work order material visually",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderVisualCheckField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialCheckVisually"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order visual check it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderVisualCheck"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "check_visually",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/flag_unused": {
      "post": {
        "operationId": "flag_unused_work_order_material",
        "summary": "Flag a work order material unused",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialFlagUnused"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "flag_unused",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/issue": {
      "post": {
        "operationId": "issue_work_order_material",
        "summary": "Issue a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialIssue"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "issue",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/issues": {
      "get": {
        "operationId": "list_work_order_issues",
        "summary": "List work order issues",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderIssueListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderIssueList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/issues/{uuid}": {
      "get": {
        "operationId": "get_work_order_issue",
        "summary": "Retrieve a work order issue",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderIssueField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order issue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderIssue"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/move": {
      "post": {
        "operationId": "move_work_order_material",
        "summary": "Move a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialMove"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "move",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/order": {
      "post": {
        "operationId": "order_work_order_material",
        "summary": "Order a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_rollup",
                  "overview_counts",
                  "progress",
                  "returnable_receipt_lines",
                  "unvouchered_receipt_lines",
                  "releasable_allocations",
                  "unlinked_part_numbers",
                  "email_drafts",
                  "email_senders",
                  "package_manifest",
                  "requirements"
                ]
              }
            },
            "description": "Inline `receiving_rollup`, `overview_counts`, `progress`, `returnable_receipt_lines`, `unvouchered_receipt_lines`, `releasable_allocations`, `unlinked_part_numbers`, `email_drafts`, `email_senders`, `package_manifest`, or `requirements` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/PurchaseOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialOrder"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The purchase order it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open purchase order it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchaseOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "order",
        "x-risk": "reversible",
        "x-grant": "purchasing:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/reallocate": {
      "post": {
        "operationId": "reallocate_work_order_material",
        "summary": "Reallocate a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialReallocate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reallocate",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/reject": {
      "post": {
        "operationId": "reject_work_order_material",
        "summary": "Reject a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RejectionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialReject"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The rejection it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rejection"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reject",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/return": {
      "post": {
        "operationId": "return_work_order_material",
        "summary": "Return a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "issues",
                  "turn_ins",
                  "visual_checks"
                ]
              }
            },
            "description": "Inline `issues`, `turn_ins`, or `visual_checks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderMaterialField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialReturn"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "return",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{uuid}/turn_in": {
      "post": {
        "operationId": "turn_in_work_order_material",
        "summary": "Turn in a work order material",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTurnInField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderMaterialTurnIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order turn in it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTurnIn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "turn_in",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/turn_ins": {
      "get": {
        "operationId": "list_work_order_turn_ins",
        "summary": "List work order turn ins",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTurnInListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTurnInList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/turn_ins/{uuid}": {
      "get": {
        "operationId": "get_work_order_turn_in",
        "summary": "Retrieve a work order turn in",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTurnInField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order turn in",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTurnIn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/visual_checks": {
      "get": {
        "operationId": "list_work_order_visual_checks",
        "summary": "List work order visual checks",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderVisualCheckListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderVisualCheckList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_materials/{work_order_material_uuid}/visual_checks/{uuid}": {
      "get": {
        "operationId": "get_work_order_visual_check",
        "summary": "Retrieve a work order visual check",
        "tags": [
          "work_order_materials"
        ],
        "parameters": [
          {
            "name": "work_order_material_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderVisualCheckField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order visual check",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderVisualCheck"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_settings": {
      "get": {
        "operationId": "list_work_order_settings",
        "summary": "List work order settings",
        "tags": [
          "work_order_settings"
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderSettingsListField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderSettingsList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_order_settings/{organization_uuid}": {
      "get": {
        "operationId": "get_work_order_settings",
        "summary": "Retrieve a work order settings",
        "tags": [
          "work_order_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "new_task_skill"
                ]
              }
            },
            "description": "Inline `new_task_skill` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_settings",
        "summary": "Update a work order settings",
        "tags": [
          "work_order_settings"
        ],
        "parameters": [
          {
            "name": "organization_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "new_task_skill"
                ]
              }
            },
            "description": "Inline `new_task_skill` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderSettingsField"
              }
            },
            "description": "Send only these fields; `object` always crosses, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderSettingsUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order settings",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderSettings"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_shop_supplies": {
      "get": {
        "operationId": "list_work_order_shop_supplies",
        "summary": "List work order shop supplies",
        "tags": [
          "work_order_shop_supplies"
        ],
        "parameters": [
          {
            "name": "work_order_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "sequence",
                "-sequence",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `sequence` sorts only beside a single `work_order_task[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderShopSupplyList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          },
          {
            "key": "work_order_task",
            "label": "Work order task",
            "kind": "options",
            "references": [
              "work_order_task"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "part",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Quantity",
            "field": "quantity",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "measurement_unit",
            "label": "Unit",
            "field": "measurement_unit.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "batch_lot_number",
            "label": "Batch/lot number",
            "field": "batch_lot_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sequence",
            "label": "Sequence",
            "field": "sequence",
            "sort": "sequence",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_task"
            ]
          },
          {
            "key": "facility",
            "label": "Facility",
            "field": "facility.label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "keywords",
            "label": "Keywords",
            "field": "keywords",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_shop_supply",
        "summary": "Create a work order shop supply",
        "tags": [
          "work_order_shop_supplies"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order shop supply",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderShopSupply"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_shop_supplies/{uuid}": {
      "get": {
        "operationId": "get_work_order_shop_supply",
        "summary": "Retrieve a work order shop supply",
        "tags": [
          "work_order_shop_supplies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order shop supply",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderShopSupply"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_shop_supply",
        "summary": "Update a work order shop supply",
        "tags": [
          "work_order_shop_supplies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderShopSupplyUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order shop supply",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderShopSupply"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_shop_supply",
        "summary": "Delete a work order shop supply",
        "tags": [
          "work_order_shop_supplies"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_stages": {
      "get": {
        "operationId": "list_work_order_stages",
        "summary": "List work order stages",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "awaiting_unit",
                  "received",
                  "evaluating",
                  "awaiting_approval",
                  "in_work",
                  "awaiting_inspection",
                  "completed",
                  "closed",
                  "cancelled"
                ],
                "description": "`awaiting_unit`: Opened before the customer's unit arrived; nothing is in the shop yet; `received`: The customer's unit is in; work has not started; `evaluating`: The unit is being inspected to find what it needs; `awaiting_approval`: Waiting on the customer to approve the work found; `in_work`: The shop is working on the unit; `awaiting_inspection`: The work is done and waits for its inspection; `completed`: The work and its inspection are finished; the unit is ready to go home; `closed`: Finished: every unit has gone home; `cancelled`: Called off before any unit arrived, or after every unit went home unworked",
                "x-enum-descriptions": [
                  "Opened before the customer's unit arrived; nothing is in the shop yet",
                  "The customer's unit is in; work has not started",
                  "The unit is being inspected to find what it needs",
                  "Waiting on the customer to approve the work found",
                  "The shop is working on the unit",
                  "The work is done and waits for its inspection",
                  "The work and its inspection are finished; the unit is ready to go home",
                  "Finished: every unit has gone home",
                  "Called off before any unit arrived, or after every unit went home unworked"
                ],
                "x-enum-labels": [
                  "Awaiting unit",
                  "Received",
                  "Evaluating",
                  "Awaiting approval",
                  "In work",
                  "Awaiting inspection",
                  "Completed",
                  "Closed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "status",
                "-status",
                "time_tracking",
                "-time_tracking",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `position`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStageList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "status",
            "label": "Lifecycle status",
            "kind": "options",
            "options": [
              {
                "value": "awaiting_unit",
                "label": "Awaiting unit"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "evaluating",
                "label": "Evaluating"
              },
              {
                "value": "awaiting_approval",
                "label": "Awaiting approval"
              },
              {
                "value": "in_work",
                "label": "In work"
              },
              {
                "value": "awaiting_inspection",
                "label": "Awaiting inspection"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "label",
            "label": "Name",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Lifecycle status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "awaiting_unit": "Awaiting unit",
              "received": "Received",
              "evaluating": "Evaluating",
              "awaiting_approval": "Awaiting approval",
              "in_work": "In work",
              "awaiting_inspection": "Awaiting inspection",
              "completed": "Completed",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "system",
            "label": "Kept by the system",
            "field": "system",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "time_tracking",
            "label": "Time tracking",
            "field": "time_tracking",
            "sort": "time_tracking",
            "kind": "text",
            "currency": null,
            "labels": {
              "accountable": "Accountable",
              "not_accountable": "Not accountable"
            }
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_stage",
        "summary": "Create a work order stage",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderStageCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_stages/{uuid}": {
      "get": {
        "operationId": "get_work_order_stage",
        "summary": "Retrieve a work order stage",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_stage",
        "summary": "Update a work order stage",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderStageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_stages/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_stage",
        "summary": "Activate a work order stage",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_stages/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_stage",
        "summary": "Deactivate a work order stage",
        "tags": [
          "work_order_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_task_stages": {
      "get": {
        "operationId": "list_work_order_task_stages",
        "summary": "List work order task stages",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "pending",
                  "ready",
                  "in_progress",
                  "completed",
                  "cancelled"
                ],
                "description": "`pending`: Planned, and not yet ready for the floor; `ready`: Ready to work: the floor may start it; `in_progress`: Being worked; `completed`: The work is done; `cancelled`: Called off, with a note saying why",
                "x-enum-descriptions": [
                  "Planned, and not yet ready for the floor",
                  "Ready to work: the floor may start it",
                  "Being worked",
                  "The work is done",
                  "Called off, with a note saying why"
                ],
                "x-enum-labels": [
                  "Pending",
                  "Ready to work",
                  "In progress",
                  "Completed",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "status",
                "-status",
                "locks_deletion",
                "-locks_deletion",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `position`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStageList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          },
          {
            "key": "status",
            "label": "Lifecycle status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "ready",
                "label": "Ready to work"
              },
              {
                "value": "in_progress",
                "label": "In progress"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "label",
            "label": "Name",
            "field": "label",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Lifecycle status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "pending": "Pending",
              "ready": "Ready to work",
              "in_progress": "In progress",
              "completed": "Completed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "system",
            "label": "Kept by the system",
            "field": "system",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "locks_deletion",
            "label": "Keeps tasks from deletion",
            "field": "locks_deletion",
            "sort": "locks_deletion",
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_task_stage",
        "summary": "Create a work order task stage",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskStageCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order task stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_task_stages/{uuid}": {
      "get": {
        "operationId": "get_work_order_task_stage",
        "summary": "Retrieve a work order task stage",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order task stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_task_stage",
        "summary": "Update a work order task stage",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskStageUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_task_stages/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_task_stage",
        "summary": "Activate a work order task stage",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order task stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_task_stages/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_task_stage",
        "summary": "Deactivate a work order task stage",
        "tags": [
          "work_order_task_stages"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskStageField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order task stage",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskStage"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_tasks": {
      "get": {
        "operationId": "list_work_order_tasks_across_work_orders",
        "summary": "List work order tasks across every work order",
        "tags": [
          "work_order_tasks"
        ],
        "parameters": [
          {
            "name": "work_order[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "held_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an employee"
              }
            },
            "description": "Tasks naming a skill one of these employees holds today, unexpired",
            "explode": true
          },
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of a work order task stage"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "pending",
                      "ready",
                      "in_progress",
                      "completed",
                      "cancelled"
                    ],
                    "description": "`pending`: Planned, and not yet ready for the floor; `ready`: Ready to work: the floor may start it; `in_progress`: Being worked; `completed`: The work is done; `cancelled`: Called off, with a note saying why",
                    "x-enum-descriptions": [
                      "Planned, and not yet ready for the floor",
                      "Ready to work: the floor may start it",
                      "Being worked",
                      "The work is done",
                      "Called off, with a note saying why"
                    ],
                    "x-enum-labels": [
                      "Pending",
                      "Ready to work",
                      "In progress",
                      "Completed",
                      "Cancelled"
                    ]
                  }
                ]
              }
            },
            "description": "Tasks on any of the stages whose uuids are given, or in any of the statuses given, whichever of that status's stages they are on",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A task's name, words of its instructions, or the start of its number"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "sequence",
                "-sequence",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `sequence` sorts only beside a single `work_order[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "work_order",
            "label": "Work order",
            "kind": "options",
            "references": [
              "work_order"
            ],
            "searchable": true
          }
        ]
      }
    },
    "/work_order_template_categories": {
      "get": {
        "operationId": "list_work_order_template_categories",
        "summary": "List work order template categories",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "parent[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template category's uuid"
              }
            },
            "description": "Subcategories of any of the categories whose uuids are given",
            "explode": true
          },
          {
            "name": "top_level",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the top-level categories, leaving out every subcategory"
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "name",
                "-name",
                "active",
                "-active",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategoryList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "parent",
            "label": "Category",
            "kind": "options",
            "references": [
              "work_order_template_category"
            ]
          },
          {
            "key": "top_level",
            "label": "Top level",
            "kind": "toggle"
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "position",
            "label": "Position",
            "field": "position",
            "sort": "position",
            "kind": "number",
            "currency": null
          },
          {
            "key": "parent",
            "label": "Category",
            "field": "parent.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_template_category",
        "summary": "Create a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_categories/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_category",
        "summary": "Retrieve a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template_category",
        "summary": "Update a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_category",
        "summary": "Delete a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_categories/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_template_category",
        "summary": "Activate a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_categories/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_template_category",
        "summary": "Deactivate a work order template category",
        "tags": [
          "work_order_template_categories"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateCategoryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateCategory"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_instructions": {
      "get": {
        "operationId": "list_work_order_template_instructions",
        "summary": "List work order template instructions",
        "tags": [
          "work_order_template_instructions"
        ],
        "parameters": [
          {
            "name": "work_order_template_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order_template[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_station[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work station's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "environment_check",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the humidity and temperature checks"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "position",
                "-position",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `position` sorts only beside a single `work_order_template_task[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateInstructionList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_work_order_template_instruction",
        "summary": "Create a work order template instruction",
        "tags": [
          "work_order_template_instructions"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_instructions/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_instruction",
        "summary": "Retrieve a work order template instruction",
        "tags": [
          "work_order_template_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template_instruction",
        "summary": "Update a work order template instruction",
        "tags": [
          "work_order_template_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateInstructionUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template instruction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateInstruction"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_instruction",
        "summary": "Delete a work order template instruction",
        "tags": [
          "work_order_template_instructions"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_materials": {
      "get": {
        "operationId": "list_work_order_template_materials",
        "summary": "List work order template materials",
        "tags": [
          "work_order_template_materials"
        ],
        "parameters": [
          {
            "name": "work_order_template_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_order_template[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "material_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "consumable",
                  "replace",
                  "repair",
                  "remove",
                  "visual_check",
                  "component",
                  "main_component_repair",
                  "offer_exchange"
                ],
                "description": "`consumable`: A part used up in the work, with nothing taken off the unit for it; `replace`: A part taken off the unit, and another put on in its place; `repair`: A part taken off the unit, repaired and put back on; `remove`: A part taken off the unit, with nothing put on in its place; `visual_check`: The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory; `component`: A component put on the unit with no part taken off for it; `main_component_repair`: The customer's unit itself, sent out to a vendor for repair; `offer_exchange`: A unit of ours offered to the customer in exchange for theirs",
                "x-enum-descriptions": [
                  "A part used up in the work, with nothing taken off the unit for it",
                  "A part taken off the unit, and another put on in its place",
                  "A part taken off the unit, repaired and put back on",
                  "A part taken off the unit, with nothing put on in its place",
                  "The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory",
                  "A component put on the unit with no part taken off for it",
                  "The customer's unit itself, sent out to a vendor for repair",
                  "A unit of ours offered to the customer in exchange for theirs"
                ],
                "x-enum-labels": [
                  "Consumable",
                  "Replace",
                  "Repair",
                  "Remove",
                  "Visual check",
                  "Component",
                  "Main component repair",
                  "Offer exchange"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "sequence",
                "-sequence",
                "part_number_raw",
                "-part_number_raw",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `sequence` sorts only beside a single `work_order_template_task[]`. `part_number_raw` sorts only beside a single `work_order_template_task[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateMaterialList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "material_type",
            "label": "Type",
            "kind": "options",
            "options": [
              {
                "value": "consumable",
                "label": "Consumable"
              },
              {
                "value": "replace",
                "label": "Replace"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "remove",
                "label": "Remove"
              },
              {
                "value": "visual_check",
                "label": "Visual check"
              },
              {
                "value": "component",
                "label": "Component"
              },
              {
                "value": "main_component_repair",
                "label": "Main component repair"
              },
              {
                "value": "offer_exchange",
                "label": "Offer exchange"
              }
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "work_order_template",
            "label": "Work order template",
            "kind": "options",
            "references": [
              "work_order_template"
            ],
            "searchable": true
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_template_material",
        "summary": "Create a work order template material",
        "tags": [
          "work_order_template_materials"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_materials/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_material",
        "summary": "Retrieve a work order template material",
        "tags": [
          "work_order_template_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template_material",
        "summary": "Update a work order template material",
        "tags": [
          "work_order_template_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template material",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateMaterial"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_material",
        "summary": "Delete a work order template material",
        "tags": [
          "work_order_template_materials"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_template_tasks": {
      "get": {
        "operationId": "list_work_order_template_tasks_across_templates",
        "summary": "List work order template tasks across every template",
        "tags": [
          "work_order_template_tasks"
        ],
        "parameters": [
          {
            "name": "uuid[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "The tasks whose uuids are given",
            "explode": true
          },
          {
            "name": "work_order_template[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Tasks of the templates for any of the parts whose uuids are given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Tasks of the templates for any of the customers, by their companies' uuids",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "created_at",
                "-created_at",
                "sequence",
                "-sequence",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `sequence` sorts only beside a single `work_order_template[]`. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTaskList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "work_order_template",
            "label": "Template",
            "kind": "options",
            "references": [
              "work_order_template"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          }
        ],
        "x-columns": [
          {
            "key": "work_order_template",
            "label": "Template",
            "field": "work_order_template.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "sequence",
            "label": "Task",
            "field": "sequence",
            "sort": "sequence",
            "kind": "number",
            "currency": null,
            "beside": [
              "work_order_template"
            ]
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "output_type",
            "label": "Output type",
            "field": "output_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "summary": "Summary",
              "detail": "Detail itemized",
              "hidden": "Hidden"
            }
          },
          {
            "key": "flat_rate_price",
            "label": "Flat rate price",
            "field": "flat_rate_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "parts_fixed_price",
            "label": "Parts fixed price",
            "field": "parts_fixed_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "parts_over_and_above_fixed_price",
            "label": "Parts over and above fixed price",
            "field": "parts_over_and_above_fixed_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "labor_fixed_rate",
            "label": "Labor fixed rate",
            "field": "labor_fixed_rate_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "misc_fixed_price",
            "label": "Misc fixed price",
            "field": "misc_fixed_price_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/work_order_template_tasks/reprice": {
      "post": {
        "operationId": "reprice_work_order_template_tasks",
        "summary": "Reprice several work order template tasks at once",
        "tags": [
          "work_order_template_tasks"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateTasksReprice"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every work order template task named, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTaskList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "reprice",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates": {
      "get": {
        "operationId": "list_work_order_templates",
        "summary": "List work order templates",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "offered_for_part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of a part"
              }
            },
            "description": "Templates for any of the parts whose uuids are given: those linked to a repair capability of the part, and those offered for it",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Templates linked to a repair capability of any of the parts whose uuids are given, the ones that can apply themselves there",
            "explode": true
          },
          {
            "name": "repair_service[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A repair service's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "category[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template category's uuid"
              }
            },
            "description": "Templates filed under any of the categories or subcategories whose uuids are given",
            "explode": true
          },
          {
            "name": "subcategory[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template category's uuid"
              }
            },
            "description": "Templates filed under any of the subcategories whose uuids are given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "name",
                "-name",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "name"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `name`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "category",
            "label": "Category",
            "kind": "options",
            "references": [
              "work_order_template_category"
            ]
          },
          {
            "key": "subcategory",
            "label": "Subcategory",
            "kind": "options",
            "references": [
              "work_order_template_category"
            ]
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "repair_service",
            "label": "Service",
            "kind": "options",
            "references": [
              "repair_service"
            ]
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "version",
            "label": "Version",
            "field": "version",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "made_of",
            "label": "Made of",
            "field": "made_of",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "phases": "Phases",
              "tasks": "Tasks"
            }
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_scope",
            "label": "Work scope",
            "field": "work_scope",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "inspect_test": "Inspect/test",
              "repair": "Repair",
              "overhaul": "Overhaul",
              "modify": "Modify"
            }
          },
          {
            "key": "applies_at_opening",
            "label": "Applies to new work orders",
            "field": "applies_at_opening",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "prices_quote_lines",
            "label": "Prices new quote lines",
            "field": "prices_quote_lines",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "category",
            "label": "Category",
            "field": "category.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "subcategory",
            "label": "Subcategory",
            "field": "subcategory.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_center",
            "label": "Work center",
            "field": "work_center.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "repair_service",
            "label": "Service",
            "field": "repair_service.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_template",
        "summary": "Create a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{uuid}": {
      "get": {
        "operationId": "get_work_order_template",
        "summary": "Retrieve a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template",
        "summary": "Update a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template",
        "summary": "Delete a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_order_template",
        "summary": "Activate a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{uuid}/add_parts": {
      "post": {
        "operationId": "add_parts_work_order_template",
        "summary": "Add parts to a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateAddParts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_parts",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_order_template",
        "summary": "Deactivate a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/parts": {
      "get": {
        "operationId": "list_work_order_template_parts",
        "summary": "List work order template parts",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "classification[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePartListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePartList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "classification",
            "label": "Classification",
            "kind": "options",
            "references": [
              "part_classification"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/parts/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_part",
        "summary": "Retrieve a work order template part",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePartField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template part",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePart"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_part",
        "summary": "Delete a work order template part",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/phases": {
      "get": {
        "operationId": "list_work_order_template_phases",
        "summary": "List work order template phases",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "category[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Phases whose templates are filed under any of the categories or subcategories whose uuids are given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sequence",
                "-sequence",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "sequence"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePhaseList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "category",
            "label": "Category",
            "kind": "options",
            "references": [
              "work_order_template_category"
            ]
          }
        ],
        "x-columns": [
          {
            "key": "sequence",
            "label": "Sequence",
            "field": "sequence",
            "sort": "sequence",
            "kind": "number",
            "currency": null
          },
          {
            "key": "phase_template",
            "label": "Template",
            "field": "phase_template.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "phase_template_version",
            "label": "Template version",
            "field": "phase_template_version",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "phase_template_active",
            "label": "Template active",
            "field": "phase_template_active",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_template_phase",
        "summary": "Create a work order template phase",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template phase",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePhase"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/phases/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_phase",
        "summary": "Retrieve a work order template phase",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template phase",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePhase"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template_phase",
        "summary": "Update a work order template phase",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplatePhaseUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template phase",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplatePhase"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_phase",
        "summary": "Delete a work order template phase",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{uuid}/revise_tasks": {
      "post": {
        "operationId": "revise_tasks_work_order_template",
        "summary": "Revise the tasks of a work order template",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "tasks",
                  "phases",
                  "parts"
                ]
              }
            },
            "description": "Inline `tasks`, `phases`, or `parts` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateReviseTasks"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplate"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_tasks",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/tasks": {
      "get": {
        "operationId": "list_work_order_template_tasks",
        "summary": "List work order template tasks",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "task_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "non_routine"
                ],
                "description": "`routine`: Work every unit of its kind gets; `non_routine`: Work this unit needs, found on it",
                "x-enum-descriptions": [
                  "Work every unit of its kind gets",
                  "Work this unit needs, found on it"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Non-routine"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_scope[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inspect_test",
                  "repair",
                  "overhaul",
                  "modify",
                  "teardown"
                ],
                "description": "`inspect_test`: Inspected and/or tested, with no repair; `repair`: Repaired to a serviceable condition; `overhaul`: Overhauled to the manufacturer's overhaul standard; `modify`: Modified, as a service bulletin or design change says; `teardown`: Taken apart, to find what the unit needs",
                "x-enum-descriptions": [
                  "Inspected and/or tested, with no repair",
                  "Repaired to a serviceable condition",
                  "Overhauled to the manufacturer's overhaul standard",
                  "Modified, as a service bulletin or design change says",
                  "Taken apart, to find what the unit needs"
                ],
                "x-enum-labels": [
                  "Inspect/test",
                  "Repair",
                  "Overhaul",
                  "Modify",
                  "Teardown"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "gate[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order gate's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "uuid[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "The tasks whose uuids are given",
            "explode": true
          },
          {
            "name": "parent[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order template task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Tasks of the templates for any of the parts whose uuids are given",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Tasks of the templates for any of the customers, by their companies' uuids",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sequence",
                "-sequence",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "sequence"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTaskList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "task_type",
            "label": "Task type",
            "kind": "options",
            "options": [
              {
                "value": "routine",
                "label": "Routine"
              },
              {
                "value": "non_routine",
                "label": "Non-routine"
              }
            ]
          },
          {
            "key": "work_scope",
            "label": "Work scope",
            "kind": "options",
            "options": [
              {
                "value": "inspect_test",
                "label": "Inspect/test"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "overhaul",
                "label": "Overhaul"
              },
              {
                "value": "modify",
                "label": "Modify"
              },
              {
                "value": "teardown",
                "label": "Teardown"
              }
            ]
          },
          {
            "key": "gate",
            "label": "Gate",
            "kind": "options",
            "references": [
              "work_order_gate"
            ],
            "fenced": true
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_template_task",
        "summary": "Create a work order template task",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order template task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/tasks/{uuid}": {
      "get": {
        "operationId": "get_work_order_template_task",
        "summary": "Retrieve a work order template task",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order template task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_template_task",
        "summary": "Update a work order template task",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_template_task",
        "summary": "Delete a work order template task",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_order_templates/{work_order_template_uuid}/tasks/{uuid}/replace_skills": {
      "post": {
        "operationId": "replace_skills_work_order_template_task",
        "summary": "Replace the skills of a work order template task",
        "tags": [
          "work_order_templates"
        ],
        "parameters": [
          {
            "name": "work_order_template_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskReplaceSkills"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order template task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTemplateTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_skills",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders": {
      "get": {
        "operationId": "list_work_orders",
        "summary": "List work orders",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "number[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "The number a record's identifier ends in, matched exactly: `12` for an identifier ending `-12`",
            "explode": true
          },
          {
            "name": "identifier[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "on_hold",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only work orders with a hold in force"
          },
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of a work order stage"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "awaiting_unit",
                      "received",
                      "evaluating",
                      "awaiting_approval",
                      "in_work",
                      "awaiting_inspection",
                      "completed",
                      "closed",
                      "cancelled"
                    ],
                    "description": "`awaiting_unit`: Opened before the customer's unit arrived; nothing is in the shop yet; `received`: The customer's unit is in; work has not started; `evaluating`: The unit is being inspected to find what it needs; `awaiting_approval`: Waiting on the customer to approve the work found; `in_work`: The shop is working on the unit; `awaiting_inspection`: The work is done and waits for its inspection; `completed`: The work and its inspection are finished; the unit is ready to go home; `closed`: Finished: every unit has gone home; `cancelled`: Called off before any unit arrived, or after every unit went home unworked",
                    "x-enum-descriptions": [
                      "Opened before the customer's unit arrived; nothing is in the shop yet",
                      "The customer's unit is in; work has not started",
                      "The unit is being inspected to find what it needs",
                      "Waiting on the customer to approve the work found",
                      "The shop is working on the unit",
                      "The work is done and waits for its inspection",
                      "The work and its inspection are finished; the unit is ready to go home",
                      "Finished: every unit has gone home",
                      "Called off before any unit arrived, or after every unit went home unworked"
                    ],
                    "x-enum-labels": [
                      "Awaiting unit",
                      "Received",
                      "Evaluating",
                      "Awaiting approval",
                      "In work",
                      "Awaiting inspection",
                      "Completed",
                      "Closed",
                      "Cancelled"
                    ]
                  }
                ]
              }
            },
            "description": "Work orders on any of the stages whose uuids are given, or in any of the statuses given, whichever of that status's stages they are on",
            "explode": true
          },
          {
            "name": "customer[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A company's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "part[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A part's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "technician[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "gate[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order gate's uuid"
              }
            },
            "description": "Work orders whose tasks have reached any of the gates whose uuids are given",
            "explode": true
          },
          {
            "name": "awaiting_unit",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the open work orders still waiting on a unit from the customer"
          },
          {
            "name": "allocated_parts",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the open work orders whose materials hold parts allocated and not yet issued"
          },
          {
            "name": "workable_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an employee"
              }
            },
            "description": "Work orders taking labor, in one of these employees' organization, with a task not cancelled naming a skill that employee holds today",
            "explode": true
          },
          {
            "name": "include_trashed",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "number",
                "-number",
                "created_at",
                "-created_at",
                "status",
                "-status",
                "updated_at",
                "-updated_at"
              ],
              "default": "-created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. `status` sorts in its own order, awaiting_unit, received, evaluating, awaiting_approval, in_work, awaiting_inspection, completed, closed, cancelled, not the alphabet. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_warnings",
                  "customer",
                  "contacts"
                ]
              }
            },
            "description": "Inline `receiving_warnings`, `customer`, or `contacts` on each row",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "stage",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "awaiting_unit",
                "label": "Awaiting unit"
              },
              {
                "value": "received",
                "label": "Received"
              },
              {
                "value": "evaluating",
                "label": "Evaluating"
              },
              {
                "value": "awaiting_approval",
                "label": "Awaiting approval"
              },
              {
                "value": "in_work",
                "label": "In work"
              },
              {
                "value": "awaiting_inspection",
                "label": "Awaiting inspection"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "closed",
                "label": "Closed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ],
            "references": [
              "work_order_stage"
            ],
            "under": "status",
            "fenced": true
          },
          {
            "key": "awaiting_unit",
            "label": "Awaiting unit",
            "kind": "toggle"
          },
          {
            "key": "on_hold",
            "label": "On hold",
            "kind": "toggle"
          },
          {
            "key": "allocated_parts",
            "label": "Only with parts to issue",
            "kind": "toggle"
          },
          {
            "key": "gate",
            "label": "Current gate",
            "kind": "options",
            "references": [
              "work_order_gate"
            ],
            "fenced": true
          },
          {
            "key": "customer",
            "label": "Customer",
            "kind": "options",
            "references": [
              "company"
            ],
            "searchable": true
          },
          {
            "key": "part",
            "label": "Part",
            "kind": "options",
            "references": [
              "part"
            ],
            "searchable": true
          },
          {
            "key": "technician",
            "label": "Technician",
            "kind": "options",
            "references": [
              "employee"
            ],
            "fenced": true,
            "searchable": true
          },
          {
            "key": "include_trashed",
            "label": "Include trashed",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": "status",
            "kind": "text",
            "currency": null,
            "labels": {
              "awaiting_unit": "Awaiting unit",
              "received": "Received",
              "evaluating": "Evaluating",
              "awaiting_approval": "Awaiting approval",
              "in_work": "In work",
              "awaiting_inspection": "Awaiting inspection",
              "completed": "Completed",
              "closed": "Closed",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "work_scope",
            "label": "Work scope",
            "field": "work_scope",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "inspect_test": "Inspect/test",
              "repair": "Repair",
              "overhaul": "Overhaul",
              "modify": "Modify"
            }
          },
          {
            "key": "deal_type",
            "label": "Deal type",
            "field": "deal_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customer_repair": "Customer repair"
            }
          },
          {
            "key": "work_order_type",
            "label": "Work order type",
            "field": "work_order_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "customer": "Customer"
            }
          },
          {
            "key": "outcome",
            "label": "Outcome",
            "field": "outcome",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "repaired": "Repaired",
              "returned_unrepaired": "Returned unrepaired",
              "scrapped": "Scrapped"
            }
          },
          {
            "key": "description",
            "label": "Description",
            "field": "description",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity_to_repair",
            "label": "Quantity",
            "field": "quantity_to_repair",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "quantity_received",
            "label": "Received",
            "field": "quantity_received",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "requested_tag_type",
            "label": "Requested tag type",
            "field": "requested_tag_type",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "faa_8130_3": "FAA 8130-3",
              "faa_easa_dual": "FAA/EASA dual release",
              "faa_uk_dual": "FAA/UK CAA dual release",
              "easa_form_1": "EASA Form 1",
              "uk_caa_form_1": "UK CAA Form 1",
              "tcca_form_one": "TCCA Form One",
              "casa_form_1": "CASA Form 1",
              "caac_release": "CAAC Form AAC",
              "coc": "Certificate of Conformance",
              "other": "Other"
            }
          },
          {
            "key": "no_der_repairs",
            "label": "No DER repairs",
            "field": "no_der_repairs",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "no_pma_material",
            "label": "No PMA material",
            "field": "no_pma_material",
            "sort": null,
            "kind": "boolean",
            "currency": null
          },
          {
            "key": "customer_po_number",
            "label": "Customer PO",
            "field": "customer_po_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer_reference",
            "label": "Customer reference",
            "field": "customer_reference",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "internal_notes",
            "label": "Internal notes",
            "field": "internal_notes",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "spending_limit",
            "label": "Spending limit",
            "field": "spending_limit_cents",
            "sort": null,
            "kind": "money",
            "currency": "own"
          },
          {
            "key": "created_at",
            "label": "Created",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "identifier",
            "label": "Number",
            "field": "identifier",
            "sort": "number",
            "kind": "identifier",
            "currency": null
          },
          {
            "key": "trashed_at",
            "label": "Trashed",
            "field": "trashed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "received_at",
            "label": "Received",
            "field": "received_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "completed_at",
            "label": "Completed",
            "field": "completed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "closed_at",
            "label": "Closed",
            "field": "closed_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "initial_promise_on",
            "label": "Initial promise",
            "field": "initial_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "updated_promise_on",
            "label": "Updated promise",
            "field": "updated_promise_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "promised_on",
            "label": "Promised",
            "field": "promised_on",
            "sort": null,
            "kind": "date",
            "currency": null
          },
          {
            "key": "home_currency",
            "label": "Home currency",
            "field": "home_currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "fx_rate",
            "label": "FX rate",
            "field": "fx_rate",
            "sort": null,
            "kind": "number",
            "currency": null
          },
          {
            "key": "home_spending_limit",
            "label": "Home spending limit",
            "field": "home_spending_limit_cents",
            "sort": null,
            "kind": "money",
            "currency": "home"
          },
          {
            "key": "part_number",
            "label": "Part",
            "field": "part_number",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "customer",
            "label": "Customer",
            "field": "customer.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact",
            "label": "Contact",
            "field": "contact.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "contact_email_address",
            "label": "Contact email address",
            "field": "contact_email_address",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "technician",
            "label": "Technician",
            "field": "technician.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_center_label",
            "label": "Work center",
            "field": "work_center.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "gate",
            "label": "Current gate",
            "field": "gate.name",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "currency",
            "label": "Currency",
            "field": "currency_code",
            "sort": null,
            "kind": "text",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_order",
        "summary": "Create a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/receive": {
      "post": {
        "operationId": "receive_work_orders",
        "summary": "Receive several work orders at once",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderListField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrdersReceive"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every work order named, as it now stands",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderList"
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "receive",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}": {
      "get": {
        "operationId": "get_work_order",
        "summary": "Retrieve a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order",
        "summary": "Update a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/advance": {
      "post": {
        "operationId": "advance_work_order",
        "summary": "Advance a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderAdvance"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "advance",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/allocate_materials": {
      "post": {
        "operationId": "allocate_materials_work_order",
        "summary": "Allocate the materials of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderAllocateMaterials"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "allocate_materials",
        "x-risk": "reversible",
        "x-grant": "inventory:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/apply_template": {
      "post": {
        "operationId": "apply_template_work_order",
        "summary": "Apply a template to a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderApplyTemplate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "apply_template",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_work_order",
        "summary": "Cancel a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/create_receipt": {
      "post": {
        "operationId": "create_receipt_work_order",
        "summary": "Create a receipt for a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "receiving_check",
                  "receiving_outcome",
                  "issue_splits",
                  "drop_ship_chain",
                  "drop_shipment",
                  "ready_to_release"
                ]
              }
            },
            "description": "Inline `receiving_check`, `receiving_outcome`, `issue_splits`, `drop_ship_chain`, `drop_shipment`, or `ready_to_release` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ReceiptField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "201": {
            "description": "The receipt it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "200": {
            "description": "The open receipt it added to",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receipt"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "create_receipt",
        "x-risk": "reversible",
        "x-grant": "operations:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/findings": {
      "get": {
        "operationId": "list_work_order_findings",
        "summary": "List work order findings",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "necessity[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "mandatory",
                  "recommended"
                ],
                "description": "`mandatory`: The unit can't be released serviceable without it; `recommended`: Worth doing, and the customer may decline it",
                "x-enum-descriptions": [
                  "The unit can't be released serviceable without it",
                  "Worth doing, and the customer may decline it"
                ],
                "x-enum-labels": [
                  "Mandatory",
                  "Recommended"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "position",
                "-position",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "position"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderFindingListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderFindingList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "necessity",
            "label": "Necessity",
            "kind": "options",
            "options": [
              {
                "value": "mandatory",
                "label": "Mandatory"
              },
              {
                "value": "recommended",
                "label": "Recommended"
              }
            ]
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_finding",
        "summary": "Create a work order finding",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderFindingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderFindingCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order finding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderFinding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/findings/{uuid}": {
      "get": {
        "operationId": "get_work_order_finding",
        "summary": "Retrieve a work order finding",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderFindingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order finding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderFinding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_finding",
        "summary": "Update a work order finding",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderFindingField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderFindingUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order finding",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderFinding"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_finding",
        "summary": "Delete a work order finding",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/holds": {
      "get": {
        "operationId": "list_work_order_holds",
        "summary": "List work order holds",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "active",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Only holds still in force, not yet lifted"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "updated_at",
                "-updated_at"
              ]
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderHoldListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderHoldList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "post": {
        "operationId": "create_work_order_hold",
        "summary": "Create a work order hold",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderHoldCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/holds/{uuid}": {
      "get": {
        "operationId": "get_work_order_hold",
        "summary": "Retrieve a work order hold",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/holds/{uuid}/lift": {
      "post": {
        "operationId": "lift_work_order_hold",
        "summary": "Lift a work order hold",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderHoldField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order hold",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderHold"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "lift",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/replace_contacts": {
      "post": {
        "operationId": "replace_contacts_work_order",
        "summary": "Replace the contacts of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderReplaceContacts"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_contacts",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/replace_publications": {
      "post": {
        "operationId": "replace_publications_work_order",
        "summary": "Replace the publications of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderReplacePublications"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_publications",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/revise_findings": {
      "post": {
        "operationId": "revise_findings_work_order",
        "summary": "Revise the findings of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderReviseFindings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_findings",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/revise_promise": {
      "post": {
        "operationId": "revise_promise_work_order",
        "summary": "Revise the promise of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderRevisePromise"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_promise",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{uuid}/revise_tasks": {
      "post": {
        "operationId": "revise_tasks_work_order",
        "summary": "Revise the tasks of a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderReviseTasks"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "revise_tasks",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks": {
      "get": {
        "operationId": "list_work_order_tasks",
        "summary": "List work order tasks",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "stage[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "The uuid of a work order task stage"
                  },
                  {
                    "type": "string",
                    "enum": [
                      "pending",
                      "ready",
                      "in_progress",
                      "completed",
                      "cancelled"
                    ],
                    "description": "`pending`: Planned, and not yet ready for the floor; `ready`: Ready to work: the floor may start it; `in_progress`: Being worked; `completed`: The work is done; `cancelled`: Called off, with a note saying why",
                    "x-enum-descriptions": [
                      "Planned, and not yet ready for the floor",
                      "Ready to work: the floor may start it",
                      "Being worked",
                      "The work is done",
                      "Called off, with a note saying why"
                    ],
                    "x-enum-labels": [
                      "Pending",
                      "Ready to work",
                      "In progress",
                      "Completed",
                      "Cancelled"
                    ]
                  }
                ]
              }
            },
            "description": "Tasks on any of the stages whose uuids are given, or in any of the statuses given, whichever of that status's stages they are on",
            "explode": true
          },
          {
            "name": "task_type[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "routine",
                  "non_routine"
                ],
                "description": "`routine`: Work every unit of its kind gets; `non_routine`: Work this unit needs, found on it",
                "x-enum-descriptions": [
                  "Work every unit of its kind gets",
                  "Work this unit needs, found on it"
                ],
                "x-enum-labels": [
                  "Routine",
                  "Non-routine"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "work_scope[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "inspect_test",
                  "repair",
                  "overhaul",
                  "modify",
                  "teardown"
                ],
                "description": "`inspect_test`: Inspected and/or tested, with no repair; `repair`: Repaired to a serviceable condition; `overhaul`: Overhauled to the manufacturer's overhaul standard; `modify`: Modified, as a service bulletin or design change says; `teardown`: Taken apart, to find what the unit needs",
                "x-enum-descriptions": [
                  "Inspected and/or tested, with no repair",
                  "Repaired to a serviceable condition",
                  "Overhauled to the manufacturer's overhaul standard",
                  "Modified, as a service bulletin or design change says",
                  "Taken apart, to find what the unit needs"
                ],
                "x-enum-labels": [
                  "Inspect/test",
                  "Repair",
                  "Overhaul",
                  "Modify",
                  "Teardown"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "finding[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order finding's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "gate[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order gate's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "parent[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "assigned_to[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An employee's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "skill[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A skill's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "held_by[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "The uuid of an employee"
              }
            },
            "description": "Tasks naming a skill one of these employees holds today, unexpired",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "A task's name, words of its instructions, or the start of its number"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "sequence",
                "-sequence",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "sequence"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTaskList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "stage",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "pending",
                "label": "Pending"
              },
              {
                "value": "ready",
                "label": "Ready to work"
              },
              {
                "value": "in_progress",
                "label": "In progress"
              },
              {
                "value": "completed",
                "label": "Completed"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ],
            "references": [
              "work_order_task_stage"
            ],
            "under": "status",
            "fenced": true
          },
          {
            "key": "task_type",
            "label": "Task type",
            "kind": "options",
            "options": [
              {
                "value": "routine",
                "label": "Routine"
              },
              {
                "value": "non_routine",
                "label": "Non-routine"
              }
            ]
          },
          {
            "key": "work_scope",
            "label": "Work scope",
            "kind": "options",
            "options": [
              {
                "value": "inspect_test",
                "label": "Inspect/test"
              },
              {
                "value": "repair",
                "label": "Repair"
              },
              {
                "value": "overhaul",
                "label": "Overhaul"
              },
              {
                "value": "modify",
                "label": "Modify"
              },
              {
                "value": "teardown",
                "label": "Teardown"
              }
            ]
          },
          {
            "key": "finding",
            "label": "Finding",
            "kind": "options",
            "references": [
              "work_order_finding"
            ]
          },
          {
            "key": "gate",
            "label": "Gate",
            "kind": "options",
            "references": [
              "work_order_gate"
            ],
            "fenced": true
          }
        ]
      },
      "post": {
        "operationId": "create_work_order_task",
        "summary": "Create a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}": {
      "get": {
        "operationId": "get_work_order_task",
        "summary": "Retrieve a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_order_task",
        "summary": "Update a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_order_task",
        "summary": "Delete a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/add_teardown": {
      "post": {
        "operationId": "add_teardown_work_order_task",
        "summary": "Add a teardown to a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTurnInField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskAddTeardown"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work order turn in it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTurnIn"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "add_teardown",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/advance": {
      "post": {
        "operationId": "advance_work_order_task",
        "summary": "Advance a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskAdvance"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "advance",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/assign": {
      "post": {
        "operationId": "assign_work_order_task",
        "summary": "Assign a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskAssign"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "assign",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/cancel": {
      "post": {
        "operationId": "cancel_work_order_task",
        "summary": "Cancel a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskCancel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "cancel",
        "x-risk": "destructive",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/clock_in": {
      "post": {
        "operationId": "clock_in_work_order_task",
        "summary": "Clock in on a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/LaborEntryField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskClockIn"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The labor entry it made",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaborEntry"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "clock_in",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/copy_template_instructions": {
      "post": {
        "operationId": "copy_template_instructions_work_order_task",
        "summary": "Copy the template's instructions into a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskCopyTemplateInstructions"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "copy_template_instructions",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/copy_template_materials": {
      "post": {
        "operationId": "copy_template_materials_work_order_task",
        "summary": "Copy the template's materials into a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskCopyTemplateMaterials"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "copy_template_materials",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/tasks/{uuid}/replace_skills": {
      "post": {
        "operationId": "replace_skills_work_order_task",
        "summary": "Replace the skills of a work order task",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTaskField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkOrderTaskReplaceSkills"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work order task",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTask"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "replace_skills",
        "x-risk": "reversible",
        "x-grant": "repairs:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/trash": {
      "post": {
        "operationId": "trash_work_order",
        "summary": "Trash a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "trash",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "restore_work_order",
        "summary": "Restore a work order",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "expand[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "status_changes",
                  "turnaround",
                  "credit_warning",
                  "publication_caution",
                  "receiving_warnings",
                  "customer",
                  "contacts",
                  "holds",
                  "findings",
                  "tasks"
                ]
              }
            },
            "description": "Inline `status_changes`, `turnaround`, `credit_warning`, `publication_caution`, `receiving_warnings`, `customer`, `contacts`, `holds`, `findings`, or `tasks` on the record",
            "explode": true
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderField"
              }
            },
            "description": "Send only these fields, dotted into an expansion; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "200": {
            "description": "The work order",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrder"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "restore",
        "x-risk": "reversible",
        "x-grant": "repairs:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_orders/{work_order_uuid}/turn_ins": {
      "get": {
        "operationId": "list_work_order_turn_ins_across_tasks",
        "summary": "List work order turn ins across every task",
        "description": "Every turn-in on the work order's tasks, its teardown parts among them, oldest first",
        "tags": [
          "work_orders"
        ],
        "parameters": [
          {
            "name": "work_order_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "work_order_task[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "A work order task's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "teardown",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "`true` keeps the teardown parts, added by Add Teardown"
          },
          {
            "name": "status[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "turned_in",
                  "cancelled"
                ],
                "description": "`turned_in`: The part stands in inventory as the customer's, received off the unit; `cancelled`: The turn-in was cancelled, and the part taken back out of inventory",
                "x-enum-descriptions": [
                  "The part stands in inventory as the customer's, received off the unit",
                  "The turn-in was cancelled, and the part taken back out of inventory"
                ],
                "x-enum-labels": [
                  "Turned in",
                  "Cancelled"
                ]
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The part number, the serial number, or words of the findings"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "created_at",
                "-created_at",
                "part",
                "-part",
                "serial_number",
                "-serial_number",
                "quantity",
                "-quantity",
                "cancelled_at",
                "-cancelled_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "created_at"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by uuid, the sort's way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkOrderTurnInListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkOrderTurnInList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "work_order_task",
            "label": "Task",
            "kind": "options",
            "references": [
              "work_order_task"
            ],
            "searchable": true
          },
          {
            "key": "teardown",
            "label": "Only teardown parts",
            "kind": "toggle"
          },
          {
            "key": "status",
            "label": "Status",
            "kind": "options",
            "options": [
              {
                "value": "turned_in",
                "label": "Turned in"
              },
              {
                "value": "cancelled",
                "label": "Cancelled"
              }
            ]
          }
        ],
        "x-columns": [
          {
            "key": "part",
            "label": "Part",
            "field": "part.part_number",
            "sort": "part",
            "kind": "text",
            "currency": null
          },
          {
            "key": "serial_number",
            "label": "Serial",
            "field": "serial_number",
            "sort": "serial_number",
            "kind": "text",
            "currency": null
          },
          {
            "key": "condition",
            "label": "Condition",
            "field": "condition.code",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "quantity",
            "label": "Qty",
            "field": "quantity",
            "sort": "quantity",
            "kind": "number",
            "currency": null
          },
          {
            "key": "bin",
            "label": "Bin",
            "field": "bin",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "findings",
            "label": "Findings",
            "field": "findings",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_order_task",
            "label": "Task",
            "field": "work_order_material",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "work_order_material",
            "label": "Material",
            "field": "work_order_material",
            "sort": null,
            "kind": "text",
            "currency": null
          },
          {
            "key": "status",
            "label": "Status",
            "field": "status",
            "sort": null,
            "kind": "text",
            "currency": null,
            "labels": {
              "turned_in": "Turned in",
              "cancelled": "Cancelled"
            }
          },
          {
            "key": "created_at",
            "label": "Turned in on",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "cancelled_at",
            "label": "Cancelled",
            "field": "cancelled_at",
            "sort": "cancelled_at",
            "kind": "date",
            "currency": null
          }
        ]
      }
    },
    "/work_stations": {
      "get": {
        "operationId": "list_work_stations",
        "summary": "List work stations",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "code[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "organization[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "An organization's uuid"
              }
            },
            "description": "Rows matching any of the values given",
            "explode": true
          },
          {
            "name": "include_inactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            },
            "description": "Widen the list to rows it hides by default"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Full-text search, the way the web's search box narrows this list"
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "code",
                "-code",
                "name",
                "-name",
                "active",
                "-active",
                "created_at",
                "-created_at",
                "updated_at",
                "-updated_at"
              ],
              "default": "code"
            },
            "description": "A column, or `-column` for descending; nulls sort last either way. Rows equal under the sort follow by `code`, then uuid, ascending either way. `updated_at` walks the list's changes in order; a change is stamped before it commits, so resume from a watermark a few seconds back and skip the rows already seen"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "description": "Rows per page, coerced down to 100"
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationListField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "include[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "total_count"
                ]
              }
            },
            "description": "Add `total_count` to the answer, counted only when asked",
            "explode": true
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `next_cursor` of the previous page; opaque"
          },
          {
            "name": "updated_since",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Only rows changed at or after this instant"
          },
          {
            "name": "view",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The uuid of a view (`/views`) whose `resource` is this list: its criteria narrow the rows, each filter sent beside it winning and one sent blank lifting the view's, and it sorts as you personalize it (`/views/{uuid}/personalization`), else as the view does, unless `sort` is sent"
          }
        ],
        "responses": {
          "200": {
            "description": "One page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStationList"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_cursor",
          "cursor_mismatch",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ],
        "x-filters": [
          {
            "key": "include_inactive",
            "label": "Include inactive",
            "kind": "toggle"
          }
        ],
        "x-columns": [
          {
            "key": "code",
            "label": "Code",
            "field": "code",
            "sort": "code",
            "kind": "text",
            "currency": null
          },
          {
            "key": "name",
            "label": "Name",
            "field": "name",
            "sort": "name",
            "kind": "text",
            "currency": null
          },
          {
            "key": "created_at",
            "label": "Added",
            "field": "created_at",
            "sort": "created_at",
            "kind": "date",
            "currency": null
          },
          {
            "key": "active",
            "label": "Active",
            "field": "inactive_at",
            "sort": "active",
            "kind": "active",
            "currency": null
          }
        ]
      },
      "post": {
        "operationId": "create_work_station",
        "summary": "Create a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkStationCreate"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The work station",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Location": {
                "$ref": "#/components/headers/Location"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "validation_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_stations/{uuid}": {
      "get": {
        "operationId": "get_work_station",
        "summary": "Retrieve a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "A tag from an earlier read; answers 304 while it still holds"
          }
        ],
        "responses": {
          "200": {
            "description": "The work station",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "304": {
            "description": "Unchanged since the tag in `If-None-Match`"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "read",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "too_many_requests"
        ]
      },
      "patch": {
        "operationId": "update_work_station",
        "summary": "Update a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkStationUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The work station",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "422": {
            "$ref": "#/components/responses/422"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "unknown_field",
          "invalid_body",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "validation_failed",
          "too_many_requests"
        ]
      },
      "delete": {
        "operationId": "delete_work_station",
        "summary": "Delete a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "delete",
        "x-risk": "destructive",
        "x-grant": "settings:manage",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_stations/{uuid}/activate": {
      "post": {
        "operationId": "activate_work_station",
        "summary": "Activate a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work station",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "activate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    },
    "/work_stations/{uuid}/deactivate": {
      "post": {
        "operationId": "deactivate_work_station",
        "summary": "Deactivate a work station",
        "tags": [
          "work_stations"
        ],
        "parameters": [
          {
            "name": "uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "fields[]",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/WorkStationField"
              }
            },
            "description": "Send only these fields; `object` and `uuid` always cross, and every other field is left out, required or not",
            "explode": true
          },
          {
            "name": "If-Match",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "The record's tag as last read, or `*`; a stale tag is a 412"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Up to 255 characters; the first success is replayed for 24 hours, and a refusal keeps nothing"
          }
        ],
        "responses": {
          "200": {
            "description": "The work station",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkStation"
                }
              }
            },
            "headers": {
              "ETag": {
                "$ref": "#/components/headers/ETag"
              },
              "Idempotent-Replayed": {
                "$ref": "#/components/headers/Idempotent-Replayed"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/X-RateLimit-Limit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/X-RateLimit-Remaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/X-RateLimit-Reset"
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "406": {
            "$ref": "#/components/responses/406"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "412": {
            "$ref": "#/components/responses/412"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-verb": "deactivate",
        "x-risk": "reversible",
        "x-grant": "settings:write",
        "x-module": "mro",
        "x-problem-types": [
          "user_agent_required",
          "unknown_parameter",
          "unknown_expansion",
          "invalid_parameter",
          "invalid_idempotency_key",
          "unauthorized",
          "forbidden",
          "account_cancelled",
          "user_terms_owed",
          "account_terms_owed",
          "not_entitled",
          "not_found",
          "not_acceptable",
          "not_allowed",
          "idempotency_key_reused",
          "idempotency_key_in_flight",
          "precondition_failed",
          "too_many_requests"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "A `cp_…` token minted in the tenant's settings, or one a person approved on the consent page (`/.well-known/oauth-authorization-server` describes that road; the document stays host-agnostic, so the flow is not spelled here)"
      }
    },
    "headers": {
      "ETag": {
        "description": "The record's weak tag, for `If-None-Match` and `If-Match`",
        "schema": {
          "type": "string"
        }
      },
      "Location": {
        "description": "The created record's URL",
        "schema": {
          "type": "string",
          "format": "uri"
        }
      },
      "Idempotent-Replayed": {
        "description": "`true` when this is the stored answer to an earlier request with the same `Idempotency-Key`",
        "schema": {
          "type": "string",
          "const": "true"
        }
      },
      "Retry-After": {
        "description": "Seconds until the ceiling resets",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Limit": {
        "description": "Requests the token may make per minute",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Remaining": {
        "description": "Requests left in this minute",
        "schema": {
          "type": "integer"
        }
      },
      "X-RateLimit-Reset": {
        "description": "Unix time the minute rolls over",
        "schema": {
          "type": "integer"
        }
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request: `user_agent_required`, `unknown_parameter`, `unknown_expansion`, `invalid_parameter`, `invalid_cursor`, `cursor_mismatch`, `unknown_field`, `invalid_body`, `invalid_idempotency_key`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized: `unauthorized`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden: `forbidden`, `account_cancelled`, `user_terms_owed`, `account_terms_owed`, `password_confirmation_required`, `not_entitled`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "404": {
        "description": "Not Found: `not_found`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "406": {
        "description": "Not Acceptable: `not_acceptable`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "409": {
        "description": "Conflict: `not_allowed`, `idempotency_key_reused`, `idempotency_key_in_flight`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "412": {
        "description": "Precondition Failed: `precondition_failed`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "422": {
        "description": "Unprocessable Content: `validation_failed`, `layout_failed`, `document_too_large`, `summary_timed_out`, `sign_in_refused`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "429": {
        "description": "Too Many Requests: `too_many_requests`",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/Retry-After"
          }
        },
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "503": {
        "description": "Service Unavailable: `render_unavailable`, `print_node_unavailable`, `email_unanswered`",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "Stub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name"
        ],
        "description": "A reference to another record: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CodedStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name"
        ],
        "description": "A reference to a record the trade quotes by its code: the code, and the record's own name",
        "properties": {
          "object": {
            "type": "string"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status"
        ],
        "description": "RFC 9457 problem details; `type` is the stable code",
        "properties": {
          "type": {
            "type": "string",
            "pattern": "^/problems/[a-z_]+$"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code"
              ],
              "properties": {
                "param": {
                  "type": "string"
                },
                "pointer": {
                  "type": "string"
                },
                "code": {
                  "type": "string"
                },
                "detail": {
                  "type": "string"
                },
                "limit": {
                  "type": "integer",
                  "description": "The most a `too_many` list may hold; send the rest in calls of this size"
                },
                "existing": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "$ref": "#/components/schemas/CodedStub"
                    },
                    {
                      "$ref": "#/components/schemas/AccountingTransactionStub"
                    },
                    {
                      "$ref": "#/components/schemas/AlternateStub"
                    },
                    {
                      "$ref": "#/components/schemas/AutoquoteSettingsStub"
                    },
                    {
                      "$ref": "#/components/schemas/AvsightIntegrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/AvsightMigrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/BillingAddressStub"
                    },
                    {
                      "$ref": "#/components/schemas/BinStub"
                    },
                    {
                      "$ref": "#/components/schemas/CarrierAccountStub"
                    },
                    {
                      "$ref": "#/components/schemas/CertificateStub"
                    },
                    {
                      "$ref": "#/components/schemas/CompanyAddressStub"
                    },
                    {
                      "$ref": "#/components/schemas/ConsignorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/ConversationStub"
                    },
                    {
                      "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerExchangeStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerLeaseStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerPartPriceStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerPaymentStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerQuoteStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerQuoteLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerRepairPriceStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerReturnStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerReturnLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerRfqLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/CustomerTaxExemptionStub"
                    },
                    {
                      "$ref": "#/components/schemas/DocumentStub"
                    },
                    {
                      "$ref": "#/components/schemas/DocumentTemplateStub"
                    },
                    {
                      "$ref": "#/components/schemas/DocumentTemplateVersionStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmailLayoutBlockStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmailLayoutStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmailSenderRuleStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmailSendingSettingsStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmailSuppressionStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmployeeStub"
                    },
                    {
                      "$ref": "#/components/schemas/EmployeeSkillStub"
                    },
                    {
                      "$ref": "#/components/schemas/EventStub"
                    },
                    {
                      "$ref": "#/components/schemas/ExportStub"
                    },
                    {
                      "$ref": "#/components/schemas/ExternalRecordStub"
                    },
                    {
                      "$ref": "#/components/schemas/FacilityStub"
                    },
                    {
                      "$ref": "#/components/schemas/FxRateStub"
                    },
                    {
                      "$ref": "#/components/schemas/ImportStub"
                    },
                    {
                      "$ref": "#/components/schemas/InspectionChecklistItemStub"
                    },
                    {
                      "$ref": "#/components/schemas/InspectionStub"
                    },
                    {
                      "$ref": "#/components/schemas/InventoryEntryStub"
                    },
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/InventoryParticipationStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvestorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvoiceStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvoiceLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/LaborEntryStub"
                    },
                    {
                      "$ref": "#/components/schemas/ManifestStub"
                    },
                    {
                      "$ref": "#/components/schemas/ManifestLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/MarketplaceIntegrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/MessageStub"
                    },
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "$ref": "#/components/schemas/PartRepairServiceStub"
                    },
                    {
                      "$ref": "#/components/schemas/PublicationRevisionStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/QuickbooksIntegrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReceiptStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReceiptLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/RejectionStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReleaseStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReleaseLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/SalesOrderLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/SalesforceIntegrationStub"
                    },
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "$ref": "#/components/schemas/ShareStub"
                    },
                    {
                      "$ref": "#/components/schemas/ShipViaStub"
                    },
                    {
                      "$ref": "#/components/schemas/SourcingRequestStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorCapabilityStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorCertificateStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorExchangeStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorInventoryLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorLeaseStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorPartPriceStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorPaymentStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorQuoteLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorRepairPriceStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorReturnStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorReturnLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorRfqStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorRfqLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/VoucherStub"
                    },
                    {
                      "$ref": "#/components/schemas/VoucherLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/WebhookEndpointStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkInstructionStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderFindingStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderMaterialStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderSettingsStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderShopSupplyStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTaskStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTemplateInstructionStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTemplateMaterialStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTemplatePartStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTemplatePhaseStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
                    }
                  ],
                  "description": "The record that already holds the value sent, for the caller to name instead"
                }
              }
            }
          }
        }
      },
      "AccountingTransactionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to an accounting transaction: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "accounting_transaction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "AlternateStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part",
          "alternate_part"
        ],
        "description": "A reference to an alternate: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "alternate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "alternate_part": {
            "$ref": "#/components/schemas/PartStub"
          }
        }
      },
      "AutoquoteSettingsStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "organization"
        ],
        "description": "A reference to an autoquote settings: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "autoquote_settings"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "organization": {
            "$ref": "#/components/schemas/CodedStub"
          }
        }
      },
      "AvsightIntegrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "version"
        ],
        "description": "A reference to an AvSight integration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "version": {
            "type": "string",
            "description": "The version of AvSight installed in the org, as Salesforce lists it under Installed Packages"
          }
        }
      },
      "AvsightMigrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "applying_since",
          "finished_at"
        ],
        "description": "A reference to an AvSight migration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_migration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "applying_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone first applied the migration; null until then"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the initial load was finished, by someone or on its day; AvSight stays the system of record, and each pull is still checked and applied until CorePilot is made the system of record in AvSight's place; null while it loads"
          }
        }
      },
      "BillingAddressStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "street"
        ],
        "description": "A reference to a billing address: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "billing_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "street": {
            "type": "string"
          }
        }
      },
      "BinStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "facility"
        ],
        "description": "A reference to a bin: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "bin"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "facility": {
            "$ref": "#/components/schemas/FacilityStub"
          }
        }
      },
      "CarrierAccountStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "carrier",
          "account_number",
          "nickname"
        ],
        "description": "A reference to a carrier account: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "carrier_account"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "carrier": {
            "$ref": "#/components/schemas/Stub"
          },
          "account_number": {
            "type": "string"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "description": "What we call the account; null for one called by its carrier and number"
          }
        }
      },
      "CertificateStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a certificate: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "certificate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "CompanyAddressStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "street"
        ],
        "description": "A reference to a company address: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "company_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          }
        }
      },
      "ConsignorStatementStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a consignor statement: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "consignor_statement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "ConversationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "subject"
        ],
        "description": "A reference to a conversation: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "conversation"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject it started with; null for one that had none"
          }
        }
      },
      "CorepilotLegacyMigrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "system_of_record_switched_at"
        ],
        "description": "A reference to a CorePilot legacy migration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "corepilot_legacy_migration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "system_of_record_switched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When CorePilot took CorePilot legacy's place as the system of record; null while CorePilot legacy keeps the records"
          }
        }
      },
      "CustomerExchangeStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a customer exchange: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_exchange"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "CustomerLeaseStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a customer lease: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_lease"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "CustomerPartPriceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part",
          "reason"
        ],
        "description": "A reference to a customer part price: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_part_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "reason": {
            "type": "string",
            "description": "Who and what it prices, in a sentence"
          }
        }
      },
      "CustomerPaymentStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "reference",
          "paid_on"
        ],
        "description": "A reference to a customer payment: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_payment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "CustomerQuoteStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a customer quote: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "CustomerQuoteLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "customer_quote"
        ],
        "description": "A reference to a customer quote line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "customer_quote": {
            "$ref": "#/components/schemas/CustomerQuoteStub"
          }
        }
      },
      "CustomerRepairPriceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part",
          "reason"
        ],
        "description": "A reference to a customer repair price: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_repair_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "type": "string",
            "description": "Which service it prices and for whom, in a sentence"
          }
        }
      },
      "CustomerReturnStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a customer return: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_return"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "CustomerReturnLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "customer_return",
          "part"
        ],
        "description": "A reference to a customer return line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_return_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "customer_return": {
            "$ref": "#/components/schemas/CustomerReturnStub"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "CustomerRfqLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "customer_quote"
        ],
        "description": "A reference to a customer RFQ line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_rfq_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "customer_quote": {
            "$ref": "#/components/schemas/CustomerQuoteStub"
          }
        }
      },
      "CustomerTaxExemptionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "customer",
          "jurisdiction"
        ],
        "description": "A reference to a customer tax exemption: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_tax_exemption"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "jurisdiction": {
            "type": "string"
          }
        }
      },
      "DocumentStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "form",
          "reference"
        ],
        "description": "A reference to a document: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "document"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "form": {
            "type": "string",
            "enum": [
              "customer_quote",
              "customer_quote_with_work_order_tasks",
              "customer_order_acknowledgement",
              "proforma_invoice",
              "invoice",
              "credit_memo",
              "pick_list",
              "packing_list",
              "shipping_packet",
              "commercial_invoice",
              "purchase_order",
              "repair_order",
              "consignor_statement",
              "investor_statement",
              "rejection_report",
              "vendor_rfq",
              "receiving_inspection_report",
              "inventory_label",
              "teardown_report",
              "outbound_qc_record",
              "conformance",
              "material_certification",
              "true_copy",
              "split_statement",
              "work_order_label",
              "unused_bom_parts",
              "work_order_pick_list",
              "teardown_manifest",
              "return_material_authorization",
              "return_to_vendor",
              "customer_core_return",
              "vendor_core_return",
              "customer_lease_agreement",
              "vendor_lease_agreement",
              "bin_label"
            ],
            "description": "The form printed, the value `POST /documents` takes"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "DocumentTemplateStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label"
        ],
        "description": "A reference to a document template: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "document_template"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The form's name as its document is titled, such as `Packing List`"
          }
        }
      },
      "DocumentTemplateVersionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "form",
          "number"
        ],
        "description": "A reference to a document template version: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "document_template_version"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "form": {
            "type": "string",
            "description": "The form it is a version of, the value `POST /documents` takes"
          },
          "number": {
            "type": "integer"
          }
        }
      },
      "EmailLayoutBlockStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "placement",
          "position"
        ],
        "description": "A reference to an email layout block: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "email_layout_block"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "logo",
              "text",
              "divider",
              "summary",
              "signature",
              "footer"
            ],
            "description": "`logo`: The organization's logo, with the alt text a reader sees while images are off; `text`: Words the layout adds to every email, in `body`; `divider`: A thin line in the layout's accent color; `summary`: The number, total and key date of the record the email is about; nothing on an email about no record; `signature`: The organization's signature in `body`, its sender chips filled from whoever sends; a person's own signature replaces it for their emails, and the banner a send matches goes directly under it. A layout holds one, after the message; `footer`: Small print in `body`, in muted type",
            "x-enum-descriptions": [
              "The organization's logo, with the alt text a reader sees while images are off",
              "Words the layout adds to every email, in `body`",
              "A thin line in the layout's accent color",
              "The number, total and key date of the record the email is about; nothing on an email about no record",
              "The organization's signature in `body`, its sender chips filled from whoever sends; a person's own signature replaces it for their emails, and the banner a send matches goes directly under it. A layout holds one, after the message",
              "Small print in `body`, in muted type"
            ],
            "x-enum-labels": [
              "Logo",
              "Text",
              "Divider",
              "Summary",
              "Signature",
              "Footer"
            ]
          },
          "placement": {
            "type": "string",
            "enum": [
              "before",
              "after"
            ],
            "description": "`before`: Above the message; `after`: Below the message",
            "x-enum-descriptions": [
              "Above the message",
              "Below the message"
            ],
            "x-enum-labels": [
              "Before",
              "After"
            ]
          },
          "position": {
            "type": "integer",
            "description": "Its place among the blocks on the same side of the message, counting from 1"
          }
        }
      },
      "EmailLayoutStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "organization"
        ],
        "description": "A reference to an email layout: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "email_layout"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "organization": {
            "$ref": "#/components/schemas/CodedStub"
          }
        }
      },
      "EmailSenderRuleStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sender"
        ],
        "description": "A reference to an email sender rule: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "email_sender_rule"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sender": {
            "type": "string",
            "description": "The address (dana@example.com) or the domain (example.com) the rule covers, lowercase; it never changes once made"
          }
        }
      },
      "EmailSendingSettingsStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "organization"
        ],
        "description": "A reference to an email sending settings: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "email_sending_settings"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "organization": {
            "$ref": "#/components/schemas/CodedStub"
          }
        }
      },
      "EmailSuppressionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "email_address"
        ],
        "description": "A reference to an email suppression: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "email_suppression"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "email_address": {
            "type": "string",
            "description": "The address, lowercase"
          }
        }
      },
      "EmployeeStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "name"
        ],
        "description": "A reference to an employee: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "employee"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "EmployeeSkillStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "employee",
          "skill"
        ],
        "description": "A reference to an employee skill: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "employee_skill"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "employee": {
            "$ref": "#/components/schemas/EmployeeStub"
          },
          "skill": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "EventStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "action",
          "subject_label"
        ],
        "description": "A reference to an event: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "event"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "enum": [
              "access_token_minted",
              "access_token_revoked",
              "activated",
              "added_to_receipt",
              "added_to_repair_order",
              "added_to_suppression_list",
              "answered_no_quote",
              "application_authorized",
              "application_revoked",
              "applied",
              "approved",
              "arrived",
              "asked",
              "asked_for",
              "assigned",
              "assignments_forgotten",
              "autoquoted",
              "bought_outright",
              "built",
              "calendar_feed_issued",
              "calendar_feed_reset",
              "calibrated",
              "cancelled",
              "capabilities_changed",
              "carried_over",
              "certificate_deleted",
              "certificate_drafted",
              "certificate_revised",
              "certificate_signed",
              "certificate_signed_by_hand",
              "certificate_voided",
              "change_acknowledged",
              "charge_billed",
              "checked",
              "chosen_to_open_first",
              "closed",
              "combined",
              "combined_into",
              "comparison_stated",
              "company_linked",
              "company_unlinked",
              "completed",
              "condition_mapped",
              "confirmed",
              "connected",
              "contacts_changed",
              "conversion_reverted",
              "converted",
              "converted_to_cost_pool",
              "copied",
              "copied_from",
              "core_added_to_repair_order",
              "core_allocated",
              "core_billed",
              "core_bought",
              "core_due_revised",
              "core_owed",
              "core_purchase_removed",
              "core_received",
              "core_repair_billed",
              "core_returned_to_inventory",
              "core_scrapped",
              "core_shipped",
              "core_unshipped",
              "corrected",
              "correction_generated",
              "cost_pool_revised",
              "cost_recovered",
              "cost_transferred_in",
              "cost_transferred_out",
              "cost_unpriced",
              "cost_variance",
              "created",
              "credentials_changed",
              "credit_generated",
              "credit_memo_generated",
              "credit_memo_sent",
              "credited",
              "currency_changed",
              "custody_allocated",
              "custody_returned",
              "customer_replied",
              "customer_unit_received",
              "customer_unit_returned",
              "customer_unit_scrapped",
              "deactivated",
              "declined",
              "declined_quote_sending_started",
              "declined_quote_sending_stopped",
              "defaults_changed",
              "deleted",
              "did_not_arrive",
              "direct_rfq_answers_changed",
              "disconnected",
              "downloaded",
              "draft_discarded",
              "drafted",
              "drafted_from_message",
              "due_back_revised",
              "duplicated",
              "duplicated_from",
              "email_bounced",
              "email_reported_as_spam",
              "email_resumed",
              "email_stopped",
              "email_template_chosen",
              "email_template_cleared",
              "emailed",
              "exchange_activity_recorded",
              "exchange_cancelled",
              "exchange_opened",
              "expired",
              "external_key_linked",
              "external_key_unlinked",
              "failed",
              "fields_drafted",
              "file_attached",
              "file_copying_started",
              "file_copying_stopped",
              "file_removed",
              "files_shared",
              "finding_added",
              "finding_removed",
              "finding_updated",
              "finish_refused",
              "finish_scheduled",
              "finished",
              "following_revised",
              "fx_rate_stamped",
              "gate_reached",
              "generated",
              "given",
              "held",
              "held_for_review",
              "hidden_marketplaces_changed",
              "hold_lifted",
              "hold_placed",
              "humidity_over_limit",
              "ignored",
              "initial_load_reopened",
              "inspection_completed",
              "inspection_discarded",
              "inspection_item_answered",
              "inspection_item_waived",
              "inspection_reopened",
              "inspection_started",
              "instruction_added",
              "instruction_assigned",
              "instruction_cancelled",
              "instruction_carried_forward",
              "instruction_completed",
              "instruction_removed",
              "instruction_reopened",
              "instruction_updated",
              "instructions_imported",
              "inventory_line_minted",
              "invited",
              "invoice_generated",
              "invoice_sent",
              "issue_allocated",
              "issue_quarantined",
              "issue_removed",
              "issue_seeded",
              "issue_split_planned",
              "kept_as_draft",
              "kept_from_autoquote",
              "labor_clocked_in",
              "labor_charged",
              "labor_clocked_out",
              "labor_corrected",
              "labor_keyed",
              "labor_removed",
              "layout_fell_back",
              "lease_opened",
              "lease_unit_allocated",
              "line_added",
              "line_allocated",
              "line_cancelled",
              "line_deallocated",
              "line_estimate_approved",
              "line_estimate_recorded",
              "line_final_cost_recorded",
              "line_matched",
              "line_moved",
              "line_picked",
              "line_promise_revised",
              "line_rejected",
              "line_removed",
              "line_repointed",
              "line_returned_to_inventory",
              "line_scrapped",
              "line_shipped",
              "line_split",
              "line_unpicked",
              "line_unshipped",
              "line_unverified",
              "line_updated",
              "line_verified",
              "lines_aligned_to_requests",
              "lines_imported",
              "lines_moved_in",
              "lines_reordered",
              "load_failed",
              "loaded",
              "logged",
              "lost",
              "lost_reason_changed",
              "mapping_saved",
              "material_added",
              "material_added_to_repair_order",
              "material_flagged_unused",
              "material_issued",
              "material_moved",
              "material_ordered",
              "material_reallocated",
              "material_rejected",
              "material_removed",
              "material_returned",
              "material_turn_in_cancelled",
              "material_turned_in",
              "material_updated",
              "material_visually_checked",
              "materials_imported",
              "measurement_unit_mapped",
              "members_changed",
              "moved",
              "noted_from_message",
              "occurrence_cancelled",
              "occurrence_revised",
              "onboarding_dismissed",
              "onboarding_undismissed",
              "opened",
              "ordered",
              "orders_left_waiting",
              "outright_purchase_removed",
              "package_added",
              "package_arrived",
              "part_numbers_resolved",
              "part_removed",
              "participant_added",
              "parts_added",
              "parts_issued",
              "parts_returned_to_inventory",
              "parts_shipped",
              "parts_unshipped",
              "payment_applied",
              "payment_recorded",
              "payment_unapplied",
              "payment_voided",
              "period_billed",
              "period_charged",
              "posted",
              "posting_recorded",
              "print_expired",
              "print_failed",
              "print_requested",
              "printed",
              "promise_revised",
              "protection_held",
              "protection_released",
              "published",
              "publications_applied",
              "publications_changed",
              "purchased_without_coverage",
              "push_back_scheduled",
              "quickbooks_linked",
              "quickbooks_relinked",
              "quickbooks_unlinked",
              "quote_line_added",
              "quote_line_moved",
              "quote_line_removed",
              "quote_line_updated",
              "quote_lines_aligned_to_requests",
              "quoted_unit_unavailable",
              "quoted_vendor_inventory_unavailable",
              "quoting_reading_started",
              "quoting_reading_stopped",
              "rate_revised",
              "read",
              "receipt_created",
              "receipt_received",
              "received",
              "recorded",
              "records_skipped",
              "records_unskipped",
              "refund_clamped",
              "reissued",
              "removed_from_suppression_list",
              "renamed",
              "release_cancelled",
              "release_generated",
              "release_shipped",
              "release_split",
              "release_unshipped",
              "releases_combined",
              "reopened",
              "repair_service_mapped",
              "replacement_ordered",
              "reply_handled",
              "reposted",
              "reprint_requested",
              "reprinted",
              "reprocessed",
              "request_line_added",
              "request_line_moved",
              "request_line_removed",
              "request_line_updated",
              "requested_for",
              "requirement_added",
              "requirement_removed",
              "requirement_waived",
              "requirements_changed",
              "resent",
              "restated_from_message",
              "restored",
              "resumed",
              "return_opened",
              "returned_to_inventory",
              "returned_to_queue",
              "returned_to_vendor",
              "revision_adopted",
              "role_mapped",
              "roles_changed",
              "scrapped",
              "sender_allowed",
              "sender_blocked",
              "sending_domain_failing",
              "sending_domain_recovered",
              "sent",
              "sent_to_avsight",
              "sent_to_purchasing",
              "sent_to_sourcing",
              "share_extended",
              "share_fresh_link_sent",
              "share_link_reissued",
              "share_recipient_extended",
              "share_recipient_revoked",
              "share_recipients_added",
              "share_revised",
              "share_revoked",
              "shared_document_replaced",
              "shared_file_downloaded",
              "shared_file_removed",
              "shared_files_added",
              "shared_files_downloaded",
              "shared_files_opened",
              "shipment_cancelled",
              "shipped",
              "shop_supply_added",
              "shop_supply_removed",
              "shop_supply_updated",
              "signed_out",
              "signer_skill_changed",
              "skipped",
              "skipped_away",
              "sold_outright",
              "sourcing_request_carried_over",
              "split",
              "split_from",
              "phases_changed",
              "statement_sent",
              "status_changed",
              "stopped_opening_first",
              "superseded",
              "supply_claimed",
              "supply_landed",
              "supply_reassigned",
              "supply_released",
              "support_access_turned_off",
              "support_access_turned_on",
              "system_of_record_switched",
              "task_added",
              "task_assigned",
              "task_cancelled",
              "task_removed",
              "task_skills_changed",
              "task_status_changed",
              "task_updated",
              "tasks_imported",
              "tasks_made_ready",
              "tasks_repriced",
              "tax_applied",
              "tax_suppressed",
              "teardown_completed",
              "teardown_undone",
              "template_applied",
              "template_instructions_copied",
              "template_materials_copied",
              "tier_changed",
              "trashed",
              "trigger_skipped",
              "unit_added_to_repair_order",
              "unit_returned",
              "unit_shipped_back",
              "unit_unshipped",
              "unrecovered_cost_billed",
              "updated",
              "value_adjusted",
              "value_matches_changed",
              "verified",
              "version_added",
              "voucher_generated",
              "vouchered",
              "warehouse_defaults_applied",
              "warehouse_defaults_dismissed",
              "withdrawn",
              "won",
              "work_completed",
              "work_started",
              "written_off"
            ]
          },
          "subject_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the subject was called when this happened, kept once it is renamed or deleted"
          }
        }
      },
      "ExportStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label"
        ],
        "description": "A reference to an export: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "export"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "ExternalRecordStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "key",
          "label"
        ],
        "description": "A reference to an external record: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "external_record"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "The system's own id for it (a Salesforce Id)"
          },
          "label": {
            "type": "string",
            "description": "What it reads as: what it comes from, its stream and its title (AvSight's Product CFM56-BLADE), the key where it has no title"
          }
        }
      },
      "FacilityStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "street"
        ],
        "description": "A reference to a facility: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "facility"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "street": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FxRateStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "currency_code",
          "as_of"
        ],
        "description": "A reference to an FX rate: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "fx_rate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "currency_code": {
            "type": "string"
          },
          "as_of": {
            "type": "string",
            "format": "date",
            "description": "The day the rate holds from, until the currency's next rate"
          }
        }
      },
      "ImportStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "filename"
        ],
        "description": "A reference to an import: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "import"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "What was imported, such as `Parts` or `Companies`"
          },
          "filename": {
            "type": "string"
          }
        }
      },
      "InspectionChecklistItemStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "inspection_checklist",
          "prompt"
        ],
        "description": "A reference to an inspection checklist item: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection_checklist_item"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "inspection_checklist": {
            "$ref": "#/components/schemas/Stub"
          },
          "prompt": {
            "type": "string",
            "description": "What the inspector is asked"
          }
        }
      },
      "InspectionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "checklist_name",
          "inventory_line"
        ],
        "description": "A reference to an inspection: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "checklist_name": {
            "type": "string",
            "description": "The checklist's name when the inspection started"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "InventoryEntryStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "activity",
          "inventory_line",
          "source"
        ],
        "description": "A reference to an inventory entry: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_entry"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "activity": {
            "type": "string",
            "enum": [
              "purchase_receipt",
              "repair_receipt",
              "core_receipt",
              "opening_balance",
              "unsourced_receipt",
              "vendor_lease_receipt",
              "sale_return",
              "lease_return",
              "lease_outright",
              "sale",
              "lease_shipment",
              "repair_dispatch",
              "repair_dispatch_costed_at_sale",
              "parts_issue",
              "work_order_issue",
              "vendor_return",
              "core_shipment",
              "vendor_lease_return",
              "vendor_lease_buyout",
              "vendor_lease_purchase",
              "scrap",
              "stock_count",
              "turn_in_cancellation",
              "opening_balance_restatement",
              "revaluation",
              "sale_cost_adjustment",
              "bill_variance",
              "vendor_credit",
              "core_purchase",
              "core_capitalization",
              "exchange_cancellation",
              "conversion",
              "conversion_absorbed",
              "pool_transfer_out",
              "pool_transfer_in",
              "cost_assignment",
              "split_out",
              "split_in",
              "pool_purchase",
              "pool_bill_variance",
              "pool_opening_balance",
              "pool_opening_balance_restatement",
              "pool_opening_capitalization",
              "pool_capitalization",
              "pool_write_off",
              "consignor_recovery",
              "pool_chargeout",
              "lease_pool_chargeout",
              "pool_chargeout_return",
              "pool_chargeout_repricing",
              "share_accrual",
              "share_accrual_return",
              "share_accrual_repricing",
              "lease_share_accrual",
              "share_adjustment",
              "share_settlement"
            ],
            "description": "Why the entry moved inventory or cost, finer than its kind (`pool_purchase` is an acquisition)",
            "x-enum-descriptions": [
              "Units received on a purchase order, at what they cost us",
              "Units back from a vendor's repair, carrying what the repair cost",
              "A customer's core received back on an exchange",
              "Units brought into inventory at the cost they carried before the books started",
              "Units received with no purchase behind them, such as a customer's unit in for repair",
              "A unit leased from a vendor arrives: it is theirs, so it brings no cost",
              "Units a customer sent back, returned at the cost they left at",
              "A leased unit back from the customer, at the cost it left at",
              "A leased unit the customer bought outright, its cost moved off lease to the sale",
              "Units shipped on a sale, their cost moved to cost of goods sold",
              "A unit shipped to a customer on a lease, its cost moved onto lease",
              "A unit sent out to a vendor for repair",
              "A unit sent out for repair from an inventory costed at sale, its purchase and repair costs kept apart",
              "Parts issued to a repair, their cost moved onto the repair",
              "Parts issued to a work order's task, their cost moved into the work order's parts WIP",
              "Units sent back to the vendor, their cost credited against what we owe them",
              "A core shipped to the vendor on an exchange, its cost expensed",
              "A unit leased from a vendor sent back to them",
              "A unit leased from a vendor leaves the lease as we buy it",
              "A unit leased from a vendor, bought outright and taken into our inventory at its price",
              "Units scrapped and their remaining cost written off",
              "Units counted into or out of inventory by hand, their cost adjusted to match",
              "A part turned in off a work order taken back out of inventory, the turn-in cancelled",
              "A unit's opening balance corrected to what the system it came from now holds",
              "A unit's carried cost changed by hand",
              "A unit's repair cost changed by what a sale billed for it",
              "A unit's cost changed by the difference between its purchase price and the vendor's bill",
              "A unit's cost lowered by a vendor's credit",
              "A vendor's core charge added to the cost of the unit received on the exchange",
              "The cost of a core shipped to a vendor moved onto the unit received for it",
              "The cost an exchange set aside for a customer's core, given back to the unit when the exchange is undone",
              "A unit's cost moved out of it, into a cost pool, when it is torn down",
              "A torn-down unit's cost taken into a cost pool",
              "Cost moved out of a cost pool, into a sub-pool",
              "Cost moved into a cost pool, from its parent pool",
              "Cost moved from a cost pool onto a unit within it",
              "Units split off onto a line of their own, taking their share of the line's cost",
              "Units split off another line onto this one, on the receipt line they arrived on, with the cost they carried",
              "Cost bought into a cost pool on a vendor's bill",
              "A cost pool's cost changed by the difference between its purchase price and the vendor's bill",
              "Cost brought into a cost pool before the books started",
              "A cost pool's opening balance corrected to what the system it came from now holds",
              "Cost added to a cost pool by hand before the books started, carried out of its opening balance",
              "Cost added to a cost pool by hand",
              "Cost a cost pool won't recover, written off",
              "What sales never recovered of a consignment's cost, now owed back by the consignor",
              "A sale recovers cost out of a cost pool at its chargeout rate",
              "A lease recovers cost out of a cost pool",
              "A returned sale puts its chargeout back into the cost pool",
              "A sale's chargeout from a cost pool changed by a change in its price",
              "A consignor's or investor's share of a sale, accrued as owed",
              "A returned sale takes back the share it accrued",
              "A share accrued on a sale changed by a change in its price",
              "A consignor's or investor's share of a lease, accrued as owed",
              "A consignor's or investor's accrued share changed by hand",
              "A statement moves an accrued share to payable"
            ],
            "x-enum-labels": [
              "Purchase receipt",
              "Repair receipt",
              "Core receipt",
              "Opening balance",
              "Unsourced receipt",
              "Vendor lease receipt",
              "Sale return",
              "Lease return",
              "Lease outright",
              "Sale",
              "Lease shipment",
              "Repair dispatch",
              "Repair dispatch costed at sale",
              "Parts issue",
              "Work order issue",
              "Vendor return",
              "Core shipment",
              "Vendor lease return",
              "Vendor lease buyout",
              "Vendor lease purchase",
              "Scrap",
              "Inventory count",
              "Turn in cancellation",
              "Opening balance restatement",
              "Revaluation",
              "Sale cost adjustment",
              "Bill variance",
              "Vendor credit",
              "Core purchase",
              "Core capitalization",
              "Exchange cancellation",
              "Conversion",
              "Conversion absorbed",
              "Pool transfer out",
              "Pool transfer in",
              "Cost assignment",
              "Split out",
              "Split in",
              "Pool purchase",
              "Pool bill variance",
              "Pool opening balance",
              "Pool opening balance restatement",
              "Pool opening capitalization",
              "Pool capitalization",
              "Pool write off",
              "Consignor recovery",
              "Pool chargeout",
              "Lease pool chargeout",
              "Pool chargeout return",
              "Pool chargeout repricing",
              "Share accrual",
              "Share accrual return",
              "Share accrual repricing",
              "Lease share accrual",
              "Share adjustment",
              "Share settlement"
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; an AvSight migration's own stub where it is one; a CorePilot legacy migration's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an import's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a consignor statement's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a vendor lease's own stub where it is one; a voucher's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one; a work order's own stub where it is one"
          }
        }
      },
      "InventoryLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to an inventory line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "InventoryParticipationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "inventory_code",
          "company"
        ],
        "description": "A reference to an inventory participation: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_participation"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "inventory_code": {
            "$ref": "#/components/schemas/CodedStub"
          },
          "company": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "InvestorStatementStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to an investor statement: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "investor_statement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "InvoiceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to an invoice: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "invoice"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "InvoiceLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "invoice",
          "part"
        ],
        "description": "A reference to an invoice line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "invoice_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "invoice": {
            "$ref": "#/components/schemas/InvoiceStub"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "IssuedPartStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "order_line",
          "part"
        ],
        "description": "A reference to an issued part: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "issued_part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a purchase order line's own stub where it is one; a repair order line's own stub where it is one"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "LaborEntryStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "work_order_task",
          "employee",
          "started_at"
        ],
        "description": "A reference to a labor entry: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "labor_entry"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "work_order_task": {
            "$ref": "#/components/schemas/WorkOrderTaskStub"
          },
          "employee": {
            "$ref": "#/components/schemas/EmployeeStub"
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ManifestStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "inventory_code",
          "name"
        ],
        "description": "A reference to a manifest: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "manifest"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "inventory_code": {
            "$ref": "#/components/schemas/CodedStub"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "ManifestLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "manifest"
        ],
        "description": "A reference to a manifest line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "manifest_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "manifest": {
            "$ref": "#/components/schemas/ManifestStub"
          }
        }
      },
      "MarketplaceIntegrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace",
          "organization"
        ],
        "description": "A reference to a marketplace integration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace": {
            "$ref": "#/components/schemas/CodedStub"
          },
          "organization": {
            "$ref": "#/components/schemas/CodedStub"
          }
        }
      },
      "MessageStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label"
        ],
        "description": "A reference to a message: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "message"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "What the Inbox calls it: an email's subject, or a logged call or chat by who it was with (`Call from Acme Aero`)"
          }
        }
      },
      "PartStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_number"
        ],
        "description": "A reference to a part: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_number": {
            "type": "string"
          }
        }
      },
      "PartRepairServiceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part",
          "repair_service"
        ],
        "description": "A reference to a part repair service: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "part_repair_service"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "repair_service": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "PublicationRevisionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "publication",
          "revision"
        ],
        "description": "A reference to a publication revision: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "publication_revision"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "publication": {
            "$ref": "#/components/schemas/Stub"
          },
          "revision": {
            "type": "string"
          }
        }
      },
      "PurchaseOrderStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a purchase order: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "purchase_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "PurchaseOrderLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "purchase_order"
        ],
        "description": "A reference to a purchase order line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "purchase_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrderStub"
          }
        }
      },
      "QuickbooksIntegrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "company_name"
        ],
        "description": "A reference to a QuickBooks integration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "company_name": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ReceiptStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a receipt: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "receipt"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "ReceiptLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "receipt",
          "part"
        ],
        "description": "A reference to a receipt line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "receipt_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "receipt": {
            "$ref": "#/components/schemas/ReceiptStub"
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          }
        }
      },
      "RejectionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a rejection: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "rejection"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "ReleaseStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a release: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "release"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "ReleaseLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "release",
          "part"
        ],
        "description": "A reference to a release line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "release_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "release": {
            "$ref": "#/components/schemas/ReleaseStub"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "RepairOrderStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a repair order: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "RepairOrderLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "repair_order"
        ],
        "description": "A reference to a repair order line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "repair_order": {
            "$ref": "#/components/schemas/RepairOrderStub"
          }
        }
      },
      "SalesOrderStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a sales order: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "SalesOrderLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "sales_order"
        ],
        "description": "A reference to a sales order line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "sales_order": {
            "$ref": "#/components/schemas/SalesOrderStub"
          }
        }
      },
      "SalesforceIntegrationStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "org_name"
        ],
        "description": "A reference to a Salesforce integration: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "salesforce_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "org_name": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendingAddressStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "email_address"
        ],
        "description": "A reference to a sending address: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "sending_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "email_address": {
            "type": "string",
            "description": "The address mail leaves as; it never changes once added"
          }
        }
      },
      "SendingDomainStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "domain"
        ],
        "description": "A reference to a sending domain: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "sending_domain"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string"
          }
        }
      },
      "ShareStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "title"
        ],
        "description": "A reference to a share: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "share"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "ShipViaStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "carrier",
          "name"
        ],
        "description": "A reference to a ship via: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "ship_via"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "carrier": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The service, such as Priority Overnight; null on one that is its carrier alone, such as a freight forwarder with no services"
          }
        }
      },
      "SourcingRequestStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a sourcing request: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "sourcing_request"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VendorCapabilityStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor",
          "part",
          "repair_service"
        ],
        "description": "A reference to a vendor capability: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_capability"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "VendorCertificateStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor",
          "certificate_standard",
          "certificate_number"
        ],
        "description": "A reference to a vendor certificate: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_certificate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "certificate_standard": {
            "$ref": "#/components/schemas/Stub"
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "VendorExchangeStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a vendor exchange: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_exchange"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VendorInventoryLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor",
          "part"
        ],
        "description": "A reference to a vendor inventory line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_inventory_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          }
        }
      },
      "VendorLeaseStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a vendor lease: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_lease"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VendorPartPriceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor",
          "part",
          "reason"
        ],
        "description": "A reference to a vendor part price: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_part_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "reason": {
            "type": "string",
            "description": "Whom it buys from and in which condition, in a sentence"
          }
        }
      },
      "VendorPaymentStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "reference",
          "paid_on"
        ],
        "description": "A reference to a vendor payment: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_payment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "VendorQuoteLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "vendor_rfq"
        ],
        "description": "A reference to a vendor quote line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_quote_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "vendor_rfq": {
            "$ref": "#/components/schemas/VendorRfqStub"
          }
        }
      },
      "VendorRepairPriceStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor",
          "part",
          "reason"
        ],
        "description": "A reference to a vendor repair price: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_repair_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "reason": {
            "type": "string",
            "description": "Which service it buys, from whom and in which condition, in a sentence"
          }
        }
      },
      "VendorReturnStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a vendor return: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_return"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VendorReturnLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "vendor_return",
          "part"
        ],
        "description": "A reference to a vendor return line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_return_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "vendor_return": {
            "$ref": "#/components/schemas/VendorReturnStub"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "VendorRfqStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a vendor RFQ: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_rfq"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VendorRfqLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "vendor_rfq"
        ],
        "description": "A reference to a vendor RFQ line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_rfq_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "vendor_rfq": {
            "$ref": "#/components/schemas/VendorRfqStub"
          }
        }
      },
      "VoucherStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a voucher: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "voucher"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "VoucherLineStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "voucher",
          "part"
        ],
        "description": "A reference to a voucher line: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "voucher_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "voucher": {
            "$ref": "#/components/schemas/VoucherStub"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "WebhookEndpointStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "url",
          "description"
        ],
        "description": "A reference to a webhook endpoint: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "webhook_endpoint"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "WorkInstructionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "work_order_task"
        ],
        "description": "A reference to a work instruction: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_instruction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "work_order_task": {
            "$ref": "#/components/schemas/WorkOrderTaskStub"
          }
        }
      },
      "WorkOrderStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier"
        ],
        "description": "A reference to a work order: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          }
        }
      },
      "WorkOrderFindingStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "work_order"
        ],
        "description": "A reference to a work order finding: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_finding"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "work_order": {
            "$ref": "#/components/schemas/WorkOrderStub"
          }
        }
      },
      "WorkOrderMaterialStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order_task"
        ],
        "description": "A reference to a work order material: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's materials, numbered from 1"
          },
          "work_order_task": {
            "$ref": "#/components/schemas/WorkOrderTaskStub"
          }
        }
      },
      "WorkOrderSettingsStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "organization"
        ],
        "description": "A reference to a work order settings: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_settings"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "organization": {
            "$ref": "#/components/schemas/CodedStub"
          }
        }
      },
      "WorkOrderShopSupplyStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order_task"
        ],
        "description": "A reference to a work order shop supply: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_shop_supply"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's shop supplies, numbered from 1"
          },
          "work_order_task": {
            "$ref": "#/components/schemas/WorkOrderTaskStub"
          }
        }
      },
      "WorkOrderTaskStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order"
        ],
        "description": "A reference to a work order task: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_task"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer"
          },
          "work_order": {
            "$ref": "#/components/schemas/WorkOrderStub"
          }
        }
      },
      "WorkOrderTemplateInstructionStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "work_order_template_task"
        ],
        "description": "A reference to a work order template instruction: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_instruction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "work_order_template_task": {
            "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
          }
        }
      },
      "WorkOrderTemplateMaterialStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order_template_task"
        ],
        "description": "A reference to a work order template material: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_material"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's materials, numbered from 1"
          },
          "work_order_template_task": {
            "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
          }
        }
      },
      "WorkOrderTemplatePartStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part",
          "work_order_template"
        ],
        "description": "A reference to a work order template part: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part": {
            "$ref": "#/components/schemas/PartStub"
          },
          "work_order_template": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "WorkOrderTemplatePhaseStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order_template"
        ],
        "description": "A reference to a work order template phase: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_phase"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it applies among the template's phases, lowest first; one phase to a sequence"
          },
          "work_order_template": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "WorkOrderTemplateTaskStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "work_order_template"
        ],
        "description": "A reference to a work order template task: enough to show it and to fetch it",
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_task"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer"
          },
          "work_order_template": {
            "$ref": "#/components/schemas/Stub"
          }
        }
      },
      "MessageFileStub": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "filename"
        ],
        "description": "A file that came inside a message, its content at `GET /message_files/{uuid}/content`",
        "properties": {
          "object": {
            "type": "string",
            "const": "message_file"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "filename": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Address": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "country_name",
          "attn",
          "lines",
          "edited",
          "company_address",
          "tax_destination",
          "source"
        ],
        "description": "An address the record owns: copied from a book entry or typed, and edited without touching the book",
        "properties": {
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The address as it prints, in its country's order; the record's documents print these lines"
          },
          "edited": {
            "type": "boolean",
            "description": "Changed since it was copied from the book"
          },
          "company_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where tax is reckoned for this address, when it overrides the counterparty's"
          },
          "source": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "company",
              "label"
            ],
            "description": "Whose address the copy came from, as the record says it",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "company",
                  "ours",
                  "typed"
                ],
                "x-enum-labels": [
                  "A company's address",
                  "Our address",
                  "Typed"
                ],
                "x-enum-descriptions": [
                  "Copied from a company's address book",
                  "One of our own: a facility, or one of the organization's billing addresses",
                  "Typed on the record, copied from no address"
                ]
              },
              "company": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Stub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The company whose book it came from; null unless `kind` is `company`"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The book entry's label, or for one of ours the facility's or billing address's label; null when typed"
              }
            }
          }
        }
      },
      "Identity": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "membership",
          "tenant",
          "account",
          "organization",
          "grants",
          "product_modules",
          "released_modules",
          "token",
          "support_session",
          "login",
          "deployment"
        ],
        "properties": {
          "membership": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "uuid",
              "name",
              "kind",
              "tier",
              "salesperson_uuid",
              "employee_uuid"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "user",
                  "bot",
                  "staff"
                ]
              },
              "tier": {
                "type": "string",
                "enum": [
                  "owner",
                  "admin",
                  "standard"
                ]
              },
              "salesperson_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The active salesperson the seat sells as"
              },
              "employee_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The active employee the seat clocks in as"
              }
            }
          },
          "tenant": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "slug",
              "kind",
              "cell"
            ],
            "properties": {
              "slug": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "production",
                  "sandbox",
                  "demo"
                ]
              },
              "cell": {
                "type": "string",
                "description": "The database cluster the tenant lives on"
              }
            }
          },
          "account": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "uuid",
              "name",
              "currency_code",
              "currency_exponent",
              "time_zone",
              "cancelled_at",
              "system_of_record_kind",
              "storage"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "name": {
                "type": "string"
              },
              "currency_code": {
                "type": "string"
              },
              "currency_exponent": {
                "type": "integer"
              },
              "time_zone": {
                "type": "string",
                "description": "The business's zone, which its days are counted in"
              },
              "cancelled_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "system_of_record_kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "avsight",
                  "corepilot_legacy",
                  "migration",
                  null
                ],
                "description": "Which migration's source keeps the account's records while it is the system of record; null while CorePilot keeps them, or another system does"
              },
              "storage": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "bytes_used",
                  "limit",
                  "status"
                ],
                "properties": {
                  "bytes_used": {
                    "type": "integer"
                  },
                  "limit": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "status": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "ok",
                      "nearing",
                      "exceeded",
                      null
                    ],
                    "description": "Null when the account has no limit"
                  }
                }
              }
            }
          },
          "organization": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "uuid",
                  "name"
                ],
                "properties": {
                  "uuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization the caller works in, which new records are raised in"
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ]
            },
            "description": "What the caller may do here: the seat's grants, cut to a token's scopes"
          },
          "product_modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "smart_quoting",
                "autoquote",
                "smart_listing",
                "custom_layouts",
                "mro",
                "printing",
                "emailing",
                "avsight_connection",
                "avsight_migration"
              ]
            },
            "description": "The modules this tenant holds"
          },
          "released_modules": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "smart_quoting",
                "autoquote",
                "smart_listing",
                "custom_layouts",
                "mro",
                "printing",
                "emailing",
                "avsight_connection",
                "avsight_migration"
              ]
            },
            "description": "The modules this tenant can reach on this installation, held or not. A demo tenant reaches some before production and sandbox tenants do"
          },
          "token": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "uuid",
                  "description",
                  "scopes",
                  "expires_at"
                ],
                "properties": {
                  "uuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "scopes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "read",
                        "write",
                        "admin",
                        "sales:write",
                        "sales:manage",
                        "purchasing:write",
                        "purchasing:manage",
                        "repairs:write",
                        "repairs:manage",
                        "operations:write",
                        "operations:manage",
                        "inventory:write",
                        "inventory:manage",
                        "accounting:write",
                        "accounting:manage",
                        "catalog:write",
                        "catalog:manage",
                        "settings:write",
                        "settings:manage",
                        "sales:release_hold",
                        "inventory:adjust",
                        "repairs:labor",
                        "catalog:approve",
                        "accounting:approve",
                        "accounting:void",
                        "data:import",
                        "data:migrate",
                        "settings:requirements",
                        "settings:checklists",
                        "settings:views",
                        "settings:everyones_views",
                        "settings:everyones_dashboards"
                      ]
                    }
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "support_session": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "uuid",
                  "expires_at",
                  "changes_allowed_at"
                ],
                "properties": {
                  "uuid": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expires_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "changes_allowed_at": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date-time",
                    "description": "When changes were allowed; null while it only reads"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The support session the caller is here on; null for anyone on their own seat"
          },
          "login": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "user",
                  "seat",
                  "tenants",
                  "reader_time_zone",
                  "shortcuts",
                  "notifications_unread",
                  "customer_quotes_unanswered",
                  "customer_quotes_unanswered_held_by"
                ],
                "properties": {
                  "user": {
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "uuid",
                          "email_address",
                          "staff"
                        ],
                        "properties": {
                          "uuid": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "email_address": {
                            "type": "string"
                          },
                          "staff": {
                            "type": "boolean"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The login; null on a support session, which answers as its support seat alone"
                  },
                  "seat": {
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "email_address",
                          "has_avatar",
                          "hidden_nav_items",
                          "nav_item_order",
                          "token_scopes"
                        ],
                        "properties": {
                          "email_address": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "has_avatar": {
                            "type": "boolean",
                            "description": "Whether `GET /profile/avatar` serves the seat's photo"
                          },
                          "hidden_nav_items": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "nav_item_order": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "token_scopes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "The scopes a token of this seat may carry"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tenants": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "tier",
                        "name",
                        "slug",
                        "sandbox",
                        "cancelled_at"
                      ],
                      "properties": {
                        "tier": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "sandbox": {
                          "type": "boolean"
                        },
                        "cancelled_at": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time"
                        }
                      }
                    },
                    "description": "The tenants the login may switch to; empty on a support session"
                  },
                  "reader_time_zone": {
                    "type": "string"
                  },
                  "shortcuts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "uuid",
                        "title",
                        "url"
                      ],
                      "properties": {
                        "uuid": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "notifications_unread": {
                    "type": "integer"
                  },
                  "customer_quotes_unanswered": {
                    "type": "integer",
                    "description": "Drafts the seat holds, or nobody does, still waiting on an answer: the quote list counted with the `unanswered[]` values in `customer_quotes_unanswered_held_by`"
                  },
                  "customer_quotes_unanswered_held_by": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The `unanswered[]` values that count reads: the seat's salesperson's uuid, inactive or not, and `unassigned`"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The person signed in, and null for a bot, which signs in as no one"
          },
          "deployment": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "label",
              "demo_accounts",
              "support_messenger"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Which installation of CorePilot answered"
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The banner that installation shows across every page; null in production"
              },
              "demo_accounts": {
                "type": "boolean",
                "description": "Whether that installation founds demo accounts, which hold sample data"
              },
              "support_messenger": {
                "type": "boolean",
                "description": "Whether that installation offers the support messenger (GET /support_messenger)"
              }
            },
            "description": "The installation of CorePilot the caller reached"
          }
        },
        "description": "The seat, the tenant and the token a caller resolves to; `token` is null for the browser's session",
        "x-area": "integration",
        "x-role": "machinery"
      },
      "SearchResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "uuid",
          "title",
          "identifier",
          "exact",
          "codes",
          "matched_codes",
          "snippet",
          "view"
        ],
        "description": "A record the search matched; `kind` is its type, the family to fetch it from when one exists",
        "properties": {
          "object": {
            "type": "string",
            "const": "search_result"
          },
          "kind": {
            "type": "string",
            "description": "The record's type, singular: `sales_order`, `part`, `company`"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "identifier": {
            "type": [
              "string",
              "null"
            ]
          },
          "exact": {
            "type": "boolean",
            "description": "Whether `q` is this record's identifier, ignoring case and punctuation (`so1` for `SO-1`)"
          },
          "codes": {
            "type": [
              "string",
              "null"
            ],
            "description": "The codes the record goes by, such as a part number"
          },
          "matched_codes": {
            "type": "boolean",
            "description": "Whether `q` appears within `codes`, ignoring case and punctuation (`563` within `CFM56-3`)"
          },
          "snippet": {
            "type": [
              "string",
              "null"
            ]
          },
          "view": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "resource",
              "context"
            ],
            "description": "On a view's hit, where it opens: the API path it reads and the client's place it is drawn in; null on any other kind",
            "properties": {
              "resource": {
                "type": "string"
              },
              "context": {
                "type": "string"
              }
            }
          }
        }
      },
      "SearchResultList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "Price": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "condition_code",
          "request_type",
          "exchange_type",
          "core_charge_cents",
          "lease",
          "quantity",
          "outcome",
          "created_at",
          "sold_on",
          "external_order_number",
          "external_system",
          "basis",
          "count",
          "record"
        ],
        "description": "A price set or named for the part, or the year's average; `record` is the part price, repair price, quote or order it came from, null for a sale another system recorded",
        "properties": {
          "object": {
            "type": "string",
            "const": "price"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer_part_price",
              "customer_repair_price",
              "customer_quoted",
              "customer_sold",
              "anyone_sold",
              "anyone_quoted",
              "average"
            ],
            "description": "Where it came from: the part price or, for a repair, the repair price that applies to this quote at the asked quantity, this quote's customer's or anyone's, quoted or sold, or the average"
          },
          "unit_price_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "request_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease",
              null
            ]
          },
          "exchange_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cost_plus",
              "flat_rate",
              null
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rate_unit",
                  "minimum_days",
                  "included_hours",
                  "included_cycles",
                  "hour_fee_cents",
                  "cycle_fee_cents",
                  "outright_price_cents",
                  "due_days"
                ],
                "properties": {
                  "rate_unit": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "day",
                      "week",
                      "month",
                      null
                    ],
                    "description": "The period `unit_price_cents` is the rate for, and the allowance and fees are counted over"
                  },
                  "minimum_days": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "included_hours": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "included_cycles": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "hour_fee_cents": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Minor units of `currency_code`"
                  },
                  "cycle_fee_cents": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Minor units of `currency_code`"
                  },
                  "outright_price_cents": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Minor units of `currency_code`"
                  },
                  "due_days": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "A lease's terms; null for anything but a lease"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "How many the quote or order line was for; null for a part or repair price or the average"
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "draft",
              "sent",
              "won",
              "lost",
              null
            ],
            "description": "Where the quote it was named on stands; null for a sale, a part or repair price or the average"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the quote or order line was priced; null for a part or repair price, the average, or a sale another system recorded"
          },
          "sold_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day a sale another system recorded was made; null for anything else"
          },
          "external_order_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The other system's number for the order a sale it recorded was on; null for anything else"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the system that recorded the sale; null for anything else"
          },
          "basis": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "sales",
              "quotes",
              null
            ],
            "description": "What the average was drawn from; a lease's rate, being per period, never joins it"
          },
          "count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many prices the average counts"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/CustomerRepairPriceStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "PriceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Price"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AccessToken": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "description",
          "token",
          "token_prefix",
          "scopes",
          "status",
          "expires_on",
          "last_used_at",
          "revoked_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "access_token"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "description": {
            "type": "string"
          },
          "token": {
            "type": [
              "string",
              "null"
            ],
            "description": "The token itself, answered to its mint alone and never again; send it as `Authorization: Bearer`"
          },
          "token_prefix": {
            "type": "string"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "write",
                "admin",
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ]
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "revoked",
              "expired"
            ],
            "description": "`live`: Works until it is revoked or expires; `revoked`: Refused since someone revoked it; `expired`: Refused since the day it was set to expire",
            "x-enum-descriptions": [
              "Works until it is revoked or expires",
              "Refused since someone revoked it",
              "Refused since the day it was set to expire"
            ],
            "x-enum-labels": [
              "Live",
              "Revoked",
              "Expired"
            ]
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AccountSettings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "auto_invoice_on_ship",
          "tax_on_quotes",
          "tax_on_sales_orders",
          "require_approved_vendors",
          "exchange_part_writedown_percent",
          "lease_writedown_percent",
          "release_on_pick",
          "receive_without_serials",
          "currency_code",
          "time_zone",
          "warehouse_defaults",
          "slug",
          "default_spec_inventory",
          "default_managed_repair_inventory",
          "default_vendor_lease_inventory",
          "default_customer_payment_term",
          "default_vendor_payment_term",
          "system_of_record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "account_settings"
          },
          "auto_invoice_on_ship": {
            "type": "boolean"
          },
          "tax_on_quotes": {
            "type": "boolean"
          },
          "tax_on_sales_orders": {
            "type": "boolean"
          },
          "require_approved_vendors": {
            "type": "boolean"
          },
          "exchange_part_writedown_percent": {
            "type": "integer"
          },
          "lease_writedown_percent": {
            "type": "integer",
            "description": "The share of a leased unit's cost each period bill writes down to Lease COGS, unless the lease sets its own"
          },
          "release_on_pick": {
            "type": "boolean",
            "description": "Whether picking a unit awaiting release generates its release from the sales order, so the warehouse needn't wait on sales"
          },
          "receive_without_serials": {
            "type": "boolean",
            "description": "Whether a receipt may check in a unit of a serialized part with no serial; the unit is serial missing and its release can't ship until its serial is set. Only a unit new to us (a purchase order or package line, or one received against nothing) may wait; a unit coming back or a customer's own unit still needs its serial"
          },
          "currency_code": {
            "type": "string",
            "description": "The account's home currency, which every price, cost and rate is kept in"
          },
          "time_zone": {
            "type": "string",
            "description": "The IANA zone the business keeps its days in"
          },
          "warehouse_defaults": {
            "type": "string",
            "enum": [
              "offered",
              "applied",
              "dismissed"
            ],
            "description": "Whether the account took the recommended warehouse setup (bins, inspection checklists and requirements), put it away, or is still offered it. A new account starts with it applied"
          },
          "slug": {
            "type": "string",
            "description": "The address the web app reaches this tenant at, `/t/<slug>`"
          },
          "default_spec_inventory": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/InventoryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole inventory code when `expand[]=default_spec_inventory` asked for it"
          },
          "default_managed_repair_inventory": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_vendor_lease_inventory": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The custody code a unit leased in from a vendor checks in to"
          },
          "default_customer_payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_vendor_payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "system_of_record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The outside system that holds the account's records while CorePilot syncs in from it, as during a migration from another ERP; null while CorePilot holds them. Read only: a migration's first apply names its system, and making CorePilot the system of record in its place hands the records to CorePilot"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "apply_warehouse_defaults",
                    "dismiss_warehouse_defaults"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AccountingTransaction": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "activity",
          "status",
          "posted_on",
          "memo",
          "currency_code",
          "failure",
          "attempts",
          "identifier",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "last_attempted_at",
          "posted_at",
          "kind",
          "home_debit_cents",
          "home_credit_cents",
          "inventory_name",
          "source",
          "source_document",
          "inventory_code",
          "reversal_of",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "accounting_transaction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "activity": {
            "type": "string",
            "enum": [
              "receipt",
              "issue",
              "scrap",
              "value_adjustment",
              "quantity_adjustment",
              "acquisition",
              "chargeout",
              "accrual",
              "settlement",
              "transfer_out",
              "transfer_in",
              "write_off",
              "return_release",
              "core_charge",
              "lease_writedown",
              "return_credit",
              "labor",
              "invoice",
              "credit_memo",
              "correction",
              "bill",
              "vendor_credit",
              "voucher_correction"
            ],
            "description": "`receipt`: Units received into inventory at their cost; `issue`: Units leave inventory, as on a shipment, and their cost is relieved; `scrap`: Units scrapped and their remaining cost written off; `value_adjustment`: A unit's or a pool's carried cost changed; `quantity_adjustment`: Units counted into or out of stock by hand; `acquisition`: Cost bought into a cost pool; `chargeout`: A sale recovers cost out of a cost pool at its chargeout rate; `accrual`: A consignor's or investor's share of a sale, accrued as owed; `settlement`: A statement moves an accrued share to payable; `transfer_out`: Cost moved out, to a sub-pool or from a unit being torn down; `transfer_in`: Cost moved in, from a parent pool or a torn-down unit; `write_off`: Cost written off: what a pool won't recover, or a core or leased unit that never came back; `return_release`: A closed return gives uncredited units' cost back to the sale; `core_charge`: A core billed to the customer: the cost its exchange parked moves to cost of goods sold; `lease_writedown`: A lease period billed to the customer: its share of the leased unit's cost moves to Lease COGS; `return_credit`: A credit memo gives the returned units' cost back from RMA Clearing to the sale; `labor`: Hours charged to a work order's task move their cost into the work order's labor WIP; `invoice`: An invoice sent to a customer; `credit_memo`: A credit memo sent to a customer; `correction`: A correction to a sent invoice, posted as a credit memo; `bill`: A vendor's bill, approved as a voucher; `vendor_credit`: A vendor's credit against what we owe them; `voucher_correction`: A correction to an approved voucher, posted as a vendor credit",
            "x-enum-descriptions": [
              "Units received into inventory at their cost",
              "Units leave inventory, as on a shipment, and their cost is relieved",
              "Units scrapped and their remaining cost written off",
              "A unit's or a pool's carried cost changed",
              "Units counted into or out of stock by hand",
              "Cost bought into a cost pool",
              "A sale recovers cost out of a cost pool at its chargeout rate",
              "A consignor's or investor's share of a sale, accrued as owed",
              "A statement moves an accrued share to payable",
              "Cost moved out, to a sub-pool or from a unit being torn down",
              "Cost moved in, from a parent pool or a torn-down unit",
              "Cost written off: what a pool won't recover, or a core or leased unit that never came back",
              "A closed return gives uncredited units' cost back to the sale",
              "A core billed to the customer: the cost its exchange parked moves to cost of goods sold",
              "A lease period billed to the customer: its share of the leased unit's cost moves to Lease COGS",
              "A credit memo gives the returned units' cost back from RMA Clearing to the sale",
              "Hours charged to a work order's task move their cost into the work order's labor WIP",
              "An invoice sent to a customer",
              "A credit memo sent to a customer",
              "A correction to a sent invoice, posted as a credit memo",
              "A vendor's bill, approved as a voucher",
              "A vendor's credit against what we owe them",
              "A correction to an approved voucher, posted as a vendor credit"
            ],
            "x-enum-labels": [
              "Receipt",
              "Issue",
              "Scrap",
              "Value adjustment",
              "Quantity adjustment",
              "Acquisition",
              "Chargeout",
              "Accrual",
              "Settlement",
              "Transfer out",
              "Transfer in",
              "Write off",
              "Return release",
              "Core charge",
              "Lease writedown",
              "Return credit",
              "Labor",
              "Invoice",
              "Credit memo",
              "Correction",
              "Bill",
              "Vendor credit",
              "Voucher correction"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "posted",
              "failed",
              "skipped"
            ],
            "description": "`pending`: Balanced and waiting to post to the books; `posted`: Posted to the connected books; `failed`: Could not post: a purpose has no account, the day's books are closed, or QuickBooks refused it; `skipped`: Set aside by hand, dated before the QuickBooks cut-over, or brought over by a migration whose system's books already hold it; it will not post",
            "x-enum-descriptions": [
              "Balanced and waiting to post to the books",
              "Posted to the connected books",
              "Could not post: a purpose has no account, the day's books are closed, or QuickBooks refused it",
              "Set aside by hand, dated before the QuickBooks cut-over, or brought over by a migration whose system's books already hold it; it will not post"
            ],
            "x-enum-labels": [
              "Pending",
              "Posted",
              "Failed",
              "Skipped"
            ]
          },
          "posted_on": {
            "type": "string",
            "format": "date"
          },
          "memo": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "failure": {
            "type": [
              "string",
              "null"
            ]
          },
          "attempts": {
            "type": "integer"
          },
          "identifier": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "last_attempted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "posted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "kind": {
            "type": "string",
            "enum": [
              "journal",
              "invoice",
              "credit_memo",
              "bill",
              "vendor_credit"
            ]
          },
          "home_debit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "home_credit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "inventory_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InventoryEntryStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceLineStub"
              },
              {
                "$ref": "#/components/schemas/LaborEntryStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an inventory entry's own stub where it is one; an invoice's own stub where it is one; an invoice line's own stub where it is one; a labor entry's own stub where it is one; a voucher's own stub where it is one"
          },
          "source_document": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The invoice, voucher, exchange, return or work order the posting books: its source, the invoice an invoice line's cost posted from, the document an inventory entry was written for, or the work order a labor entry was clocked to"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "reversal_of": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccountingTransactionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "repost",
                    "skip",
                    "unskip"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "lines": {
            "$ref": "#/components/schemas/AccountingTransactionLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "AccountingTransactionLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "purpose",
          "purpose_label",
          "unresolved",
          "home_debit_cents",
          "home_credit_cents",
          "document_debit_cents",
          "document_credit_cents",
          "description",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "ledger_account_code",
          "ledger_account_name",
          "ledger_account",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "accounting_transaction_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "purpose": {
            "type": "string"
          },
          "purpose_label": {
            "type": "string"
          },
          "unresolved": {
            "type": "boolean"
          },
          "home_debit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "home_credit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "document_debit_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "document_credit_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "ledger_account_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "ledger_account_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "entity": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "AgreementAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "version",
          "outcome",
          "landing"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "agreement_answer"
          },
          "kind": {
            "type": "string",
            "enum": [
              "user",
              "account"
            ]
          },
          "version": {
            "type": "integer"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "accepted",
              "declined"
            ]
          },
          "landing": {
            "type": "string",
            "description": "Where the browser goes now, by a full load: the page it was asked for once accepted, or signing in once declined, which signs it out"
          }
        }
      },
      "AgreementVersion": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "version",
          "title",
          "published_at",
          "major",
          "digest",
          "body_html",
          "assent_text",
          "owed",
          "updated_since_accepted",
          "answerable"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "agreement_version"
          },
          "kind": {
            "type": "string",
            "enum": [
              "user",
              "account"
            ],
            "description": "`user` terms bind the login, `account` terms the account"
          },
          "version": {
            "type": "integer",
            "description": "Its number, from 1; a newer version has a higher one"
          },
          "title": {
            "type": "string"
          },
          "published_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was published, and took effect"
          },
          "major": {
            "type": "boolean",
            "description": "Whether accepting an earlier version stops counting once this one is published"
          },
          "digest": {
            "type": "string",
            "description": "The SHA-256 of the text as published, which every answer to it records"
          },
          "body_html": {
            "type": "string",
            "description": "The terms, as sanitized HTML"
          },
          "assent_text": {
            "type": "string",
            "description": "The words the reader agrees to by accepting, recorded with the answer"
          },
          "owed": {
            "type": "boolean",
            "description": "Whether the terms are in force, this is the latest version, and the reader, or for account terms the account, has accepted no version since the latest major one"
          },
          "updated_since_accepted": {
            "type": "boolean",
            "description": "Whether the reader, or for account terms the account, accepted an earlier version and owes this one"
          },
          "answerable": {
            "type": "boolean",
            "description": "Whether the reader may answer it: any login the user terms, only an owner the account terms on the account's behalf"
          }
        },
        "x-role": "master_data"
      },
      "Allocation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "quantity",
          "status",
          "shippable",
          "consumed_at",
          "serial_number",
          "trace_type",
          "trace_source",
          "tag_number",
          "certificate_number",
          "tagged_by_raw",
          "tag_types",
          "serial_missing",
          "tagged_on",
          "issued_unit_cost_cents",
          "line_position",
          "part_description",
          "demand_part_number",
          "inventory_kind",
          "custody_reason",
          "condition_code",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "customer_po_number",
          "order_line_position",
          "tagged_by",
          "demand",
          "supply",
          "release",
          "part",
          "condition",
          "purchase_order",
          "repair_order",
          "inventory_code",
          "owner_company",
          "creator",
          "ordered_part",
          "demand_order",
          "counterparty",
          "order_line",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "allocation"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "unit_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "quantity": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "staged",
              "consumed",
              "returned"
            ],
            "description": "`live`: Reserved for the demand and not yet on a release; `staged`: Reserved and placed on a release that has not shipped; `consumed`: Shipped or issued; the reservation is used up; `returned`: Put back into inventory after it shipped; the release keeps what went out",
            "x-enum-descriptions": [
              "Reserved for the demand and not yet on a release",
              "Reserved and placed on a release that has not shipped",
              "Shipped or issued; the reservation is used up",
              "Put back into inventory after it shipped; the release keeps what went out"
            ],
            "x-enum-labels": [
              "Allocated",
              "Staged",
              "Shipped",
              "Returned to inventory"
            ]
          },
          "shippable": {
            "type": "boolean"
          },
          "consumed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Every release or certificate the reserved unit's tag carries; empty for an inbound claim or a unit carrying none"
          },
          "serial_missing": {
            "type": "boolean",
            "description": "Whether it reserves a unit of a serialized part with no serial yet, whose release can't ship until the serial is set"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "issued_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "line_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The position of the sales or repair order line it is reserved for; null for any other demand"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "demand_part_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The part number the demand asked for, which a supply naming no catalog part leaves the only part number"
          },
          "inventory_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unit_costed",
              "cost_pool",
              "consignment",
              "custody",
              null
            ],
            "description": "`unit_costed`: Our own stock, each unit carrying its own cost; `cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale; `custody`: Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
            "x-enum-descriptions": [
              "Our own stock, each unit carrying its own cost",
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
              "Not set"
            ],
            "x-enum-labels": [
              "Unit-costed",
              "Cost pool",
              "Consignment",
              "Held for others",
              "Not set"
            ]
          },
          "custody_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repair",
              "lease",
              null
            ],
            "description": "Why a unit held for others is here: a customer's in for repair, or a vendor's we lease; null for one that isn't",
            "x-enum-descriptions": [
              "A customer's unit: held for others and not received on a lease purchase order line",
              "A vendor's unit, received on a lease purchase order line",
              "Not set"
            ],
            "x-enum-labels": [
              "Repair",
              "Lease",
              "Not set"
            ]
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "alternate_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "alternate",
              "supersession",
              null
            ],
            "description": "`alternate`: Another part number for a part that does the same job; `supersession`: The part has a newer number: the alternate part supersedes it",
            "x-enum-descriptions": [
              "Another part number for a part that does the same job",
              "The part has a newer number: the alternate part supersedes it",
              "Not set"
            ],
            "x-enum-labels": [
              "Alternate",
              "Supersession",
              "Not set"
            ]
          },
          "alternate_interchangeability": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "two_way",
              "one_way",
              "none",
              null
            ],
            "description": "`two_way`: Either part can be used in place of the other; `one_way`: The newer or replacement part can be used in place of the other, never the reverse; `none`: Neither part is a substitute for the other",
            "x-enum-descriptions": [
              "Either part can be used in place of the other",
              "The newer or replacement part can be used in place of the other, never the reverse",
              "Neither part is a substitute for the other",
              "Not set"
            ],
            "x-enum-labels": [
              "Both ways",
              "One way",
              "Not interchangeable",
              "Not set"
            ]
          },
          "alternate_direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "replaces",
              "replaced_by",
              null
            ],
            "description": "`replaces`: The alternate part is the newer or replacement one; `replaced_by`: The part is the newer or replacement one",
            "x-enum-descriptions": [
              "The alternate part is the newer or replacement one",
              "The part is the newer or replacement one",
              "Not set"
            ],
            "x-enum-labels": [
              "Replaces",
              "Replaced by",
              "Not set"
            ]
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's PO on the sales order it is reserved for; null for any other demand"
          },
          "order_line_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The position of the purchase or repair order line the unit is on or arrived against"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company that tagged the reserved unit, such as a repair station; null where none is picked or for an inbound claim"
          },
          "demand": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/IssuedPartStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a sales order line's own stub where it is one; a repair order line's own stub where it is one; a vendor exchange's own stub where it is one; a vendor lease's own stub where it is one; a vendor return line's own stub where it is one; an issued part's own stub where it is one; a work order's own stub where it is one; a work order material's own stub where it is one"
          },
          "supply": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; an inventory line's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one"
          },
          "release": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ordered_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "demand_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a sales order's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one"
          },
          "counterparty": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/ManifestLineStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return line's own stub where it is one; a manifest line's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one; a work order's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete",
                    "move",
                    "pick"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "Alternate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "interchangeability",
          "direction",
          "authority",
          "source_fields",
          "part",
          "alternate_part",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "alternate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "alternate",
              "supersession"
            ],
            "description": "`alternate`: Another part number for a part that does the same job; `supersession`: The part has a newer number: the alternate part supersedes it",
            "x-enum-descriptions": [
              "Another part number for a part that does the same job",
              "The part has a newer number: the alternate part supersedes it"
            ],
            "x-enum-labels": [
              "Alternate",
              "Supersession"
            ]
          },
          "interchangeability": {
            "type": "string",
            "enum": [
              "two_way",
              "one_way",
              "none"
            ],
            "description": "`two_way`: Either part can be used in place of the other; `one_way`: The newer or replacement part can be used in place of the other, never the reverse; `none`: Neither part is a substitute for the other",
            "x-enum-descriptions": [
              "Either part can be used in place of the other",
              "The newer or replacement part can be used in place of the other, never the reverse",
              "Neither part is a substitute for the other"
            ],
            "x-enum-labels": [
              "Both ways",
              "One way",
              "Not interchangeable"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "replaces",
              "replaced_by",
              null
            ],
            "description": "`replaces`: The alternate part is the newer or replacement one; `replaced_by`: The part is the newer or replacement one",
            "x-enum-descriptions": [
              "The alternate part is the newer or replacement one",
              "The part is the newer or replacement one",
              "Not set"
            ],
            "x-enum-labels": [
              "Replaces",
              "Replaced by",
              "Not set"
            ]
          },
          "authority": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "alternate_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "Applicability": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "category",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "applicability"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "airframe",
              "engine",
              null
            ],
            "description": "`airframe`: An aircraft type a part fits; `engine`: An engine type a part fits",
            "x-enum-descriptions": [
              "An aircraft type a part fits",
              "An engine type a part fits",
              "Not set"
            ],
            "x-enum-labels": [
              "Airframe",
              "Engine",
              "Not set"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AtaChapter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ata_chapter"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AtaZone": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ata_zone"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Attachment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "line_position",
          "upload",
          "record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "attachment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "line_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "On a receipt line, the position of the purchase order, repair order or manifest line it arrived against, as the receipt line's own `line_position`; null on any other record"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Upload"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole upload when `expand[]=upload` asked for it"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/AccountingTransactionStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "$ref": "#/components/schemas/VendorCertificateStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/ManifestLineStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderFindingStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; a part's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer quote's own stub where it is one; a customer return's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; an accounting transaction's own stub where it is one; a certificate's own stub where it is one; a consignor statement's own stub where it is one; an employee's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a sourcing request's own stub where it is one; a vendor certificate's own stub where it is one; a vendor exchange's own stub where it is one; a vendor lease's own stub where it is one; a vendor return's own stub where it is one; a vendor RFQ's own stub where it is one; a voucher's own stub where it is one; a bin's own stub where it is one; a work order's own stub where it is one; a customer quote line's own stub where it is one; a manifest line's own stub where it is one; a receipt line's own stub where it is one; a work order finding's own stub where it is one; a work order task's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "AutoquoteAttempt": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "occasion",
          "mode",
          "status",
          "target_count",
          "planned_count",
          "applied_count",
          "stop_requested",
          "started_at",
          "finished_at",
          "send_outcome",
          "send_refusal",
          "sent_at",
          "home_value_cents",
          "currency_code",
          "home_currency_code",
          "settings",
          "lines",
          "customer_quote",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "autoquote_attempt"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "occasion": {
            "type": "string",
            "enum": [
              "asked",
              "drafted",
              "customer_matched",
              "triaged"
            ],
            "description": "`asked`: A person or an API caller asked for it; `drafted`: The RFQ reader drafted the quote; `customer_matched`: The quote's customer was matched after it was drafted; `triaged`: A triage rule answered the drafted request no quote; the attempt fills nothing and only sends that answer",
            "x-enum-descriptions": [
              "A person or an API caller asked for it",
              "The RFQ reader drafted the quote",
              "The quote's customer was matched after it was drafted",
              "A triage rule answered the drafted request no quote; the attempt fills nothing and only sends that answer"
            ],
            "x-enum-labels": [
              "Asked",
              "Drafted",
              "Customer matched",
              "Triaged"
            ]
          },
          "mode": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "fresh",
              "gaps",
              "price_only",
              null
            ],
            "description": "Null for a `triaged` attempt, which fills nothing: it sends the no quote a triage rule answered",
            "x-enum-descriptions": [
              "Removes every part line, then quotes each request again; charges stay",
              "Quotes only the requests no person has answered; a request with a unit, a repair service, a price or a no-quote is left whole",
              "Keeps every unit as chosen and prices each part line again, replacing prices entered by hand",
              "Not set"
            ],
            "x-enum-labels": [
              "Start fresh",
              "Fill the gaps",
              "Price only",
              "Not set"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "running",
              "completed",
              "outside_value_band",
              "stopped",
              "failed"
            ],
            "description": "Pending and running attempts are live: the quote refuses changes to its lines, RFQ lines and pricing until one ends",
            "x-enum-descriptions": [
              "Queued, and nothing done yet",
              "Working through the quote's lines",
              "Wrote what it decided, line by line",
              "Stopped before writing anything: the quote's value fell outside the value band",
              "Stopped by a person, or by the quote being sent or trashed; what it had already written stays",
              "Stopped by an error; what it had already written stays"
            ],
            "x-enum-labels": [
              "Pending",
              "Running",
              "Completed",
              "Outside the value band",
              "Stopped",
              "Failed"
            ]
          },
          "target_count": {
            "type": "integer",
            "description": "The lines its mode looks at: the RFQ lines, or for `price_only` the part lines"
          },
          "planned_count": {
            "type": "integer",
            "description": "How many of those it has decided on"
          },
          "applied_count": {
            "type": "integer",
            "description": "How many of those it has written to the quote"
          },
          "stop_requested": {
            "type": "boolean",
            "description": "Whether `POST /customer_quotes/{uuid}/stop_autoquote` asked it to stop; a running attempt stops at its next batch"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "send_outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "sent",
              "kept_as_draft",
              "email_failed",
              null
            ],
            "description": "What came of sending the quote it filled: null where the attempt was never one to send (asked for by a person, not completed, or sending switched off)",
            "x-enum-descriptions": [
              "Sent the quote to the customer, as autoquote's settings allow",
              "Kept the quote a draft for a person, for the reason `send_refusal` gives",
              "Marked the quote sent, but its email didn't go out, for the reason `send_refusal` gives",
              "Not set"
            ],
            "x-enum-labels": [
              "Sent",
              "Kept as draft",
              "Email failed",
              "Not set"
            ]
          },
          "send_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the quote was kept a draft, or why its email didn't go out"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it marked the quote sent, which counts toward the daily send limit"
          },
          "home_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency: what the quote would be worth filled, which the value band reads; null until it has decided every line"
          },
          "currency_code": {
            "type": "string",
            "description": "The quote's currency then, which every line's price is in"
          },
          "home_currency_code": {
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/AutoquoteSettings",
            "description": "The settings it ran under, as they stood then"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutoquoteAttemptLine"
            },
            "description": "What it did with each line it looked at, in the order it looked"
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "AutoquoteAttemptLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "outcome",
          "request_type",
          "exchange_type",
          "core_charge_cents",
          "core_due_days",
          "quantity",
          "unit_price_cents",
          "price_source",
          "decline",
          "before_quantity",
          "before_unit_price_cents",
          "applied",
          "currency_code",
          "customer_rfq_line",
          "customer_quote_line",
          "inventory_line",
          "condition",
          "no_quote_reason",
          "customer_part_price",
          "customer_repair_price",
          "work_order_template",
          "repair_service",
          "lead_time",
          "before_inventory_line",
          "before_no_quote_reason",
          "lease",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "autoquote_attempt_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "quoted",
              "declined",
              "skipped",
              "removed"
            ],
            "description": "`quoted`: Priced from a unit in inventory, or a repair from its repair price or work order template; `declined`: Answered with a no-quote reason; `skipped`: Left whole for a person; `removed`: Taken off the quote so its request could be quoted again",
            "x-enum-descriptions": [
              "Priced from a unit in inventory, or a repair from its repair price or work order template",
              "Answered with a no-quote reason",
              "Left whole for a person",
              "Taken off the quote so its request could be quoted again"
            ],
            "x-enum-labels": [
              "Quoted",
              "Declined",
              "Skipped",
              "Removed"
            ]
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ],
            "description": "What autoquote filled or repriced the request as; on a removed line, what the line was",
            "x-enum-descriptions": [
              "An outright sale: the unit changes hands for its price, with no core owed",
              "An exchange: a serviceable unit now, with a core unit owed back",
              "A repair of the customer's own unit",
              "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
            ],
            "x-enum-labels": [
              "Outright",
              "Exchange",
              "Repair",
              "Lease"
            ]
          },
          "exchange_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cost_plus",
              "flat_rate",
              null
            ],
            "description": "On a quoted exchange, the exchange part price's terms as planned, which the written line takes"
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: on a quoted exchange, the core charge"
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "On a quoted exchange, the days the core is due in"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "price_source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "customer_part_price",
              "customer_quoted",
              "customer_sold",
              "anyone_sold",
              "anyone_quoted",
              "customer_repair_price",
              "work_order_template",
              null
            ],
            "description": "`customer_part_price`: The part price that applies to the customer, condition and quantity; `customer_quoted`: What this customer was last quoted; `customer_sold`: What this customer last bought it for; `anyone_sold`: What anyone last bought it for; `anyone_quoted`: What anyone was last quoted; `customer_repair_price`: The repair price on the part's repair service that applies to the customer and quantity; `work_order_template`: The required tasks' flat rates on the work order template that prices quote lines for the part's repair service, where no repair price applies",
            "x-enum-descriptions": [
              "The part price that applies to the customer, condition and quantity",
              "What this customer was last quoted",
              "What this customer last bought it for",
              "What anyone last bought it for",
              "What anyone was last quoted",
              "The repair price on the part's repair service that applies to the customer and quantity",
              "The required tasks' flat rates on the work order template that prices quote lines for the part's repair service, where no repair price applies",
              "Not set"
            ],
            "x-enum-labels": [
              "Part price",
              "Last quoted to them",
              "Last sold to them",
              "Last sold to anyone",
              "Last quoted to anyone",
              "Repair price",
              "Work order template",
              "Not set"
            ]
          },
          "decline": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "part_unresolved",
              "no_unit",
              "no_inventory",
              "no_price",
              "under_margin_floor",
              "answered_by_person",
              "several_repair_services",
              "template_repriced",
              null
            ],
            "description": "Why the line wasn't quoted, on a declined or skipped line",
            "x-enum-descriptions": [
              "The part asked for matches no part yet",
              "The line names no unit to price",
              "Inventory doesn't hold enough of the part",
              "No price autoquote may use applies to the line",
              "Every price found falls below the margin floor",
              "A person already gave the line a unit, a repair service, a price or a no-quote",
              "More than one of the part's repair services has a repair price or a work order template pricing it, so a person picks one",
              "The work order template was repriced after autoquote priced the line, so the line keeps what it had for a person to price",
              "Not set"
            ],
            "x-enum-labels": [
              "Part unresolved",
              "No unit",
              "No inventory",
              "No price",
              "Under margin floor",
              "Answered by person",
              "Several repair services",
              "Template repriced",
              "Not set"
            ]
          },
          "before_quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "The quantity the line held before, on a line autoquote removed or repriced"
          },
          "before_unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: the price the line held before, on a line autoquote removed or repriced"
          },
          "applied": {
            "type": "boolean",
            "description": "Whether it was written to the quote; an attempt stopped before writing leaves what it decided unwritten"
          },
          "currency_code": {
            "type": "string"
          },
          "customer_rfq_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerRfqLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_quote_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "On a line quoted from a unit, the condition it was quoted in, which the written line takes: the unit's own, or the one it is offered in"
          },
          "no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_part_price": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerPartPriceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_repair_price": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerRepairPriceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_order_template": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "On a repair quoted from a work order template, the template, whose tasks the written line keeps"
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "On a quoted repair, the repair service its repair price or template is for, which the written line takes"
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "On a quoted repair, its repair price's lead time as planned, which the written line takes"
          },
          "before_inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "before_no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "rate_unit",
              "minimum_days",
              "included_hours",
              "included_cycles",
              "hour_fee_cents",
              "cycle_fee_cents",
              "outright_price_cents",
              "due_days"
            ],
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ],
                "description": "The period `unit_price_cents` is the rate for, and the allowance and fees below are counted over",
                "x-enum-descriptions": [
                  "The rate is per day, and any allowance of hours and cycles is per day",
                  "The rate is per week, and any allowance of hours and cycles is per week",
                  "The rate is per month, and any allowance of hours and cycles is per month",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Day",
                  "Week",
                  "Month",
                  "Not set"
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fewest days the lease bills for"
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The hours each period's rate includes"
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The cycles each period's rate includes"
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each hour over the allowance"
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each cycle over the allowance"
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the unit sells for if it doesn't come back"
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days after it ships the unit is due back"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        }
      },
      "AutoquoteSettings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "automatic",
          "quantity_mode",
          "condition_mode",
          "inventory_order",
          "margin_floor_percent",
          "home_minimum_value_cents",
          "home_maximum_value_cents",
          "price_history_max_age_days",
          "price_sources",
          "sends_automatically",
          "answers_senders",
          "daily_send_limit",
          "currency_code",
          "organization",
          "default_sender",
          "preferred_warehouse",
          "no_inventory_reason",
          "no_price_reason",
          "conditions"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "autoquote_settings"
          },
          "automatic": {
            "type": "boolean",
            "description": "Whether a draft the RFQ reader makes is filled as it lands, and again when its customer is matched"
          },
          "quantity_mode": {
            "type": "string",
            "enum": [
              "exact",
              "up_to_available"
            ],
            "description": "`exact`: Quote a request only where inventory covers the whole quantity asked; `up_to_available`: Quote what inventory holds, up to the quantity asked",
            "x-enum-descriptions": [
              "Quote a request only where inventory covers the whole quantity asked",
              "Quote what inventory holds, up to the quantity asked"
            ],
            "x-enum-labels": [
              "Exact",
              "Up to available"
            ]
          },
          "condition_mode": {
            "type": "string",
            "enum": [
              "as_asked",
              "ranked"
            ],
            "description": "`as_asked`: Pick units in the conditions the request asks for, else in the ranked list; `ranked`: Pick units in the ranked conditions alone, best first",
            "x-enum-descriptions": [
              "Pick units in the conditions the request asks for, else in the ranked list",
              "Pick units in the ranked conditions alone, best first"
            ],
            "x-enum-labels": [
              "As asked",
              "Ranked"
            ]
          },
          "inventory_order": {
            "type": "string",
            "enum": [
              "oldest_received",
              "lowest_cost"
            ],
            "description": "`oldest_received`: The unit received longest ago goes first; `lowest_cost`: The unit that cost least goes first",
            "x-enum-descriptions": [
              "The unit received longest ago goes first",
              "The unit that cost least goes first"
            ],
            "x-enum-labels": [
              "Oldest received",
              "Lowest cost"
            ]
          },
          "margin_floor_percent": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The least margin an outright sale's price may leave over the unit's cost, in percent; an exchange or a repair is never held to it; null sets no floor"
          },
          "home_minimum_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "home_maximum_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "price_history_max_age_days": {
            "type": "integer",
            "description": "How many days back a past quote or sale may price a line"
          },
          "price_sources": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer_part_price",
                "customer_quoted",
                "customer_sold",
                "anyone_sold",
                "anyone_quoted"
              ],
              "x-enum-descriptions": [
                "The part price that applies to the customer, condition and quantity",
                "What this customer was last quoted",
                "What this customer last bought it for",
                "What anyone last bought it for",
                "What anyone was last quoted"
              ],
              "x-enum-labels": [
                "Part price",
                "Last quoted to them",
                "Last sold to them",
                "Last sold to anyone",
                "Last quoted to anyone"
              ]
            },
            "description": "The sources autoquote tries in order for an outright sale, taking the first price that clears the margin floor; an exchange is priced from its exchange part price alone, and a repair from the repair price on the part's repair service"
          },
          "sends_automatically": {
            "type": "boolean",
            "description": "Whether a draft the system filled is sent once every request is quoted, nothing needs review and the RFQ email's sender is one answers_senders lets autoquote answer; a quote kept a draft says why on its attempt"
          },
          "answers_senders": {
            "type": "string",
            "enum": [
              "verified_customer",
              "customer",
              "any_sender"
            ],
            "description": "Which RFQ emails autoquote may send a filled quote back to; a triage rule's no quote answers only a signed email, whatever this says",
            "x-enum-descriptions": [
              "A quote goes only to an RFQ email its sender's domain signed, from one of the customer's contacts or its email domain",
              "A quote goes to an RFQ email from one of the customer's contacts or its email domain, signed or not, but never to one that failed its domain's authentication or came from a domain that looks like a company's on file",
              "A quote goes to the From address of any RFQ email sent straight to us, so anyone who writes in gets your prices; spam and malware are never answered, and a quote whose customer only the email's own words named stays a draft"
            ],
            "x-enum-labels": [
              "Verified customers",
              "Customers, verified or not",
              "Any sender"
            ]
          },
          "daily_send_limit": {
            "type": "integer",
            "description": "How many quotes autoquote may send for the organization in one business day; past it, a draft stays a draft"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_sender": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferred_warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "no_inventory_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "no_price_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightIntegration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "version",
          "version_refusal",
          "read_refusal",
          "inactive_at",
          "fields_checked_at",
          "fields_refusal",
          "records_checked_at",
          "system_of_record_switched_at",
          "sends_declined_quotes",
          "reads_quoting_only",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "AvSight's, as its events name it"
          },
          "version": {
            "type": "string",
            "description": "The version of AvSight installed in the org, as Salesforce lists it under Installed Packages"
          },
          "version_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the version is the one last found, the org's installed packages hidden from the Run As user, and the step that fixes it, in words; null where Salesforce listed them"
          },
          "read_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "What keeps the Run As user from reading AvSight's records, and the step that fixes it, in words; null where it reads them"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone stopped CorePilot reading AvSight, so a pull streams none of its objects and its fields go unchecked; null while it is read, as it is from when a connection first finds it"
          },
          "fields_checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When connect, test, check, or a pull finding AvSight's version changed, last held the objects and fields a pull reads against what the org lists for each object; null where AvSight isn't read, or its records couldn't be, so nothing was checked"
          },
          "fields_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the org lacks that a pull can't do without, why, and where to fix it, in words; null when it lacks none"
          },
          "records_checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the last finished check of the records a pull landed began reading them. It moves once the check is done, after its apply when applying, whether or not it changed anything, and only once a check asked while it ran has run as well, so a client that asked for one with `check_records` knows it has run once this moves; null before any"
          },
          "system_of_record_switched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone made CorePilot the system of record in AvSight's place, after the migration's initial load finished: from then on nothing is checked or applied, the records that came from AvSight are CorePilot's to change, and push-back to AvSight can run; null while AvSight is the system of record"
          },
          "sends_declined_quotes": {
            "type": "boolean",
            "description": "Whether a quote sent while AvSight keeps the records goes to AvSight when every line on it is no-quoted; false until someone turns it on, so such a quote stays in CorePilot, its push saying why"
          },
          "reads_quoting_only": {
            "type": "boolean",
            "description": "Whether CorePilot reads only what quoting needs from AvSight: parts and prices, companies, inventory, and AvSight's quotes and sales orders. Purchasing, repair, receipts, invoices and accounting stay AvSight's, never pulled, checked or applied, and what was pulled of them goes at the next records check. False until someone turns it on, refused once an apply has written a record quoting doesn't read; turning it off reads all of AvSight again from the start"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "check",
                    "check_records",
                    "deactivate",
                    "activate",
                    "switch_system_of_record"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "missing_fields": {
            "$ref": "#/components/schemas/AvsightIntegrationMissingFieldList",
            "description": "Present when `expand[]=missing_fields` asked for it: the first page, continued on `/salesforce_integration/avsight/missing_fields`"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightIntegrationMissingField": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "object_name",
          "field_name",
          "required",
          "causes",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration_missing_field"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where it came in the last check, from 1, those a pull requires first"
          },
          "object_name": {
            "type": "string",
            "description": "The object's API name, as AvSight's record classes declare it (inscor__Inventory_Line__c)"
          },
          "field_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The field's API name; null where the org lacks the whole object"
          },
          "required": {
            "type": "boolean",
            "description": "Whether a pull can't do without it, which refuses a connect"
          },
          "causes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Why an org lacks it, in words: an older version of AvSight, which adds it, or a Run As user without access to it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightIntegrationPush": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "mapping",
          "key",
          "status",
          "fields",
          "message",
          "attempted_at",
          "pushed_at",
          "record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration_push"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "mapping": {
            "type": "string",
            "enum": [
              "part",
              "company",
              "contact",
              "customer_quote",
              "customer_quote_line",
              "sales_order",
              "sales_order_line",
              "purchase_order",
              "purchase_order_line",
              "repair_order",
              "repair_order_line"
            ],
            "description": "The kind of CorePilot record it is, whose mapping says what of it goes to AvSight"
          },
          "key": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Id of the AvSight record it writes to; null for a quote AvSight doesn't hold yet"
          },
          "status": {
            "type": "string",
            "enum": [
              "pushed",
              "refused",
              "failed",
              "unsent"
            ],
            "description": "`pushed` where AvSight took its last change; `refused` where AvSight refused it, as `message` says, tried again with the record's next change; `failed` where CorePilot held it back because AvSight's Run As user can't change a field, tried again every run; `unsent` where a changed field has no single AvSight value to send, or its amounts stay in CorePilot, so that change stays there, or a sent quote CorePilot kept back, as `message` says why",
            "x-enum-descriptions": [
              "AvSight took its last change",
              "AvSight refused its change",
              "Held back: AvSight's Run As user can't change a field, so it is tried again every run",
              "Left in CorePilot: a change with no single AvSight value to send, or a sent quote CorePilot kept back, its message saying why"
            ],
            "x-enum-labels": [
              "Pushed",
              "Refused",
              "Held back",
              "Unsent"
            ]
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The AvSight fields, by their Salesforce names: those it sent or held back, with any it couldn't send; where `unsent`, those it left in CorePilot"
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why AvSight refused it, or why it was held back or left unsent; null once pushed"
          },
          "attempted_at": {
            "type": "string",
            "format": "date-time",
            "description": "When CorePilot last tried to push it"
          },
          "pushed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When AvSight last took a change to it, kept through later refusals; null before any"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The CorePilot record it pushed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightIntegrationRecord": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "mapping",
          "mapping_version",
          "status",
          "problems",
          "problem_reasons",
          "note",
          "outcome",
          "checked_at",
          "applied_at",
          "external_record",
          "record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration_record"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "mapping": {
            "type": "string",
            "enum": [
              "part",
              "company",
              "account_ship_address",
              "contact",
              "company_location",
              "warehouse",
              "alternate",
              "price",
              "customer_contract_price",
              "vendor_contract_price",
              "repair_contract_price",
              "owner_code",
              "inventory_location",
              "inventory_line",
              "secondary_inventory",
              "customer_quote",
              "customer_quote_line",
              "vendor_rfq",
              "vendor_rfq_line",
              "sales_order",
              "sales_order_line",
              "allocation",
              "purchase_order",
              "purchase_order_line",
              "repair_order",
              "repair_order_line",
              "ro_issue",
              "release",
              "release_line",
              "invoice",
              "invoice_line",
              "deposit",
              "rma",
              "rma_line",
              "customer_exchange_summary",
              "manifest",
              "manifest_line",
              "company_default_gl_accounts",
              "payment_voucher",
              "event",
              "owner_code_adjustment",
              "transaction_activity",
              "part_history",
              "company_history",
              "account_ship_address_history",
              "contact_history",
              "company_location_history",
              "warehouse_history",
              "alternate_history",
              "price_history",
              "customer_contract_price_history",
              "vendor_contract_price_history",
              "repair_contract_price_history",
              "owner_code_history",
              "inventory_location_history",
              "inventory_line_history",
              "secondary_inventory_history",
              "customer_quote_history",
              "customer_quote_line_history",
              "vendor_rfq_history",
              "vendor_rfq_line_history",
              "sales_order_history",
              "sales_order_line_history",
              "allocation_history",
              "purchase_order_history",
              "purchase_order_line_history",
              "repair_order_history",
              "repair_order_line_history",
              "ro_issue_history",
              "release_history",
              "release_line_history",
              "invoice_history",
              "invoice_line_history",
              "rma_history",
              "rma_line_history",
              "customer_exchange_summary_history",
              "manifest_history",
              "manifest_line_history",
              "payment_voucher_history",
              "receipt_history"
            ],
            "description": "The kind of CorePilot record it becomes, whose mapping judges it",
            "x-enum-descriptions": [
              "AvSight's part records, brought over as parts",
              "AvSight's company records, brought over as companies",
              "AvSight's account ship address records, brought over as company addresses",
              "AvSight's contact records, brought over as contacts",
              "AvSight's company location records, brought over as facilities",
              "AvSight's warehouse records, brought over as warehouses",
              "AvSight's alternate records, brought over as alternates",
              "AvSight's price records, brought over as part prices",
              "AvSight's customer contract price records, brought over as part prices",
              "AvSight's vendor contract price records, brought over as vendor part prices",
              "AvSight's repair contract price records, brought over as vendor repair prices",
              "AvSight's owner code records, brought over as inventory codes",
              "AvSight's inventory location records, brought over as bins",
              "AvSight's inventory line records, brought over as inventory lines",
              "AvSight's vendor inventory line records, brought over as vendor inventory lines",
              "AvSight's customer quote records, brought over as customer quotes",
              "AvSight's customer quote line records, brought over as customer quote lines",
              "AvSight's vendor RFQ records, brought over as vendor RFQs",
              "AvSight's vendor RFQ line records, brought over as vendor RFQ lines",
              "AvSight's sales order records, brought over as sales orders",
              "AvSight's sales order line records, brought over as sales order lines",
              "AvSight's allocation records, brought over as allocations",
              "AvSight's purchase order records, brought over as purchase orders",
              "AvSight's purchase order line records, brought over as purchase order lines",
              "AvSight's repair order records, brought over as repair orders",
              "AvSight's repair order line records, brought over as repair order lines",
              "AvSight's RO issue records, brought over as repair order issues",
              "AvSight's release records, brought over as releases",
              "AvSight's release line records, brought over as release lines",
              "AvSight's invoice records, brought over as invoices",
              "AvSight's invoice line records, brought over as invoice lines",
              "AvSight's deposit records, brought over as customer payments",
              "AvSight's RMA records, brought over as customer returns",
              "AvSight's RMA line records, brought over as customer return lines",
              "AvSight's customer exchange records, brought over as customer exchanges",
              "AvSight's manifest records, brought over as manifests",
              "AvSight's manifest line records, brought over as manifest lines",
              "AvSight's company default GL accounts records, brought over as GL defaults",
              "AvSight's payment voucher records, brought over as voucher lines",
              "AvSight's calendar event records, brought over as calendar events",
              "AvSight's owner code adjustment records, brought over as inventory entries",
              "AvSight's transaction activity records, brought over as posting history",
              "AvSight's part history records, brought over as field history",
              "AvSight's company history records, brought over as field history",
              "AvSight's account ship address history records, brought over as field history",
              "AvSight's contact history records, brought over as field history",
              "AvSight's company location history records, brought over as field history",
              "AvSight's warehouse history records, brought over as field history",
              "AvSight's alternate history records, brought over as field history",
              "AvSight's price history records, brought over as field history",
              "AvSight's customer contract price history records, brought over as field history",
              "AvSight's vendor contract price history records, brought over as field history",
              "AvSight's repair contract price history records, brought over as field history",
              "AvSight's owner code history records, brought over as field history",
              "AvSight's inventory location history records, brought over as field history",
              "AvSight's inventory line history records, brought over as field history",
              "AvSight's vendor inventory line history records, brought over as field history",
              "AvSight's customer quote history records, brought over as field history",
              "AvSight's customer quote line history records, brought over as field history",
              "AvSight's vendor RFQ history records, brought over as field history",
              "AvSight's vendor RFQ line history records, brought over as field history",
              "AvSight's sales order history records, brought over as field history",
              "AvSight's sales order line history records, brought over as field history",
              "AvSight's allocation history records, brought over as field history",
              "AvSight's purchase order history records, brought over as field history",
              "AvSight's purchase order line history records, brought over as field history",
              "AvSight's repair order history records, brought over as field history",
              "AvSight's repair order line history records, brought over as field history",
              "AvSight's RO issue history records, brought over as field history",
              "AvSight's release history records, brought over as field history",
              "AvSight's release line history records, brought over as field history",
              "AvSight's invoice history records, brought over as field history",
              "AvSight's invoice line history records, brought over as field history",
              "AvSight's RMA history records, brought over as field history",
              "AvSight's RMA line history records, brought over as field history",
              "AvSight's customer exchange history records, brought over as field history",
              "AvSight's manifest history records, brought over as field history",
              "AvSight's manifest line history records, brought over as field history",
              "AvSight's payment voucher history records, brought over as field history",
              "AvSight's receipt history records, brought over as field history"
            ],
            "x-enum-labels": [
              "Part",
              "Company",
              "Account ship address",
              "Contact",
              "Company location",
              "Warehouse",
              "Alternate",
              "Price",
              "Customer contract price",
              "Vendor contract price",
              "Repair contract price",
              "Owner code",
              "Inventory location",
              "Inventory line",
              "Vendor inventory line",
              "Customer quote",
              "Customer quote line",
              "Vendor RFQ",
              "Vendor RFQ line",
              "Sales order",
              "Sales order line",
              "Allocation",
              "Purchase order",
              "Purchase order line",
              "Repair order",
              "Repair order line",
              "RO issue",
              "Release",
              "Release line",
              "Invoice",
              "Invoice line",
              "Deposit",
              "RMA",
              "RMA line",
              "Customer exchange",
              "Manifest",
              "Manifest line",
              "Company default GL accounts",
              "Payment voucher",
              "Calendar event",
              "Owner code adjustment",
              "Transaction activity",
              "Part history",
              "Company history",
              "Account ship address history",
              "Contact history",
              "Company location history",
              "Warehouse history",
              "Alternate history",
              "Price history",
              "Customer contract price history",
              "Vendor contract price history",
              "Repair contract price history",
              "Owner code history",
              "Inventory location history",
              "Inventory line history",
              "Vendor inventory line history",
              "Customer quote history",
              "Customer quote line history",
              "Vendor RFQ history",
              "Vendor RFQ line history",
              "Sales order history",
              "Sales order line history",
              "Allocation history",
              "Purchase order history",
              "Purchase order line history",
              "Repair order history",
              "Repair order line history",
              "RO issue history",
              "Release history",
              "Release line history",
              "Invoice history",
              "Invoice line history",
              "RMA history",
              "RMA line history",
              "Customer exchange history",
              "Manifest history",
              "Manifest line history",
              "Payment voucher history",
              "Receipt history"
            ]
          },
          "mapping_version": {
            "type": "integer",
            "description": "The version of that mapping its last check judged it by"
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "applied",
              "waiting",
              "problem",
              "failed",
              "skipped",
              "removed"
            ],
            "description": "`ready` to apply; `applied` where an apply wrote it as its last check judged it; `waiting` on the next check, as `note` says: for a record it names, or because it was unskipped; `problem` until it is fixed in AvSight; `failed` where CorePilot couldn't write it; `skipped` where someone held it out; `removed` where AvSight removed it since, whatever it stood at",
            "x-enum-descriptions": [
              "Ready to apply",
              "Written into CorePilot by an apply, as its last check judged it",
              "Waiting on the next check, for a record it names or because it was unskipped",
              "Held until it is fixed in AvSight",
              "CorePilot couldn't write it",
              "Someone held it out of the migration",
              "Removed in AvSight since a check judged it, whatever it stood at"
            ],
            "x-enum-labels": [
              "Ready",
              "Applied",
              "Waiting",
              "Problem",
              "Failed",
              "Skipped",
              "Removed"
            ]
          },
          "problems": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Why it can't be applied, each reason keyed by the AvSight field to fix there; a `failed` record's reasons are CorePilot's (`base` where no field is at fault), not AvSight's to fix, and the next pull tries it again"
          },
          "problem_reasons": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "enum": [
                "unmapped_value",
                "value_not_created",
                "parent_not_applied",
                "parent_lost",
                "invalid",
                "taken_by_avsight_record",
                "taken_by_corepilot_record",
                "moved_organization",
                "number_taken",
                "line_problem",
                "line_not_applied",
                "price_not_above_zero",
                "charge_unmapped",
                "non_inventory_part",
                "held_twice",
                "taken_while_applying",
                "save_refused",
                "apply_failed",
                "unread_value",
                "unreadable_number",
                "blank_in_avsight",
                "value_left_blank",
                "inactive_in_corepilot",
                "role_missing",
                "names_removed",
                "names_skipped",
                "names_unlanded",
                "quantity_not_allowed",
                "amount_not_allowed",
                "receipt_refused",
                "voucher_refused",
                "change_not_taken_back",
                "names_unmigrated",
                "organization_mismatch",
                "quantity_committed",
                "charge_missing",
                "serial_shared",
                "owner_codes_mixed",
                "reservation_refused",
                "staging_refused",
                "shipped_elsewhere",
                "no_lines",
                "order_still_open",
                "shipment_unrecordable",
                "charge_split",
                "stated_by_avsight_record",
                "code_across_organizations",
                "consigned_and_bought",
                "rate_not_allowed",
                "investors_not_allowed",
                "changed_since_opened",
                "cost_below_held",
                "bin_unplaced",
                "serial_missing",
                "serial_units_together",
                "credit_line",
                "customer_unit_unclear",
                "unit_in_custody",
                "unit_not_shipped_home",
                "custody_refused",
                "repair_line_missing",
                "supply_unreserved",
                "cores_unplaced",
                "returns_only",
                "vendor_return_unplaced",
                "inventory_unfit",
                "unit_not_sendable",
                "partly_returned",
                "customer_unit_mixed",
                "issue_unaccounted",
                "issue_refused",
                "release_refused",
                "nothing_to_stage",
                "billed_twice",
                "shipment_unbillable",
                "total_mismatch",
                "credited_on_wrong_invoice",
                "payment_applied",
                "return_unreceived",
                "not_a_lot_purchase",
                "consigned_order",
                "vendor_mismatch",
                "voucher_approved",
                "invoice_lines_disagree"
              ]
            },
            "description": "The cause of each of its problems, keyed as `problems` is, so records held for one cause can be told from the rest"
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "What it waits on, that it was unskipped, or what apply leaves out of it (a contact's email address another contact keeps)"
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "created",
              "linked",
              "updated",
              "unchanged",
              null
            ],
            "description": "What its last apply did: made a record, linked one CorePilot held, updated it, or found nothing to change; null until applied",
            "x-enum-descriptions": [
              "Made a CorePilot record",
              "Linked a record CorePilot held",
              "Updated the CorePilot record",
              "Found nothing to change",
              "Not set"
            ],
            "x-enum-labels": [
              "Created",
              "Linked",
              "Updated",
              "Unchanged",
              "Not set"
            ]
          },
          "checked_at": {
            "type": "string",
            "format": "date-time",
            "description": "When a check last judged it"
          },
          "applied_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When an apply last wrote it into CorePilot; null until then"
          },
          "external_record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ExternalRecordStub"
              },
              {
                "$ref": "#/components/schemas/ExternalRecord"
              },
              {
                "type": "null"
              }
            ],
            "description": "The AvSight record as it landed"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "$ref": "#/components/schemas/AlternateStub"
              },
              {
                "$ref": "#/components/schemas/CustomerPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/VendorPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/VendorRepairPriceStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqLineStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/IssuedPartStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseLineStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerPaymentStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ManifestLineStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/VoucherLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorPaymentStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The CorePilot record it became; null until applied"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "skip",
                    "unskip"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightIntegrationValueMapping": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "value",
          "label",
          "action",
          "choice",
          "creatable",
          "ledger_account_to_create",
          "records_count",
          "decided_at",
          "invitee_email_address",
          "record",
          "decider",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_integration_value_mapping"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "applicability",
              "charge",
              "company_segment",
              "condition",
              "contact_role",
              "core_disposition",
              "country",
              "exchange_type",
              "freight_term",
              "lead_time",
              "ledger_account",
              "lost_reason",
              "manufacturer",
              "measurement_unit",
              "no_quote_reason",
              "organization",
              "part_classification",
              "payment_term",
              "protection_reason",
              "rejection_reason",
              "repair_service",
              "return_disposition",
              "ship_via",
              "user"
            ],
            "description": "What the value names in CorePilot",
            "x-enum-descriptions": [
              "A part's applicability",
              "A charge, from an AvSight part marked Non Inventory Item, which the lines naming that part bill",
              "A company's segment, from AvSight's account type",
              "A condition, from AvSight's condition code",
              "A contact's role, from AvSight's contact type",
              "What an exchange plans for the customer's core, from AvSight's core disposition, mapped to CorePilot's code",
              "A country, mapped to its code",
              "How an exchange is priced, from AvSight's exchange type, mapped to CorePilot's code, or left blank for a standard exchange",
              "A freight term, from AvSight's ship terms",
              "A lead time, from the lead time an AvSight quote line gives, which the quote line takes",
              "A ledger account, from AvSight's GL account: the GL defaults and inventory code overrides AvSight names it for take it",
              "Why a quote was lost, from AvSight's lost reason",
              "A manufacturer, from AvSight's manufacturer code",
              "A unit of measure",
              "Why a quote line wasn't quoted, from AvSight's no quote reason",
              "One of your organizations, from AvSight's company: its locations and warehouses arrive there",
              "A part's classification",
              "A payment term, from AvSight's account terms",
              "Why an inventory line is protected, from AvSight's protected reason",
              "A rejection reason, from the rejection reasons on an AvSight inventory line protected as Rejected, which the rejection it opens takes",
              "A repair service, from the expected condition an AvSight repair order line asks for, its Repair Type of Teardown, or the service a repair contract price covers",
              "Where an exchange's returned core goes, from AvSight's inventory disposition, mapped to CorePilot's code",
              "A carrier and its service, or a way of shipping that names no carrier, such as customer pickup, from AvSight's ship method",
              "An AvSight user, mapped to the member who owns the accounts they own and holds their quotes, sales orders and RFQs"
            ],
            "x-enum-labels": [
              "Applicability",
              "Charge",
              "Company segment",
              "Condition",
              "Contact role",
              "Core disposition",
              "Country",
              "Exchange type",
              "Freight term",
              "Lead time",
              "Ledger account",
              "Lost reason",
              "Manufacturer",
              "Measurement unit",
              "No quote reason",
              "Organization",
              "Part classification",
              "Payment term",
              "Protection reason",
              "Rejection reason",
              "Repair service",
              "Return disposition",
              "Ship via",
              "User"
            ]
          },
          "value": {
            "type": "string",
            "description": "The value as AvSight's records carry it: a manufacturer code's Id, a unit's code, a country's name"
          },
          "label": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the value reads as where it is an Id, from the AvSight record it names; null elsewhere"
          },
          "action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "match",
              "create",
              "ignore",
              null
            ],
            "x-enum-labels": [
              "Match",
              "Create",
              "Left blank",
              "Not set"
            ],
            "description": "`match` to the record `record` names, or a country, disposition or exchange type to the code `choice` holds; `create` the record on apply; `ignore` to leave the field blank, which for an exchange type is a standard exchange; null where nothing maps it yet, which holds the records carrying it"
          },
          "choice": {
            "type": [
              "string",
              "null"
            ],
            "description": "The code a matched country maps to, or a matched core or return disposition or exchange type: one of the values a sales order line's `core_disposition`, `return_disposition` or `exchange_type` holds; null for the other kinds"
          },
          "creatable": {
            "type": "boolean",
            "description": "Whether CorePilot can make the record on apply, so `create` is a mapping it takes: by kind, and for a GL account only where its name leads with an account number no ledger account holds and its type gives a kind"
          },
          "ledger_account_to_create": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "code",
              "name"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "description": "The code and name `create` makes a GL account's ledger account with; null for the other kinds, or where it can't make one"
          },
          "records_count": {
            "type": "integer",
            "description": "How many landed AvSight records carry it, as the last check counted"
          },
          "decided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a person last mapped it"
          },
          "invitee_email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address `invite` sends an invitation to: the one AvSight holds for a user value as it last landed; null for the other kinds, or where AvSight holds none"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The CorePilot record a `match` names, or the one a `create` made on apply; null where it maps none"
          },
          "decider": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who mapped it by hand; null while checks work it out"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "invite"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightMigration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "currency_code",
          "applying",
          "applying_since",
          "checked_at",
          "checking",
          "pulling",
          "finished_at",
          "finish_asked_at",
          "finishes_on",
          "pushes_back_until",
          "copies_files",
          "module_ends_on",
          "module_refusal",
          "push_refusal",
          "last_pushed_at",
          "counting",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_migration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The migration's, as its events name it"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "applying": {
            "type": "boolean",
            "description": "Whether each check after a pull writes the records it finds ready into CorePilot: true from the first apply while AvSight is read, until CorePilot is made the system of record in AvSight's place"
          },
          "applying_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone first applied the migration; null until then"
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the last finished check began reading. It moves once the check is done, after its apply when applying, whether or not it changed anything; a check asked while another ran is answered by the one after it (`checking`); null before any"
          },
          "checking": {
            "type": "boolean",
            "description": "Whether a check asked for has yet to finish: true from the ask until a check that began after it is done, so a client that asked for one knows it has run once this is false and `checked_at` has moved"
          },
          "pulling": {
            "type": "boolean",
            "description": "Whether a pull of the org has begun and not yet reached its end, which asks for a check; Check records and Finish each wait on one. One that failed partway says so until the next pull ends"
          },
          "finished_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the initial load was finished, by someone or on its day; AvSight stays the system of record, and each pull is still checked and applied until CorePilot is made the system of record in AvSight's place; null while it loads"
          },
          "finish_asked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone asked to finish the initial load, while that Finish waits on the pull it queued and the check after it; null once it finishes, once it is refused, and while nobody has asked"
          },
          "finishes_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The business's day the initial load finishes on by itself, set ahead: from the first hourly run that day, Finish runs as if someone had asked, and a day it is refused it keeps the date, narrates why, and tries again the next run. AvSight stays the system of record either way; null leaves Finish to someone"
          },
          "pushes_back_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The business's last day CorePilot pushes the changes made to what came from AvSight back to it, best effort, once CorePilot is the system of record; set at any time, never past the last day AvSight is read; null pushes nothing back"
          },
          "copies_files": {
            "type": "boolean",
            "description": "Whether AvSight's files are copied into Uploads after each pull, before and after Finish; false until someone turns it on, which starts a copy at once. Turned off, a copy under way stops before its next file, keeps its place for when it is turned on again, and the files already copied stay"
          },
          "module_ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day, a UTC day, AvSight is read: the later last day of the AvSight connection and AvSight migration modules the tenant holds in force; null while either has no end, or neither is in force"
          },
          "module_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why AvSight isn't read while AvSight is the system of record: neither the AvSight connection nor the AvSight migration module is in force, each ended, suspended or never sold. Finish stays open whatever it says; null while either runs, and once CorePilot is the system of record"
          },
          "push_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why nothing is pushed back to AvSight: AvSight or another system still holds the records, push-back is off or its last day has passed, AvSight isn't read, the module ended, or the Salesforce org is a production one this CorePilot only reads; null while push-back is on"
          },
          "last_pushed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When CorePilot last pushed a change back to AvSight that AvSight took; null before any"
          },
          "counting": {
            "type": "boolean",
            "description": "Whether a count asked for has yet to finish: each check, skip, unskip and file copy run asks for one, as does reading the migration while none is kept. A client waiting on the counts reads again until this is false"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "apply",
                    "finish"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "counts": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "objects",
              "left_in_avsight",
              "files",
              "values_to_map",
              "tie_outs",
              "unposted_activities",
              "activities_without_record",
              "history_without_record",
              "counted_at"
            ],
            "properties": {
              "objects": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "mapping",
                    "source",
                    "target",
                    "in_avsight",
                    "ready",
                    "applied",
                    "waiting",
                    "problems",
                    "skipped",
                    "removed",
                    "closed_history",
                    "came_over_closed"
                  ],
                  "properties": {
                    "mapping": {
                      "type": "string",
                      "enum": [
                        "part",
                        "company",
                        "account_ship_address",
                        "contact",
                        "company_location",
                        "warehouse",
                        "alternate",
                        "price",
                        "customer_contract_price",
                        "vendor_contract_price",
                        "repair_contract_price",
                        "owner_code",
                        "inventory_location",
                        "inventory_line",
                        "secondary_inventory",
                        "customer_quote",
                        "customer_quote_line",
                        "vendor_rfq",
                        "vendor_rfq_line",
                        "sales_order",
                        "sales_order_line",
                        "allocation",
                        "purchase_order",
                        "purchase_order_line",
                        "repair_order",
                        "repair_order_line",
                        "ro_issue",
                        "release",
                        "release_line",
                        "invoice",
                        "invoice_line",
                        "deposit",
                        "rma",
                        "rma_line",
                        "customer_exchange_summary",
                        "manifest",
                        "manifest_line",
                        "company_default_gl_accounts",
                        "payment_voucher",
                        "event",
                        "owner_code_adjustment",
                        "transaction_activity",
                        "part_history",
                        "company_history",
                        "account_ship_address_history",
                        "contact_history",
                        "company_location_history",
                        "warehouse_history",
                        "alternate_history",
                        "price_history",
                        "customer_contract_price_history",
                        "vendor_contract_price_history",
                        "repair_contract_price_history",
                        "owner_code_history",
                        "inventory_location_history",
                        "inventory_line_history",
                        "secondary_inventory_history",
                        "customer_quote_history",
                        "customer_quote_line_history",
                        "vendor_rfq_history",
                        "vendor_rfq_line_history",
                        "sales_order_history",
                        "sales_order_line_history",
                        "allocation_history",
                        "purchase_order_history",
                        "purchase_order_line_history",
                        "repair_order_history",
                        "repair_order_line_history",
                        "ro_issue_history",
                        "release_history",
                        "release_line_history",
                        "invoice_history",
                        "invoice_line_history",
                        "rma_history",
                        "rma_line_history",
                        "customer_exchange_summary_history",
                        "manifest_history",
                        "manifest_line_history",
                        "payment_voucher_history",
                        "receipt_history"
                      ],
                      "description": "The mapping, as an `avsight_integration_record`'s `mapping` names it"
                    },
                    "source": {
                      "type": "string",
                      "description": "The AvSight object its records come from, as the org labels it"
                    },
                    "target": {
                      "type": "string",
                      "description": "What they become in CorePilot"
                    },
                    "in_avsight": {
                      "type": "integer",
                      "description": "Every record of the object AvSight still holds, checked yet or not, to tie out against AvSight's own total"
                    },
                    "ready": {
                      "type": "integer",
                      "description": "Ready, and not applied as its last check judged it: an `avsight_integration_record`'s `ready`"
                    },
                    "applied": {
                      "type": "integer",
                      "description": "Written into CorePilot by an apply as its last check judged it: an `avsight_integration_record`'s `applied`"
                    },
                    "waiting": {
                      "type": "integer",
                      "description": "Waiting on the next check"
                    },
                    "problems": {
                      "type": "integer",
                      "description": "Held as a problem to fix in AvSight, or failed in CorePilot"
                    },
                    "skipped": {
                      "type": "integer",
                      "description": "Held out of the migration by someone"
                    },
                    "removed": {
                      "type": "integer",
                      "description": "Removed in AvSight since a check judged them, whatever they stood at"
                    },
                    "closed_history": {
                      "type": "integer",
                      "description": "Records AvSight still holds that the migration leaves behind as closed history (a line or allocation AvSight closed or shipped in full on an order that doesn't come over closed, unless a release AvSight shipped on its open order ships it, an open invoice bills its order, or an RMA the migration brings over returns against it or an open exchange owes a core on it; a repair order line AvSight marks received or vouchered with nothing received back, on an order it holds open; a Return EX Core line on a purchase order AvSight finished, a charge it received none of on one it closed, or a charge or consignment line it received in full on one it holds open; a purchase or repair order with no lines that AvSight hasn't finished; a release AvSight cancelled on an order that comes over closed, or shipped, invoiced or cancelled on a purchase order, RMA or repair order rather than a sales order, with its release lines; a blank invoice naming no type, order, release or line; an RMA line AvSight cancelled; a closed voucher on a consignment order; a price with no amount that AvSight retired, or whose terms a price with one holds; and, on a connection reading only for quoting, a quote AvSight won, lost or made over 180 days ago, an inventory line holding no units, a price a newer one on its terms replaced, vendor inventory AvSight made inactive or that has expired, and an order AvSight closed or cancelled, with its lines), counted within `in_avsight`"
                    },
                    "came_over_closed": {
                      "type": "integer",
                      "description": "Records apply brought over in the closed, finished or cancelled state AvSight holds them in, on their own or with the order or sale that writes them, counted within `applied`"
                    }
                  }
                }
              },
              "left_in_avsight": {
                "type": "array",
                "description": "Each AvSight object no mapping brings over, on purpose, with why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "object",
                    "source",
                    "reason",
                    "in_avsight"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "description": "The AvSight object, by its API name"
                    },
                    "source": {
                      "type": "string",
                      "description": "The AvSight object, as the org labels it"
                    },
                    "reason": {
                      "type": "string",
                      "description": "Why the migration leaves its records in AvSight"
                    },
                    "in_avsight": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Null for an object the pull never reads, AvSight's own staging rows; else every record of the object AvSight still holds, as the pull has landed them: all of them stay in AvSight"
                    }
                  }
                }
              },
              "files": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "in_avsight",
                  "fetched",
                  "waiting",
                  "too_large",
                  "refused",
                  "removed",
                  "failed",
                  "superseded",
                  "not_attachable",
                  "held",
                  "stopped",
                  "paused"
                ],
                "properties": {
                  "in_avsight": {
                    "type": "integer",
                    "description": "Every version of every file AvSight still holds, and every legacy attachment, as the pull has landed them"
                  },
                  "fetched": {
                    "type": "integer",
                    "description": "Brought over as an upload, or a version of one"
                  },
                  "waiting": {
                    "type": "integer",
                    "description": "Not brought over yet: files are still arriving while any wait, after Finish as before it, since files move no balances"
                  },
                  "too_large": {
                    "type": "integer",
                    "description": "Left in AvSight, larger than the 95 MB CorePilot keeps of one file"
                  },
                  "refused": {
                    "type": "integer",
                    "description": "Left in AvSight, which wouldn't send them to the Run As user; asked for again each day"
                  },
                  "removed": {
                    "type": "integer",
                    "description": "Deleted in AvSight, before or after the pull landed them, so there is nothing to bring over"
                  },
                  "failed": {
                    "type": "integer",
                    "description": "Their download failed every run that tried it, so they stay in AvSight for now; tried again each day while no later version of its file has come over, and not counted waiting"
                  },
                  "superseded": {
                    "type": "integer",
                    "description": "Earlier versions left in AvSight once a later version of their file came over, since adding one would make it the upload's current version: never asked for again, and counted under none of the others"
                  },
                  "not_attachable": {
                    "type": "integer",
                    "description": "Places AvSight files a file on a record that takes no files in CorePilot: the file is in Uploads, not attached there"
                  },
                  "held": {
                    "type": "integer",
                    "description": "Places AvSight files a file on a record that won't take it for now, such as one in the trash: the file is in Uploads, and attached there after a pull once the record takes it"
                  },
                  "stopped": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Why files have stopped arriving while some wait: storage is full, or AvSight isn't read or Salesforce connected; null while they arrive"
                  },
                  "paused": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Which of CorePilot's limits on the org's API calls the copy paused at while some wait, in words, for as long as it holds there: files carry on by themselves once it doesn't; null otherwise"
                  }
                },
                "description": "AvSight's files, each version counted by whether it has come over as an upload"
              },
              "values_to_map": {
                "type": "integer",
                "description": "Values a landed record carries mapped to nothing, or matched to a record since deleted: a value mapping's `to_map`"
              },
              "tie_outs": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "warehouse",
                  "condition",
                  "owner_code",
                  "receivables",
                  "deposits",
                  "purchase_orders",
                  "purchases_to_bill",
                  "purchases_billed",
                  "payables",
                  "exchange_cores",
                  "vendor_exchange_cores",
                  "investor_payables",
                  "consignor_payables"
                ],
                "description": "AvSight's units and their cost beside CorePilot's from what apply made, so the migration can be seen to tie out: AvSight's side summed over the landed lines holding units, CorePilot's over the lines apply made or linked and the pools it opened, and AvSight's own totals beyond inventory beside CorePilot's. A row whose sides differ is a discrepancy; a row with nothing on either side is left out",
                "properties": {
                  "warehouse": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "label",
                        "organization_name",
                        "in_corepilot",
                        "avsight_quantity",
                        "corepilot_quantity",
                        "avsight_value_cents",
                        "corepilot_value_cents",
                        "avsight_reported_value_cents",
                        "avsight_reported_value_comparable"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The row's identity: the CorePilot record's uuid, else AvSight's Id for the value, else `left_blank` or `none`"
                        },
                        "label": {
                          "type": "string",
                          "description": "The CorePilot record AvSight's value resolves to, by its name or code, else AvSight's own name for it, `Left blank` where its value mapping leaves it blank, or `None named in AvSight`"
                        },
                        "organization_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the organization the CorePilot record belongs to, which tells apart two named alike; null for a condition, or a row with no CorePilot record"
                        },
                        "in_corepilot": {
                          "type": "boolean",
                          "description": "Whether AvSight's value resolves in CorePilot, to a record or left blank by its value mapping; false where it resolves to none yet, so only AvSight's side can hold anything"
                        },
                        "avsight_quantity": {
                          "type": "number",
                          "description": "The units AvSight's landed inventory lines hold"
                        },
                        "corepilot_quantity": {
                          "type": "number",
                          "description": "The units on hand on the inventory lines the migration's apply made from them"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "Their cost as the migration's apply brings it over: each unit's acquisition and repair cost times its quantity in the tenant's currency, the acquisition cost left out on a line whose CorePilot inventory code holds a cost pool or is a consignment (before apply has made the code, whose owner code AvSight has as a lot purchase or a consignment), and by inventory code the remaining cost of a lot purchase apply opens a pool from"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "The acquisition and repair cost on those inventory lines, and by inventory code the remaining cost of a cost pool apply opened, in the tenant's currency"
                        },
                        "avsight_reported_value_cents": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "What AvSight itself reports the owner codes resolving here hold, their acquisition and repair cost in inventory, in the tenant's currency; null where AvSight reports neither, and on every warehouse and condition row"
                        },
                        "avsight_reported_value_comparable": {
                          "type": "boolean",
                          "description": "Whether AvSight's reported cost compares with CorePilot's: false where AvSight reports nothing, on warehouse and condition rows, and where the code holds a cost pool or a consignor's parts, whose lines' acquisition cost AvSight counts and CorePilot carries in the pool or not at all"
                        }
                      }
                    },
                    "description": "By warehouse; a cost pool sits in none"
                  },
                  "condition": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "label",
                        "organization_name",
                        "in_corepilot",
                        "avsight_quantity",
                        "corepilot_quantity",
                        "avsight_value_cents",
                        "corepilot_value_cents",
                        "avsight_reported_value_cents",
                        "avsight_reported_value_comparable"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The row's identity: the CorePilot record's uuid, else AvSight's Id for the value, else `left_blank` or `none`"
                        },
                        "label": {
                          "type": "string",
                          "description": "The CorePilot record AvSight's value resolves to, by its name or code, else AvSight's own name for it, `Left blank` where its value mapping leaves it blank, or `None named in AvSight`"
                        },
                        "organization_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the organization the CorePilot record belongs to, which tells apart two named alike; null for a condition, or a row with no CorePilot record"
                        },
                        "in_corepilot": {
                          "type": "boolean",
                          "description": "Whether AvSight's value resolves in CorePilot, to a record or left blank by its value mapping; false where it resolves to none yet, so only AvSight's side can hold anything"
                        },
                        "avsight_quantity": {
                          "type": "number",
                          "description": "The units AvSight's landed inventory lines hold"
                        },
                        "corepilot_quantity": {
                          "type": "number",
                          "description": "The units on hand on the inventory lines the migration's apply made from them"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "Their cost as the migration's apply brings it over: each unit's acquisition and repair cost times its quantity in the tenant's currency, the acquisition cost left out on a line whose CorePilot inventory code holds a cost pool or is a consignment (before apply has made the code, whose owner code AvSight has as a lot purchase or a consignment), and by inventory code the remaining cost of a lot purchase apply opens a pool from"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "The acquisition and repair cost on those inventory lines, and by inventory code the remaining cost of a cost pool apply opened, in the tenant's currency"
                        },
                        "avsight_reported_value_cents": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "What AvSight itself reports the owner codes resolving here hold, their acquisition and repair cost in inventory, in the tenant's currency; null where AvSight reports neither, and on every warehouse and condition row"
                        },
                        "avsight_reported_value_comparable": {
                          "type": "boolean",
                          "description": "Whether AvSight's reported cost compares with CorePilot's: false where AvSight reports nothing, on warehouse and condition rows, and where the code holds a cost pool or a consignor's parts, whose lines' acquisition cost AvSight counts and CorePilot carries in the pool or not at all"
                        }
                      }
                    },
                    "description": "By condition; a cost pool has none"
                  },
                  "owner_code": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "label",
                        "organization_name",
                        "in_corepilot",
                        "avsight_quantity",
                        "corepilot_quantity",
                        "avsight_value_cents",
                        "corepilot_value_cents",
                        "avsight_reported_value_cents",
                        "avsight_reported_value_comparable"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The row's identity: the CorePilot record's uuid, else AvSight's Id for the value, else `left_blank` or `none`"
                        },
                        "label": {
                          "type": "string",
                          "description": "The CorePilot record AvSight's value resolves to, by its name or code, else AvSight's own name for it, `Left blank` where its value mapping leaves it blank, or `None named in AvSight`"
                        },
                        "organization_name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The name of the organization the CorePilot record belongs to, which tells apart two named alike; null for a condition, or a row with no CorePilot record"
                        },
                        "in_corepilot": {
                          "type": "boolean",
                          "description": "Whether AvSight's value resolves in CorePilot, to a record or left blank by its value mapping; false where it resolves to none yet, so only AvSight's side can hold anything"
                        },
                        "avsight_quantity": {
                          "type": "number",
                          "description": "The units AvSight's landed inventory lines hold"
                        },
                        "corepilot_quantity": {
                          "type": "number",
                          "description": "The units on hand on the inventory lines the migration's apply made from them"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "Their cost as the migration's apply brings it over: each unit's acquisition and repair cost times its quantity in the tenant's currency, the acquisition cost left out on a line whose CorePilot inventory code holds a cost pool or is a consignment (before apply has made the code, whose owner code AvSight has as a lot purchase or a consignment), and by inventory code the remaining cost of a lot purchase apply opens a pool from"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "The acquisition and repair cost on those inventory lines, and by inventory code the remaining cost of a cost pool apply opened, in the tenant's currency"
                        },
                        "avsight_reported_value_cents": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "What AvSight itself reports the owner codes resolving here hold, their acquisition and repair cost in inventory, in the tenant's currency; null where AvSight reports neither, and on every warehouse and condition row"
                        },
                        "avsight_reported_value_comparable": {
                          "type": "boolean",
                          "description": "Whether AvSight's reported cost compares with CorePilot's: false where AvSight reports nothing, on warehouse and condition rows, and where the code holds a cost pool or a consignor's parts, whose lines' acquisition cost AvSight counts and CorePilot carries in the pool or not at all"
                        }
                      }
                    },
                    "description": "By owner code, CorePilot's inventory code"
                  },
                  "receivables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Open receivables by currency: each bill AvSight has sent owing its pre-tax total and tax less the deposit applied, a credit left out, beside the balance still owed on the bills apply made"
                  },
                  "deposits": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Open deposits by currency: the remaining balance of each deposit AvSight hasn't cancelled, and what it released to an order that no bill has taken, beside what the customer payments apply made of them have still to apply"
                  },
                  "purchase_orders": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Purchase orders still to receive by currency: on each open order AvSight holds other than a consignment, each line's quantity less what it received, at its price, leaving out Return Inventory lines, which come over as vendor returns, and Return EX Core lines, which send cores back, beside what the lines apply made on open orders still have to receive at their unit cost"
                  },
                  "purchases_to_bill": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Purchases received, not invoiced, by currency: what each purchase or repair order line of AvSight's received less what the vendor or repair shop billed, at its price or final repair cost, beside what the receipts apply made against its lines and the charges on the orders it closed have still to bill at their unit cost or final repair cost. AvSight's side leaves out what its open draft vouchers bill, consignments, orders AvSight vouchered or completed, orders it cancelled before anything on them arrived here, and charges and repair order lines on orders it still holds open"
                  },
                  "purchases_billed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Purchases billed before the cut-over, by currency: on each received purchase or repair order apply brings over whole, what each line received that the vendor or repair shop billed (all of it on a vouchered order or repair line, else up to its Quantity Paid), at its price or final repair cost, beside what the vouchers apply approved for them bill, its submitted vouchers among them, paid or not"
                  },
                  "payables": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency_code",
                        "avsight_value_cents",
                        "corepilot_value_cents"
                      ],
                      "properties": {
                        "currency_code": {
                          "type": "string",
                          "description": "The currency both sides are in: the CorePilot record's, else the tenant's"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "AvSight's total, in its own terms"
                        },
                        "corepilot_value_cents": {
                          "type": "integer",
                          "description": "CorePilot's, over the records apply made or linked"
                        }
                      }
                    },
                    "description": "Open payables by currency: what each line of AvSight's submitted payment vouchers has still to pay, its quantity to voucher less its quantity paid at its unit cost, beside the balance still owed on the approved vouchers apply made of them"
                  },
                  "exchange_cores": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "avsight_quantity",
                      "corepilot_quantity"
                    ],
                    "description": "Customer exchange cores owed",
                    "properties": {
                      "avsight_quantity": {
                        "type": "number",
                        "description": "The cores AvSight's open exchanges still have on exchange"
                      },
                      "corepilot_quantity": {
                        "type": "number",
                        "description": "The cores the exchanges apply made, still receiving, are owed and haven't had back or billed"
                      }
                    }
                  },
                  "vendor_exchange_cores": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "avsight_quantity",
                      "corepilot_quantity"
                    ],
                    "description": "Vendor exchange cores owed",
                    "properties": {
                      "avsight_quantity": {
                        "type": "number",
                        "description": "The cores AvSight's orders received on their exchange lines less those their Return EX Core lines shipped back, leaving out consignments, orders AvSight completed, and orders it cancelled before anything on them arrived here"
                      },
                      "corepilot_quantity": {
                        "type": "number",
                        "description": "The cores the vendor exchanges apply opened, still open or shipping, owe and haven't shipped back or bought"
                      }
                    }
                  },
                  "investor_payables": {
                    "type": "array",
                    "description": "What AvSight still owes each investor on its open investor payables, AvSight's figure alone: CorePilot doesn't carry it, so it is settled from AvSight before the cut-over, and CorePilot's investor statements start with the sales after the migration. A lot's migration notes name its share where its invoice lines tie a payable to it",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "label",
                        "in_corepilot",
                        "currency_code",
                        "avsight_value_cents"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The row's identity: the CorePilot company's uuid, else AvSight's Id for the account"
                        },
                        "label": {
                          "type": "string",
                          "description": "The CorePilot company the investor's account resolves to, else AvSight's name for the account, else its Id"
                        },
                        "in_corepilot": {
                          "type": "boolean",
                          "description": "Whether the investor's account resolves to a CorePilot company yet"
                        },
                        "currency_code": {
                          "type": "string",
                          "description": "The tenant's currency, which the amount is in"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "What AvSight's open investor payables, neither paid nor cancelled, still owe the investor"
                        }
                      }
                    }
                  },
                  "consignor_payables": {
                    "type": "array",
                    "description": "What AvSight's consignor payables not marked Paid or Cancelled come to for each consignor, AvSight's figure alone: CorePilot doesn't carry it, so it is settled from AvSight before the cut-over, and CorePilot's consignor statements start with the sales after the migration. A consignment's migration notes name its share where its invoice lines tie a payable to it",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "label",
                        "in_corepilot",
                        "currency_code",
                        "avsight_value_cents"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The row's identity: the CorePilot company's uuid, else AvSight's Id for the account"
                        },
                        "label": {
                          "type": "string",
                          "description": "The CorePilot company the consignor's account resolves to, else AvSight's name for the account, else its Id"
                        },
                        "in_corepilot": {
                          "type": "boolean",
                          "description": "Whether the consignor's account resolves to a CorePilot company yet"
                        },
                        "currency_code": {
                          "type": "string",
                          "description": "The tenant's currency, which the amount is in"
                        },
                        "avsight_value_cents": {
                          "type": "integer",
                          "description": "What AvSight's consignor payables not marked Paid or Cancelled come to for the consignor: each payable's Total Consignor Payable, net of its adjustments, else its Total Price"
                        }
                      }
                    }
                  }
                }
              },
              "unposted_activities": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "AvSight's activities whose Processed box is cleared, which this count takes as not yet posted to its books: movements no migrated record carries, so in neither ledger unless AvSight posts them; null until a pull has read AvSight's activities"
              },
              "activities_without_record": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "AvSight's posted activities that didn't come over, because the record they posted against didn't, or the activity itself was skipped, held as a problem or couldn't be applied. Their postings stay in AvSight's books; null until a pull has read AvSight's activities"
              },
              "history_without_record": {
                "type": "array",
                "description": "AvSight's field history entries that didn't come over, by the History object holding them: the record they changed didn't, the migration brings none of its object over, or the entry itself was skipped, held as a problem or couldn't be applied. That history stays in AvSight; a History object holding none is left out",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "count"
                  ],
                  "properties": {
                    "source": {
                      "type": "string",
                      "description": "The History object, as the org labels it"
                    },
                    "count": {
                      "type": "integer",
                      "description": "Its entries that didn't come over"
                    }
                  }
                }
              },
              "counted_at": {
                "type": "string",
                "format": "date-time",
                "description": "When the count these figures come from began reading. `values_to_map`, and why files have stopped arriving, are read as they stand"
              }
            },
            "description": "Where the migration stands, as last counted (`counted_at`): each AvSight object it maps, its records counted by how the last check judged them, and the values its records carry that no mapping settles yet. Counted after whatever moves them rather than on each read; null while nothing is counted yet, which asks for a count (`counting`). Present when `expand[]=counts` asked for it"
          },
          "push_counts": {
            "type": "object",
            "description": "The records CorePilot pushes back (companies, contacts, parts, customer quotes, sales orders, purchase orders, repair orders and their lines) changed since CorePilot became the system of record, each counted once by its last push: those whose changes AvSight took (`pushed`), those whose changes AvSight refused (`refused`), and those whose changes CorePilot held back because AvSight's Run As user can't change a field, tried again every run (`failed`), and those with a change CorePilot left unsent, having no single AvSight value to send it as or amounts that stay in CorePilot (`unsent`); the records behind each are the integration's pushes (`/salesforce_integration/avsight/pushes`). Present when `expand[]=push_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "pushed": {
                "type": "integer"
              },
              "refused": {
                "type": "integer"
              },
              "failed": {
                "type": "integer"
              },
              "unsent": {
                "type": "integer"
              }
            },
            "required": [
              "pushed",
              "refused",
              "failed",
              "unsent"
            ]
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AvsightMigrationFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "avsight_migration_file"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The file's title in AvSight, its latest landed version's; null until a version lands"
          },
          "status": {
            "type": "string",
            "enum": [
              "arriving",
              "stopped",
              "copied",
              "too_large",
              "refused",
              "removed",
              "failed",
              "not_attachable",
              "held"
            ],
            "description": "`arriving` until one of its versions comes over, as the file copy works through AvSight's files after each pull, after Finish as before it, or `stopped` while copying has stopped until someone acts, as `problem` says; `copied` once it is an upload, whatever versions still wait; `too_large`, `refused` or `failed` where AvSight keeps it, `removed` once deleted there, `not_attachable` where the record it is filed on takes no files, and `held` where that record won't take it for now (one in the trash), attached after a pull once it will, each as `problem` says"
          },
          "problem": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it isn't on the record, and what would bring it there; null while `arriving` or once `copied`"
          },
          "byte_size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Its size in bytes, as copied or as AvSight gave it; null until a download tries it"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The upload it became; null until copied"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "BillingAddress": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "country_name",
          "lines",
          "primary",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "billing_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The address as its country prints it, line by line"
          },
          "primary": {
            "type": "boolean",
            "description": "Whether this is the letterhead's address, which a new purchase order or vendor RFQ bills to; exactly one active address is primary"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "make_primary"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Bin": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "description",
          "held_from_sale",
          "inactive_at",
          "source_fields",
          "document_forms",
          "facility",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "bin"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "held_from_sale": {
            "type": "boolean",
            "description": "Whether inventory here is kept off sales orders, and out of what is available to sell"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the bin prints on, each by the `form` `POST /documents` takes"
          },
          "facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "update"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Bot": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "token_scopes",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "bot"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "token_scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "write",
                "admin",
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ]
            },
            "description": "What a token minted for it may carry: `read`, `write` where its roles write, and each grant they hold by name"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Calendar": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "kind",
          "color",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "calendar"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "shared",
              "closures"
            ],
            "description": "`shared`: Events the whole business sees, such as trade shows or audits; `closures`: Days the business is closed: on its events, everyone in its organization counts as away, or everyone when it has no organization",
            "x-enum-descriptions": [
              "Events the whole business sees, such as trade shows or audits",
              "Days the business is closed: on its events, everyone in its organization counts as away, or everyone when it has no organization"
            ],
            "x-enum-labels": [
              "Shared",
              "Closures"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "How its events are drawn, as a hex color such as `#1a56db`; null for the default"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization whose people a closures calendar puts away, or a shared calendar is kept for; null for every organization"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CalendarEvent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "came_over_from",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "calendar_event"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string",
            "description": "Its title; on a private event the reader is outside of, its show as (`Away`, `Busy` or `Free`)"
          },
          "withheld": {
            "type": "boolean",
            "description": "True on a private event the reader neither organized nor attends: its title reads its show as, its attendees stay, and its organizer, calendar, notes, location, company and record are null"
          },
          "all_day": {
            "type": "boolean"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "An all-day event's first day"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "An all-day event's last day, included"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The zone a timed event was entered in"
          },
          "show_as": {
            "type": "string",
            "enum": [
              "away",
              "busy",
              "free"
            ],
            "description": "`away`: Out: a vacation or a trip; round robin passes them by; `busy`: In, but taken, such as at a visit or an audit; `free`: Noted, taking no one's time",
            "x-enum-descriptions": [
              "Out: a vacation or a trip; round robin passes them by",
              "In, but taken, such as at a visit or an audit",
              "Noted, taking no one's time"
            ],
            "x-enum-labels": [
              "Away",
              "Busy",
              "Free"
            ]
          },
          "private": {
            "type": "boolean"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The calendar it is on; null on a personal event or where withheld"
          },
          "organizer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who made it; null where withheld"
          },
          "attendees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "Whose time it is, named even where the rest is withheld"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record it is about; null where it names none or is withheld"
          },
          "repeat": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "frequency",
              "interval",
              "weekdays",
              "until",
              "count"
            ],
            "properties": {
              "frequency": {
                "type": "string",
                "enum": [
                  "daily",
                  "weekly",
                  "monthly",
                  "yearly"
                ]
              },
              "interval": {
                "type": "integer",
                "description": "Every how many days, weeks, months or years"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "mo",
                    "tu",
                    "we",
                    "th",
                    "fr",
                    "sa",
                    "su"
                  ]
                },
                "description": "The days of the week a weekly event falls on, as `mo` or `fr`; empty for the day it starts on"
              },
              "until": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "The last day an occurrence may start on, in the event's own time zone; null where a count ends it or nothing does"
              },
              "count": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many times it happens, the first included"
              }
            },
            "description": "How it repeats, by RFC 5545's rule kept in its own time zone, so 9:00 stays 9:00 across daylight saving; null on an event that happens once"
          },
          "came_over_from": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "system_name",
              "key",
              "system"
            ],
            "properties": {
              "system_name": {
                "type": "string",
                "description": "What people call that system: AvSight for an AvSight org, else the system's name"
              },
              "key": {
                "type": "string",
                "description": "The event's own id in that system"
              },
              "system": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "That system as CorePilot's external systems list it: for AvSight, the Salesforce org's name and Id"
              }
            },
            "description": "The outside system the event came over from, such as AvSight, and its key there; null on an event made in CorePilot"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_show_as",
                    "delete",
                    "revise_occurrence",
                    "cancel_occurrence",
                    "revise_following"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_show_as": "update_calendar_event"
            }
          }
        },
        "x-area": "calendar",
        "x-role": "master_data"
      },
      "CalendarItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "key",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "source",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "occurrence",
          "came_over_from"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "calendar_item"
          },
          "kind": {
            "type": "string",
            "enum": [
              "event",
              "record_date"
            ],
            "description": "`event`: An event: time someone is away, busy or free; `record_date`: A day a record still open falls due: a promise, a quote's valid-until, a core or a unit due back, a payment due or an expiry",
            "x-enum-descriptions": [
              "An event: time someone is away, busy or free",
              "A day a record still open falls due: a promise, a quote's valid-until, a core or a unit due back, a payment due or an expiry"
            ],
            "x-enum-labels": [
              "Event",
              "Record date"
            ]
          },
          "key": {
            "type": "string",
            "description": "The item's own key: an event's uuid; an occurrence's series uuid and its `occurrence.start`, as `<uuid>/2026-12-07T14:00:00Z`; a record date's record uuid and source, as `<uuid>/promise`"
          },
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The event's uuid, a series' on each of its occurrences; null on a record date, which is its `record`'s"
          },
          "title": {
            "type": "string",
            "description": "Its title; on a private event the reader is outside of, its show as (`Away`, `Busy` or `Free`); on a record date, what falls due (`Promised`, `Valid until`, `Core due`, `Due back`, `Payment due`, `Calibration due` or `Certificate expires`)"
          },
          "withheld": {
            "type": "boolean",
            "description": "True on a private event the reader neither organized nor attends: its title reads its show as, its attendees stay, and its organizer, calendar, notes, location, company and record are null"
          },
          "all_day": {
            "type": "boolean",
            "description": "True on every record date"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "An all-day item's first day; a record date's day"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "An all-day item's last day, included; a record date's day"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The zone a timed item was entered in"
          },
          "show_as": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "away",
              "busy",
              "free",
              null
            ],
            "description": "How an event shows, as it takes people's time: `away` on every event of an active closures calendar, whatever the event says; null on a record date, which takes no one's time",
            "x-enum-descriptions": [
              "Out: a vacation or a trip; round robin passes them by",
              "In, but taken, such as at a visit or an audit",
              "Noted, taking no one's time",
              "Not set"
            ],
            "x-enum-labels": [
              "Away",
              "Busy",
              "Free",
              "Not set"
            ]
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "promise",
              "valid_until",
              "core_due",
              "due_back",
              "payment_due",
              "expiry",
              null
            ],
            "description": "Where a record date comes from; null on an event",
            "x-enum-descriptions": [
              "The day promised: to the customer on a sales order's lines and a work order, by the vendor on a purchase order's lines and a repair order",
              "The last day a customer quote, or a vendor's quote on an RFQ, holds its prices",
              "The day an exchange's core is due back: from the customer, or to the vendor",
              "The day a leased unit is due back: from the customer, or to the vendor",
              "The day an invoice's payment is due from the customer, or a voucher's to the vendor",
              "The day a tool's calibration falls due, or an active vendor certificate expires",
              "Not set"
            ],
            "x-enum-labels": [
              "Promises",
              "Valid until",
              "Core due",
              "Due back",
              "Payment due",
              "Expiries",
              "Not set"
            ]
          },
          "private": {
            "type": "boolean"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The calendar it is on; null on a personal event, a record date or where withheld"
          },
          "organizer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who made it; null on a record date or where withheld"
          },
          "attendees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "Who attends it, named even where the rest is withheld; on a closures event, the seats it puts away are everyone in its organization, so it names only those added; none on a record date"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "$ref": "#/components/schemas/VendorCertificateStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record an event is about, null where it names none or is withheld; the record a record date falls due on"
          },
          "repeat": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "frequency",
              "interval",
              "weekdays",
              "until",
              "count"
            ],
            "properties": {
              "frequency": {
                "type": "string",
                "enum": [
                  "daily",
                  "weekly",
                  "monthly",
                  "yearly"
                ]
              },
              "interval": {
                "type": "integer",
                "description": "Every how many days, weeks, months or years"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "mo",
                    "tu",
                    "we",
                    "th",
                    "fr",
                    "sa",
                    "su"
                  ]
                },
                "description": "The days of the week a weekly event falls on, as `mo` or `fr`; empty for the day it starts on"
              },
              "until": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date",
                "description": "The last day an occurrence may start on, in the event's own time zone; null where a count ends it or nothing does"
              },
              "count": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many times it happens, the first included"
              }
            },
            "description": "How it repeats, by RFC 5545's rule kept in its own time zone, so 9:00 stays 9:00 across daylight saving; null on an event that happens once"
          },
          "occurrence": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "start",
              "changed"
            ],
            "properties": {
              "start": {
                "type": "string",
                "description": "The start its series' rule gave it, which names it to `revise_occurrence`, `cancel_occurrence` and `revise_following`: a day like 2026-12-07 on an all-day series, else an instant in UTC like 2026-12-07T14:00:00Z, whatever it was changed to"
              },
              "changed": {
                "type": "boolean",
                "description": "Whether it was changed from the series alone"
              }
            },
            "description": "Which occurrence of its series it is; null on an event that happens once or a record date"
          },
          "came_over_from": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "system_name",
              "key",
              "system"
            ],
            "properties": {
              "system_name": {
                "type": "string",
                "description": "What people call that system: AvSight for an AvSight org, else the system's name"
              },
              "key": {
                "type": "string",
                "description": "The event's own id in that system"
              },
              "system": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "That system as CorePilot's external systems list it: for AvSight, the Salesforce org's name and Id"
              }
            },
            "description": "The outside system the event came over from, such as AvSight, and its key there; null on an event made in CorePilot and on a record date"
          }
        },
        "x-area": "calendar",
        "x-role": "master_data"
      },
      "Calibration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "performed_on",
          "due_on",
          "result",
          "certificate_number",
          "notes",
          "calibrated_by",
          "inventory_line",
          "employee",
          "vendor",
          "repair_order_line",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "calibration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "performed_on": {
            "type": "string",
            "format": "date"
          },
          "due_on": {
            "type": "string",
            "format": "date"
          },
          "result": {
            "type": "string",
            "enum": [
              "passed",
              "out_of_tolerance",
              "failed"
            ],
            "description": "`passed`: Found within tolerance; the tool is fit for use; `out_of_tolerance`: Found outside its tolerance when checked; `failed`: Failed calibration; the tool is not fit for use",
            "x-enum-descriptions": [
              "Found within tolerance; the tool is fit for use",
              "Found outside its tolerance when checked",
              "Failed calibration; the tool is not fit for use"
            ],
            "x-enum-labels": [
              "Passed",
              "Out of tolerance",
              "Failed"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "calibrated_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who calibrated it: the employee, or the vendor it was sent out to"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "CarrierAccount": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "account_number",
          "nickname",
          "display_name",
          "billing_postal_code",
          "billing_country_code",
          "billing_country_name",
          "inactive_at",
          "carrier",
          "company",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "carrier_account"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "account_number": {
            "type": "string"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "description": "What we call the account; null for one called by its carrier and number"
          },
          "display_name": {
            "type": "string"
          },
          "billing_postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_country_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "carrier": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Carrier": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "ship_vias",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "carrier"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "ship_vias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipVia"
            },
            "description": "Its ship vias, retired ones included, each as `/ship_vias` lists it"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Certificate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "form",
          "state",
          "signed_at",
          "signature_meaning",
          "signed_by_hand",
          "voided_at",
          "void_reason",
          "release",
          "release_lines",
          "signer_skill",
          "signed_by",
          "document",
          "voided_by",
          "replaces",
          "replaced_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "certificate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "form": {
            "type": "string",
            "enum": [
              "conformance",
              "material_certification",
              "true_copy",
              "split_statement"
            ],
            "description": "`conformance`: A Certificate of Conformance: the units it lists conform to their order; `material_certification`: An ATA Spec 106 material certification: the box-numbered form attesting to units sharing one order line, one trace and one new-or-used status; `true_copy`: A certified true copy: our statement that the attached copy of a unit's received 8130-3 or Form 1 is true to the original on file, for a unit shipping the whole quantity the tag was received for; `split_statement`: A split shipment statement: part of a unit's received 8130-3 or Form 1 quantity ships under a copy of the tag, with this certificate's identifier as its new form tracking number",
            "x-enum-descriptions": [
              "A Certificate of Conformance: the units it lists conform to their order",
              "An ATA Spec 106 material certification: the box-numbered form attesting to units sharing one order line, one trace and one new-or-used status",
              "A certified true copy: our statement that the attached copy of a unit's received 8130-3 or Form 1 is true to the original on file, for a unit shipping the whole quantity the tag was received for",
              "A split shipment statement: part of a unit's received 8130-3 or Form 1 quantity ships under a copy of the tag, with this certificate's identifier as its new form tracking number"
            ],
            "x-enum-labels": [
              "Certificate of Conformance",
              "Material Certification (ATA Spec 106)",
              "Certified True Copy",
              "Split Shipment Statement"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "draft",
              "signed",
              "voided"
            ],
            "description": "`draft`: Drafted and awaiting its signer's signature; it can still change or be deleted; `signed`: Signed, and frozen as signed: a correction voids it and issues another; `voided`: Signed, then voided with a reason; it stays on file",
            "x-enum-descriptions": [
              "Drafted and awaiting its signer's signature; it can still change or be deleted",
              "Signed, and frozen as signed: a correction voids it and issues another",
              "Signed, then voided with a reason; it stays on file"
            ],
            "x-enum-labels": [
              "Draft",
              "Signed",
              "Voided"
            ]
          },
          "signed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "signature_meaning": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the signer attested by signing, printed beside the signature"
          },
          "signed_by_hand": {
            "type": "boolean",
            "description": "Whether it was printed and signed in ink, then marked signed"
          },
          "voided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "void_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "release": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "release_lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReleaseLineStub"
            },
            "description": "The part lines it certifies, in the order they were named"
          },
          "signer_skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill its form's settings name: only an employee holding it, unexpired, may sign; null lets any active employee sign"
          },
          "signed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The employee who signed it, in their own session or by hand on the printed copy"
          },
          "document": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The form as signed, the one to open: the generation made at signing, never a duplicate printed since, or once voided, its void copy; null while a draft"
          },
          "voided_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "replaces": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The voided certificate this one was issued to replace"
          },
          "replaced_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The certificate issued in this one's place once it was voided"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "sign",
                    "mark_signed_by_hand",
                    "delete",
                    "void",
                    "reissue"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "warehouse",
        "x-role": "master_data"
      },
      "CertificateStandard": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "certificate_standard"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ChannelTally": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "channel",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "channel_tally"
          },
          "channel": {
            "type": "string",
            "enum": [
              "manual",
              "email",
              "phone",
              "chat",
              "ils",
              "partsbase",
              "marketplace"
            ],
            "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
            "x-enum-descriptions": [
              "Entered by hand, with no inbound request behind it",
              "The customer's request came in by email",
              "The customer asked on a phone call, logged as a message",
              "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
              "The request came through ILS, the Inventory Locator Service",
              "The request came through PartsBase",
              "The request came through another parts marketplace"
            ],
            "x-enum-labels": [
              "Manual",
              "Email",
              "Phone",
              "Chat",
              "ILS",
              "PartsBase",
              "Marketplace"
            ]
          },
          "label": {
            "type": "string"
          },
          "requests": {
            "type": "integer",
            "description": "Requests received"
          },
          "quoted": {
            "type": "integer",
            "description": "Requests sent with a price"
          },
          "no_quote": {
            "type": "integer",
            "description": "Requests that priced nothing and answered something No quote"
          },
          "sent": {
            "type": "integer",
            "description": "Requests whose quote was sent"
          },
          "won": {
            "type": "integer",
            "description": "Sent quotes converted to an order"
          },
          "lost": {
            "type": "integer",
            "description": "Sent quotes marked lost and not won"
          },
          "open": {
            "type": "integer",
            "description": "Sent quotes neither won nor lost"
          },
          "win_rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Won over sent, from 0 to 1; null where none was sent"
          }
        },
        "x-area": "selling",
        "x-role": "report"
      },
      "Charge": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "revenue_purpose",
          "expense_purpose",
          "cost_treatment",
          "default_price_cents",
          "percent",
          "currency_code",
          "inactive_at",
          "tax_category",
          "revenue_ledger_account",
          "expense_ledger_account",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "charge"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ],
            "description": "`inventory_acquisition`: What a unit cost to buy, held while it is on the shelf.; `inventory_repair`: Repair spend capitalised into a unit we own.; `cogs_acquisition`: Acquisition cost relieved from inventory when a unit ships.; `cogs_repair`: Capitalised repair cost relieved from inventory when a unit ships.; `revenue`: Parts invoiced to a customer.; `freight_revenue`: Freight billed to a customer.; `non_inventory_expense`: Purchases expensed on receipt rather than held as inventory.; `freight_expense`: Freight a vendor bills us on a purchase or repair.; `rounding`: Sub-cent remainders left over when an amount is split across lines.; `inventory_adjustment`: Quantity or value corrections made outside a sale or a receipt.; `opening_balance_equity`: Inventory brought in from another system, as it stood on the day these books took it over.; `capitalized_cost`: Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.; `unbilled_expense`: Costs booked to a record that will never be billed on.; `credit_card_fee_revenue`: Card surcharges billed to a customer.; `wire_transfer_fee_revenue`: Wire-transfer fees billed to a customer.; `core_charge_revenue`: Core charges billed when a customer's core never comes back.; `sales_tax_payable`: Tax collected on an invoice and owed to the authority.; `accounts_receivable`: Owed to us on invoices we have sent.; `accounts_payable`: Owed by us on vouchers we have approved.; `vouchers_payable`: Received but not yet invoiced by the vendor.; `voucher_variance`: Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.; `fx_gain_loss`: What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.; `customer_deposits`: Money taken from a customer before anything ships.; `consignor_accrual`: The consignor's share, accrued as their inventory sells.; `consignor_payable`: The accrued share once a statement makes it payable.; `investor_expense`: An investor's share of the margin on inventory we own, expensed as it sells.; `investor_accrual`: An investor's share, accrued as the inventory they hold a claim on sells.; `investor_payable`: An investor's accrued share once a statement makes it payable.; `repair_expense`: Repair charges expensed rather than capitalised into a unit.; `exchange_core_repair`: Repair spent on a core coming back from an exchange.; `exchange_core_awaiting`: Cost parked on an exchange sale until the customer's core comes back.; `rma_clearing`: Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.; `repair_inventory_accrual`: Repair work received but not yet invoiced by the shop.; `wo_wip_parts`: Parts issued to an open work order.; `wo_wip_labor`: Labor booked to an open work order.; `wo_wip_misc_charge`: Other charges booked to an open work order.; `teardown_wip`: Cost carried while a unit is being torn down.; `wo_revenue`: Work orders invoiced to a customer.; `wo_revenue_labor`: The labor share of an invoiced work order.; `wo_revenue_parts`: The parts share of an invoiced work order.; `wo_cogs`: Work-order cost relieved from WIP at invoice.; `wo_cogs_labor`: The labor share of work-order cost.; `wo_cogs_parts`: The parts share of work-order cost.; `wo_cogs_misc_charge`: The other-charges share of work-order cost.; `wo_labor`: Labor spent on work orders that never reaches WIP.; `wo_warranty_expense`: Rework done under warranty, at our cost.; `inventory_on_lease`: Cost of our units out on lease, parked on each lease until the unit comes back.; `lease_revenue`: Lease and rental billing.; `lease_cogs`: Cost of the asset earning that lease revenue.; `lease_expense`: Rent paid to vendors for units we lease in, as their bills are vouchered.",
            "x-enum-descriptions": [
              "What a unit cost to buy, held while it is on the shelf.",
              "Repair spend capitalised into a unit we own.",
              "Acquisition cost relieved from inventory when a unit ships.",
              "Capitalised repair cost relieved from inventory when a unit ships.",
              "Parts invoiced to a customer.",
              "Freight billed to a customer.",
              "Purchases expensed on receipt rather than held as inventory.",
              "Freight a vendor bills us on a purchase or repair.",
              "Sub-cent remainders left over when an amount is split across lines.",
              "Quantity or value corrections made outside a sale or a receipt.",
              "Inventory brought in from another system, as it stood on the day these books took it over.",
              "Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.",
              "Costs booked to a record that will never be billed on.",
              "Card surcharges billed to a customer.",
              "Wire-transfer fees billed to a customer.",
              "Core charges billed when a customer's core never comes back.",
              "Tax collected on an invoice and owed to the authority.",
              "Owed to us on invoices we have sent.",
              "Owed by us on vouchers we have approved.",
              "Received but not yet invoiced by the vendor.",
              "Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.",
              "What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.",
              "Money taken from a customer before anything ships.",
              "The consignor's share, accrued as their inventory sells.",
              "The accrued share once a statement makes it payable.",
              "An investor's share of the margin on inventory we own, expensed as it sells.",
              "An investor's share, accrued as the inventory they hold a claim on sells.",
              "An investor's accrued share once a statement makes it payable.",
              "Repair charges expensed rather than capitalised into a unit.",
              "Repair spent on a core coming back from an exchange.",
              "Cost parked on an exchange sale until the customer's core comes back.",
              "Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.",
              "Repair work received but not yet invoiced by the shop.",
              "Parts issued to an open work order.",
              "Labor booked to an open work order.",
              "Other charges booked to an open work order.",
              "Cost carried while a unit is being torn down.",
              "Work orders invoiced to a customer.",
              "The labor share of an invoiced work order.",
              "The parts share of an invoiced work order.",
              "Work-order cost relieved from WIP at invoice.",
              "The labor share of work-order cost.",
              "The parts share of work-order cost.",
              "The other-charges share of work-order cost.",
              "Labor spent on work orders that never reaches WIP.",
              "Rework done under warranty, at our cost.",
              "Cost of our units out on lease, parked on each lease until the unit comes back.",
              "Lease and rental billing.",
              "Cost of the asset earning that lease revenue.",
              "Rent paid to vendors for units we lease in, as their bills are vouchered."
            ],
            "x-enum-labels": [
              "Inventory – Acquisition",
              "Inventory – Repair",
              "COGS – Acquisition",
              "COGS – Repair",
              "Sales Revenue",
              "Freight Revenue",
              "Non-Inventory Expense",
              "Freight Expense",
              "Rounding Allowance",
              "Inventory Adjustment",
              "Opening Balance Equity",
              "Capitalized Cost",
              "Unbilled Expense",
              "Credit Card Fee Revenue",
              "Wire Transfer Fee Revenue",
              "Core Charge Revenue",
              "Sales Tax Payable",
              "Accounts Receivable",
              "Accounts Payable",
              "Vouchers Payable",
              "Voucher Variance",
              "Exchange Gain/Loss",
              "Customer Deposits",
              "Consignor Accrual",
              "Consignor Payable",
              "Investor Expense",
              "Investor Accrual",
              "Investor Payable",
              "Repair Expense",
              "Exchange Core Repair",
              "Exchange Cores Awaiting Return",
              "RMA Clearing",
              "Repair Inventory Accrual",
              "Work Order WIP – Parts",
              "Work Order WIP – Labor",
              "Work Order WIP – Misc Charges",
              "Teardown WIP",
              "Work Order Revenue",
              "Work Order Revenue – Labor",
              "Work Order Revenue – Parts",
              "Work Order COGS",
              "Work Order COGS – Labor",
              "Work Order COGS – Parts",
              "Work Order COGS – Misc Charges",
              "Work Order Labor",
              "Work Order Warranty Expense",
              "Inventory on Lease",
              "Lease Revenue",
              "Lease COGS",
              "Lease Expense"
            ]
          },
          "expense_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ],
            "description": "`inventory_acquisition`: What a unit cost to buy, held while it is on the shelf.; `inventory_repair`: Repair spend capitalised into a unit we own.; `cogs_acquisition`: Acquisition cost relieved from inventory when a unit ships.; `cogs_repair`: Capitalised repair cost relieved from inventory when a unit ships.; `revenue`: Parts invoiced to a customer.; `freight_revenue`: Freight billed to a customer.; `non_inventory_expense`: Purchases expensed on receipt rather than held as inventory.; `freight_expense`: Freight a vendor bills us on a purchase or repair.; `rounding`: Sub-cent remainders left over when an amount is split across lines.; `inventory_adjustment`: Quantity or value corrections made outside a sale or a receipt.; `opening_balance_equity`: Inventory brought in from another system, as it stood on the day these books took it over.; `capitalized_cost`: Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.; `unbilled_expense`: Costs booked to a record that will never be billed on.; `credit_card_fee_revenue`: Card surcharges billed to a customer.; `wire_transfer_fee_revenue`: Wire-transfer fees billed to a customer.; `core_charge_revenue`: Core charges billed when a customer's core never comes back.; `sales_tax_payable`: Tax collected on an invoice and owed to the authority.; `accounts_receivable`: Owed to us on invoices we have sent.; `accounts_payable`: Owed by us on vouchers we have approved.; `vouchers_payable`: Received but not yet invoiced by the vendor.; `voucher_variance`: Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.; `fx_gain_loss`: What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.; `customer_deposits`: Money taken from a customer before anything ships.; `consignor_accrual`: The consignor's share, accrued as their inventory sells.; `consignor_payable`: The accrued share once a statement makes it payable.; `investor_expense`: An investor's share of the margin on inventory we own, expensed as it sells.; `investor_accrual`: An investor's share, accrued as the inventory they hold a claim on sells.; `investor_payable`: An investor's accrued share once a statement makes it payable.; `repair_expense`: Repair charges expensed rather than capitalised into a unit.; `exchange_core_repair`: Repair spent on a core coming back from an exchange.; `exchange_core_awaiting`: Cost parked on an exchange sale until the customer's core comes back.; `rma_clearing`: Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.; `repair_inventory_accrual`: Repair work received but not yet invoiced by the shop.; `wo_wip_parts`: Parts issued to an open work order.; `wo_wip_labor`: Labor booked to an open work order.; `wo_wip_misc_charge`: Other charges booked to an open work order.; `teardown_wip`: Cost carried while a unit is being torn down.; `wo_revenue`: Work orders invoiced to a customer.; `wo_revenue_labor`: The labor share of an invoiced work order.; `wo_revenue_parts`: The parts share of an invoiced work order.; `wo_cogs`: Work-order cost relieved from WIP at invoice.; `wo_cogs_labor`: The labor share of work-order cost.; `wo_cogs_parts`: The parts share of work-order cost.; `wo_cogs_misc_charge`: The other-charges share of work-order cost.; `wo_labor`: Labor spent on work orders that never reaches WIP.; `wo_warranty_expense`: Rework done under warranty, at our cost.; `inventory_on_lease`: Cost of our units out on lease, parked on each lease until the unit comes back.; `lease_revenue`: Lease and rental billing.; `lease_cogs`: Cost of the asset earning that lease revenue.; `lease_expense`: Rent paid to vendors for units we lease in, as their bills are vouchered.",
            "x-enum-descriptions": [
              "What a unit cost to buy, held while it is on the shelf.",
              "Repair spend capitalised into a unit we own.",
              "Acquisition cost relieved from inventory when a unit ships.",
              "Capitalised repair cost relieved from inventory when a unit ships.",
              "Parts invoiced to a customer.",
              "Freight billed to a customer.",
              "Purchases expensed on receipt rather than held as inventory.",
              "Freight a vendor bills us on a purchase or repair.",
              "Sub-cent remainders left over when an amount is split across lines.",
              "Quantity or value corrections made outside a sale or a receipt.",
              "Inventory brought in from another system, as it stood on the day these books took it over.",
              "Cost added to a pool by hand — labor, storage, freight — offsetting the account it was first expensed to.",
              "Costs booked to a record that will never be billed on.",
              "Card surcharges billed to a customer.",
              "Wire-transfer fees billed to a customer.",
              "Core charges billed when a customer's core never comes back.",
              "Tax collected on an invoice and owed to the authority.",
              "Owed to us on invoices we have sent.",
              "Owed by us on vouchers we have approved.",
              "Received but not yet invoiced by the vendor.",
              "Difference between a receipt's cost and the vendor's invoice that neither the shelf nor a sale could take.",
              "What a currency's move between the day goods landed and the day the vendor billed them did to what we owe.",
              "Money taken from a customer before anything ships.",
              "The consignor's share, accrued as their inventory sells.",
              "The accrued share once a statement makes it payable.",
              "An investor's share of the margin on inventory we own, expensed as it sells.",
              "An investor's share, accrued as the inventory they hold a claim on sells.",
              "An investor's accrued share once a statement makes it payable.",
              "Repair charges expensed rather than capitalised into a unit.",
              "Repair spent on a core coming back from an exchange.",
              "Cost parked on an exchange sale until the customer's core comes back.",
              "Cost of returned units received and not yet credited; released when the credit memo sends or the return closes.",
              "Repair work received but not yet invoiced by the shop.",
              "Parts issued to an open work order.",
              "Labor booked to an open work order.",
              "Other charges booked to an open work order.",
              "Cost carried while a unit is being torn down.",
              "Work orders invoiced to a customer.",
              "The labor share of an invoiced work order.",
              "The parts share of an invoiced work order.",
              "Work-order cost relieved from WIP at invoice.",
              "The labor share of work-order cost.",
              "The parts share of work-order cost.",
              "The other-charges share of work-order cost.",
              "Labor spent on work orders that never reaches WIP.",
              "Rework done under warranty, at our cost.",
              "Cost of our units out on lease, parked on each lease until the unit comes back.",
              "Lease and rental billing.",
              "Cost of the asset earning that lease revenue.",
              "Rent paid to vendors for units we lease in, as their bills are vouchered."
            ],
            "x-enum-labels": [
              "Inventory – Acquisition",
              "Inventory – Repair",
              "COGS – Acquisition",
              "COGS – Repair",
              "Sales Revenue",
              "Freight Revenue",
              "Non-Inventory Expense",
              "Freight Expense",
              "Rounding Allowance",
              "Inventory Adjustment",
              "Opening Balance Equity",
              "Capitalized Cost",
              "Unbilled Expense",
              "Credit Card Fee Revenue",
              "Wire Transfer Fee Revenue",
              "Core Charge Revenue",
              "Sales Tax Payable",
              "Accounts Receivable",
              "Accounts Payable",
              "Vouchers Payable",
              "Voucher Variance",
              "Exchange Gain/Loss",
              "Customer Deposits",
              "Consignor Accrual",
              "Consignor Payable",
              "Investor Expense",
              "Investor Accrual",
              "Investor Payable",
              "Repair Expense",
              "Exchange Core Repair",
              "Exchange Cores Awaiting Return",
              "RMA Clearing",
              "Repair Inventory Accrual",
              "Work Order WIP – Parts",
              "Work Order WIP – Labor",
              "Work Order WIP – Misc Charges",
              "Teardown WIP",
              "Work Order Revenue",
              "Work Order Revenue – Labor",
              "Work Order Revenue – Parts",
              "Work Order COGS",
              "Work Order COGS – Labor",
              "Work Order COGS – Parts",
              "Work Order COGS – Misc Charges",
              "Work Order Labor",
              "Work Order Warranty Expense",
              "Inventory on Lease",
              "Lease Revenue",
              "Lease COGS",
              "Lease Expense"
            ]
          },
          "cost_treatment": {
            "type": "string",
            "enum": [
              "expense"
            ],
            "description": "`expense`: Its cost is expensed, never added to inventory",
            "x-enum-descriptions": [
              "Its cost is expensed, never added to inventory"
            ],
            "x-enum-labels": [
              "Expense"
            ]
          },
          "default_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "percent": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tax_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "expense_ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Clause": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "body",
          "url",
          "default_record_types",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "clause"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "default_record_types": {
            "type": "array",
            "description": "The kinds of record that get this clause when one is created",
            "items": {
              "type": "string",
              "enum": [
                "certificate",
                "consignor_statement",
                "customer_exchange",
                "customer_lease",
                "customer_quote",
                "customer_return",
                "inventory_line",
                "investor_statement",
                "invoice",
                "manifest",
                "purchase_order",
                "receipt",
                "rejection",
                "release",
                "repair_order",
                "sales_order",
                "vendor_exchange",
                "vendor_lease",
                "vendor_return",
                "vendor_rfq",
                "bin",
                "work_order",
                "work_order_task"
              ],
              "x-enum-descriptions": [
                "A new certificate",
                "A new consignor statement",
                "A new customer exchange",
                "A new customer lease",
                "A new customer quote",
                "A new customer return",
                "A new inventory line",
                "A new investor statement",
                "A new invoice",
                "A new manifest",
                "A new purchase order",
                "A new receipt",
                "A new rejection",
                "A new release",
                "A new repair order",
                "A new sales order",
                "A new vendor exchange",
                "A new vendor lease",
                "A new vendor return",
                "A new vendor RFQ",
                "A new bin",
                "A new work order",
                "A new work order task"
              ],
              "x-enum-labels": [
                "Certificate",
                "Consignor statement",
                "Customer exchange",
                "Customer lease",
                "Customer quote",
                "Customer return",
                "Inventory line",
                "Investor statement",
                "Invoice",
                "Manifest",
                "Purchase order",
                "Receipt",
                "Rejection",
                "Release",
                "Repair order",
                "Sales order",
                "Vendor exchange",
                "Vendor lease",
                "Vendor return",
                "Vendor RFQ",
                "Bin",
                "Work order",
                "Work order task"
              ]
            }
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CombinedTaxRate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "kind",
          "statement",
          "print_detail",
          "applies_to_quotes",
          "applies_to_sales_orders",
          "percentage",
          "rates",
          "inactive_at",
          "tax_origin",
          "tax_destination",
          "tax_category",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "combined_tax_rate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "sales_tax",
              "vat",
              "gst",
              "municipal",
              "exempt"
            ],
            "x-enum-labels": [
              "Sales tax",
              "VAT",
              "GST",
              "Municipal",
              "Exempt"
            ]
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          },
          "print_detail": {
            "type": "boolean"
          },
          "applies_to_quotes": {
            "type": "boolean"
          },
          "applies_to_sales_orders": {
            "type": "boolean"
          },
          "percentage": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "rates": {
            "type": "array",
            "description": "Every rate of the code in stacking order, retired ones included. A write sends the whole set: a row names its rate by uuid, or else by name, or adds one, and the names are judged as a set, so rates may trade them; a rate left out is deleted (settings:manage), or retired where a line tax used it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "name",
                "percentage",
                "compound",
                "ledger_account",
                "active"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": "string",
                  "format": "decimal"
                },
                "compound": {
                  "type": "boolean",
                  "description": "Taxed on the rates before it as well as the price"
                },
                "ledger_account": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CodedStub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "active": {
                  "type": "boolean",
                  "description": "False for a retired rate, which keeps its place and is left out of the sum; a write sends false to retire one, true to bring it back"
                }
              }
            }
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tax_origin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "quickbooks_assignment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "quickbooks_id",
              "origin"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "quickbooks_id": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "enum": [
                  "matched",
                  "created",
                  "manual"
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "rates_in_use": {
            "type": "array",
            "description": "The code's rates a line tax still uses, each with why it can't be deleted: a write leaving one out retires it instead. Present when `expand[]=rates_in_use` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "reason"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CompanyAddress": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "billing",
          "primary_shipping",
          "primary_billing",
          "inactive_at",
          "country_name",
          "source_fields",
          "company",
          "tax_destination",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "company_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "billing": {
            "type": "boolean"
          },
          "primary_shipping": {
            "type": "boolean"
          },
          "primary_billing": {
            "type": "boolean"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "country_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "make_primary"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "Company": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "trading_name",
          "legal_name",
          "code",
          "cage_code",
          "tax_id",
          "website",
          "phone",
          "fax",
          "email_address",
          "notes",
          "inactive_at",
          "source_fields",
          "roles",
          "vendor_approval",
          "vendor_approval_refusals",
          "vendor_currency_code",
          "migration_hold",
          "unsent_to_avsight",
          "account_owner",
          "segments",
          "primary_billing_address",
          "primary_shipping_address",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "company"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "trading_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer",
                "vendor"
              ],
              "x-enum-descriptions": [
                "A company we sell to",
                "A company we buy from or send repairs to"
              ],
              "x-enum-labels": [
                "Customer",
                "Vendor"
              ]
            },
            "description": "`customer`: A company we sell to; `vendor`: A company we buy from or send repairs to"
          },
          "vendor_approval": {
            "type": [
              "string",
              "null"
            ],
            "description": "How the company stands as a vendor, in words, as every vendor picker says it; null where it isn't a vendor"
          },
          "vendor_approval_refusals": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "purchase_orders": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "repair_orders": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "purchase_orders",
              "repair_orders"
            ],
            "additionalProperties": false,
            "description": "Why the company's vendor approval doesn't cover each kind of order today, null where it does; the parts an order carries are checked when it is committed. Null where the company isn't a vendor"
          },
          "vendor_currency_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The currency the company's vendor terms name, which a price from it takes unless another is named; null where they name none, so the account's is taken, or where the company isn't a vendor"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the company came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "unsent_to_avsight": {
            "type": "boolean",
            "description": "Whether AvSight, keeping the records, doesn't hold the customer yet, so the first quote sent to it makes it there; false for a company that isn't a customer"
          },
          "account_owner": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "primary_billing_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "$ref": "#/components/schemas/CompanyAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address the company is billed at, where it has one"
          },
          "primary_shipping_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "$ref": "#/components/schemas/CompanyAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The address the company ships to and from, where it has one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "update"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "overview_counts": {
            "type": "object",
            "description": "What is on file for the company: its customer's tax exemptions in force today, and the contacts at it who receive its invoices. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "tax_exemptions": {
                "type": "integer"
              },
              "invoice_recipients": {
                "type": "integer"
              }
            },
            "required": [
              "tax_exemptions",
              "invoice_recipients"
            ]
          },
          "contacts": {
            "$ref": "#/components/schemas/ContactList",
            "description": "Present when `expand[]=contacts` asked for it: the first page"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Customer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present when `expand[]=customer` asked for it"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Vendor"
              },
              {
                "type": "null"
              }
            ],
            "description": "Present when `expand[]=vendor` asked for it"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "CompanySegment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "company_segment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ConditionAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace_condition",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "condition_answer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Condition": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "standard_code",
          "position",
          "warranty_days",
          "inactive_at",
          "requirements",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "condition"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "standard_code": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The warranty we give on a sale in this condition, in days from shipment, which a line set to it takes where the line states no term or still states the old condition's: null for none to offer, and 0 for none (as is)"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The standing requirements a unit received in the condition is checked against"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ConditionListing": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace",
          "condition",
          "marketplace_condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "condition_listing"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ConsignorStatement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "consignor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "consignor_statement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "cancelled"
            ],
            "description": "`draft`: Being prepared; its lines can still change; `sent`: Sent to the payee and final; what it nets is payable; `cancelled`: Called off; nothing on it is payable",
            "x-enum-descriptions": [
              "Being prepared; its lines can still change",
              "Sent to the payee and final; what it nets is payable",
              "Called off; nothing on it is payable"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "net_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "line_count": {
            "type": "integer",
            "description": "The entries the statement settles"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "editable": {
            "type": "boolean"
          },
          "paid_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "balance_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "settlement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unpaid",
              "partially_paid",
              "paid",
              "overpaid",
              "credited",
              "corrected",
              null
            ],
            "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
            "x-enum-descriptions": [
              "Owed in full: nothing paid yet",
              "Some of it paid, a balance left",
              "Payments cleared the balance",
              "Payments came to more than was owed",
              "Credits cleared the balance with no payment",
              "Corrections cleared the balance with no payment or credit",
              "Not set"
            ],
            "x-enum-labels": [
              "Unpaid",
              "Partially paid",
              "Paid",
              "Overpaid",
              "Credited",
              "Corrected",
              "Not set"
            ]
          },
          "inventory_name": {
            "type": "string"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the statement prints on, each by the `form` `POST /documents` takes"
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /consignor_statements/{uuid}/email` would offer to send it to: the consignor's active contacts who receive statements; while it has none, its primary contact, else the consignor's own email address; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /consignor_statements/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the consignor statement"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /consignor_statements/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the consignor statement",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The consignor statement's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /consignor_statements/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the consignor statement",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "consignor_statement",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the consignor statement sends, each attaching its own PDF (`consignor_statement` the Consignor Statement); `kind` names it to send it again. Null for a reply sent in the consignor statement's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "statement_recipients_missing": {
            "type": "boolean",
            "description": "On a statement out of the trash and not cancelled, whether no active contact at the consignor receives statements, which `PATCH /contacts/{uuid}`'s `receives_statements` flags"
          },
          "consignor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "participation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryParticipationStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participation the statement settles"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "email",
                    "cancel",
                    "record_payment",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "record_payment": "create_vendor_payment"
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /consignor_statements/{uuid}/email` can send, each template filled from the consignor statement, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "consignor_statement"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the consignor statement sends, each attaching its own PDF (`consignor_statement` the Consignor Statement); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the consignor statement, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "statement_date",
                                            "net",
                                            "balance_due",
                                            "inventory_name",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the consignor statement, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "statement_date",
                                                "net",
                                                "balance_due",
                                                "inventory_name",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "statement_date",
                                                            "net",
                                                            "balance_due",
                                                            "inventory_name",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "statement_date",
                          "net",
                          "balance_due",
                          "inventory_name",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this consignor statement"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /consignor_statements/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/ConsignorStatementLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "money",
        "x-role": "document"
      },
      "ConsignorStatementLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "consignor_statement_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "accrual",
              "value_adjustment"
            ]
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "settled_on": {
            "type": "string",
            "format": "date"
          },
          "sale_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the consignor statement's"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of the unit it settles; null where its entry settles no unit"
          },
          "reference": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; an AvSight migration's own stub where it is one; a CorePilot legacy migration's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an import's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a consignor statement's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a vendor lease's own stub where it is one; a voucher's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one; a work order's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "Contact": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "salutation",
          "first_name",
          "last_name",
          "email_address",
          "title",
          "department",
          "phone",
          "mobile",
          "fax",
          "birthdate",
          "notes",
          "primary",
          "receives_invoices",
          "receives_statements",
          "inactive_at",
          "source_fields",
          "name",
          "migration_hold",
          "unsent_to_avsight",
          "company",
          "contact_roles",
          "linked_companies",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "contact"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "salutation": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": "string"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "department": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "mobile": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "birthdate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "primary": {
            "type": "boolean"
          },
          "receives_invoices": {
            "type": "boolean"
          },
          "receives_statements": {
            "type": "boolean"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "name": {
            "type": "string"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the contact came from holds it, refusing a change to its name, title, department, how to reach it, its company or whether it is active while that system is the system of record; null for one no outside system holds"
          },
          "unsent_to_avsight": {
            "type": "boolean",
            "description": "Whether AvSight, keeping the records, doesn't hold the contact yet, so the first quote sent to it makes it there; false for a contact at no customer"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact_roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "linked_companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "update",
                    "make_primary"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "ContactRole": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "contact_role"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Conversation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "subject",
          "label",
          "purpose",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "conversation"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject it started with; null for one that had none"
          },
          "label": {
            "type": "string",
            "description": "What the Inbox calls it: its subject, or `(no subject)`"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "rfq",
              "replies"
            ],
            "description": "What the address it arrived at is for: `rfq` for requests for quote, `replies` for email sent from Terminal and the replies to it",
            "x-enum-descriptions": [
              "Requests for quote, arriving at an RFQ intake address",
              "Email sent from Terminal, and the replies arriving at the address it gave to reply to"
            ],
            "x-enum-labels": [
              "RFQ intake",
              "Replies to sent email"
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "CorepilotLegacyMigration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "system_of_record_switched_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "corepilot_legacy_migration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The migration's, as its events name it"
          },
          "system_of_record_switched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When CorePilot took CorePilot legacy's place as the system of record; null while CorePilot legacy keeps the records"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        }
      },
      "CorepilotLegacyMigrationFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "corepilot_legacy_migration_file"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The file's name in CorePilot legacy; null where legacy kept none"
          },
          "status": {
            "type": "string",
            "enum": [
              "arriving",
              "stopped",
              "copied",
              "held",
              "on_record",
              "in_uploads",
              "too_large",
              "removed",
              "failed",
              "superseded",
              "left_out"
            ],
            "description": "`arriving` until the file copy reaches it, or `stopped` while copying has stopped until someone acts, as `problem` says; `copied` once it is an upload waiting for the record it is filed on to come over, and attached there at the next copy after; `held` in Uploads while that record won't take it (one in the trash); `on_record` once attached there; `in_uploads` where it stays in Uploads for good, because legacy kept it on a company rather than a record or the record it names can't hold it; `too_large`, `removed` or `failed` where CorePilot legacy keeps it; `superseded` for a PDF legacy made again and never sent, so it stays there; and `left_out` where it isn't filed here: it was only on emails that stay in CorePilot legacy, legacy took it off the record before the record came over, or it came over as an organization's logo or a user's avatar; each as `problem` says"
          },
          "problem": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it isn't on the record, and what would bring it there; null while `arriving`, once `copied` or `on_record`, or `in_uploads` for a file legacy kept on a company"
          },
          "byte_size": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Its size in bytes, as copied or as CorePilot legacy recorded it"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The upload it became; null until copied"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Country": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "country"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Currency": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name",
          "exponent"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "currency"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "exponent": {
            "type": "number"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Customer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "currency_code",
          "currency_exponent",
          "credit_limit_cents",
          "credit_hold",
          "email_invoices",
          "ship_complete",
          "default_billing_party",
          "shipping_instructions",
          "wire_transfer_fee_cents",
          "inactive_at",
          "credit_card_fee_percentage",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "tax_destination",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer"
          },
          "currency_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`, or of the account's currency when it is null"
          },
          "credit_limit_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "credit_hold": {
            "type": "boolean"
          },
          "email_invoices": {
            "type": "boolean"
          },
          "ship_complete": {
            "type": "boolean",
            "description": "Each sales order goes in one release: Generate release waits until everything left on it can go, and the release can't be split or shipped short"
          },
          "default_billing_party": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "shipper",
              "recipient",
              "third_party",
              "collect",
              "on_invoice",
              null
            ],
            "description": "`shipper`: Prepaid: the shipper pays the carrier; `recipient`: Billed to the recipient's own carrier account; `third_party`: Billed to a third party's carrier account; `collect`: Collect: the recipient pays the carrier on delivery; `on_invoice`: Prepaid and added: the shipper pays and bills the freight on its invoice",
            "x-enum-descriptions": [
              "Prepaid: the shipper pays the carrier",
              "Billed to the recipient's own carrier account",
              "Billed to a third party's carrier account",
              "Collect: the recipient pays the carrier on delivery",
              "Prepaid and added: the shipper pays and bills the freight on its invoice",
              "Not set"
            ],
            "x-enum-labels": [
              "Shipper",
              "Recipient",
              "Third party",
              "Collect",
              "On invoice",
              "Not set"
            ]
          },
          "shipping_instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "wire_transfer_fee_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "credit_card_fee_percentage": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferred_ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_freight_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The standing requirements every new order for the customer copies"
          },
          "quickbooks_assignment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "quickbooks_id",
              "origin"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "quickbooks_id": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "enum": [
                  "matched",
                  "created",
                  "manual"
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "CustomerEmailTemplatePreferences": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "choices"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_email_template_preferences"
          },
          "choices": {
            "type": "array",
            "description": "Each kind of email to customers an organization keeps active templates for, by organization and then kind",
            "items": {
              "type": "object",
              "required": [
                "organization",
                "kind",
                "kind_label",
                "default",
                "email_template",
                "templates"
              ],
              "properties": {
                "organization": {
                  "$ref": "#/components/schemas/CodedStub",
                  "description": "Whose templates these are"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "customer_quote",
                    "customer_order_acknowledgement",
                    "proforma_invoice",
                    "invoice",
                    "credit_memo",
                    "purchase_order",
                    "repair_order",
                    "vendor_rfq",
                    "consignor_statement",
                    "investor_statement",
                    "shipping_confirmation"
                  ],
                  "description": "Which kind of email, as a `PATCH` names it"
                },
                "kind_label": {
                  "type": "string",
                  "description": "The kind of email, in a sentence"
                },
                "default": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The organization's Default, which an email opens in while neither the customer nor the sender chooses one; null when it has none"
                },
                "email_template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template chosen for the customer, which its emails open in ahead of the sender's own and the Default; null while none is chosen"
                },
                "templates": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Stub"
                  },
                  "description": "Every active template of this kind the organization keeps, by name: what may be chosen"
                }
              }
            }
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "CustomerExchange": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "expected_core_serial",
          "exchange_type",
          "core_disposition",
          "return_disposition",
          "core_repair_nte_cents",
          "home_core_basis_cents",
          "identifier",
          "shipped_at",
          "core_due_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_billed",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "bills",
          "expected_core_condition",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "expected_core_part",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_exchange"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "core_received",
              "closed",
              "cancelled"
            ],
            "description": "`open`: The customer owes us a core that has not arrived; `core_received`: The customer's core has arrived; `closed`: Finished: the core came back, was billed, or was written off; `cancelled`: Called off before any core arrived",
            "x-enum-descriptions": [
              "The customer owes us a core that has not arrived",
              "The customer's core has arrived",
              "Finished: the core came back, was billed, or was written off",
              "Called off before any core arrived"
            ],
            "x-enum-labels": [
              "Open",
              "Core received",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_core_part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "expected_core_serial": {
            "type": [
              "string",
              "null"
            ]
          },
          "exchange_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cost_plus",
              "flat_rate",
              null
            ]
          },
          "core_disposition": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "overhaul",
              "serviceable",
              "as_is",
              null
            ],
            "description": "`overhaul`: The returned core is to be overhauled; `serviceable`: The returned core is to be repaired to serviceable; `as_is`: The returned core is taken as-is, with no shop work planned",
            "x-enum-descriptions": [
              "The returned core is to be overhauled",
              "The returned core is to be repaired to serviceable",
              "The returned core is taken as-is, with no shop work planned",
              "Not set"
            ],
            "x-enum-labels": [
              "Overhaul",
              "Repair to serviceable",
              "Receive as-is",
              "Not set"
            ]
          },
          "return_disposition": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "return_to_inventory",
              "return_to_exchange_vendor",
              null
            ],
            "description": "`return_to_inventory`: Once received, the core goes into our own inventory; `return_to_exchange_vendor`: Once received, the core goes back to the vendor who supplied the exchange unit",
            "x-enum-descriptions": [
              "Once received, the core goes into our own inventory",
              "Once received, the core goes back to the vendor who supplied the exchange unit",
              "Not set"
            ],
            "x-enum-labels": [
              "Return to inventory",
              "Return to exchange vendor",
              "Not set"
            ]
          },
          "core_repair_nte_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "home_core_basis_cents": {
            "type": "integer",
            "description": "Minor units of the account's currency, not `currency_code`"
          },
          "identifier": {
            "type": "string"
          },
          "shipped_at": {
            "type": "string",
            "format": "date-time"
          },
          "core_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_owed": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_billed": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "bills": {
            "type": "array",
            "description": "The charge lines that billed its core, each with the invoice that carries it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sales_order_line",
                "description",
                "invoice",
                "quantity",
                "line_total_cents"
              ],
              "properties": {
                "sales_order_line": {
                  "$ref": "#/components/schemas/SalesOrderLineStub"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "invoice": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InvoiceStub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "quantity": {
                  "type": "number"
                },
                "line_total_cents": {
                  "type": "integer"
                }
              }
            }
          },
          "expected_core_condition": {
            "type": [
              "string",
              "null"
            ]
          },
          "sales_order_line": {
            "$ref": "#/components/schemas/SalesOrderLineStub",
            "description": "The sales order line the exchange is for"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the exchange came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the exchange prints on, each by the `form` `POST /documents` takes"
          },
          "expected_core_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part `expected_core_part_number` names; null where none is typed or none matches it"
          },
          "shipped_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the sales order line shipped; null for a line no catalog part holds"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt the core is coming in on, which `POST /customer_exchanges/{uuid}/create_receipt` opens; null until one is open"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "create_receipt",
                    "put_back",
                    "add_to_repair_order",
                    "scrap",
                    "revise_core_due",
                    "bill_core",
                    "bill_core_repair",
                    "bill_charge",
                    "close",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_core_due": "update_customer_exchange"
            }
          },
          "billable_repairs": {
            "type": "array",
            "description": "The repairs of its core that can still be billed, each at its final cost: the `repair_order_line_uuid` `POST /customer_exchanges/{uuid}/bill_core_repair` takes. Present when `expand[]=billable_repairs` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "repair_order_line",
                "final_unit_cost_cents",
                "currency_code"
              ],
              "properties": {
                "repair_order_line": {
                  "$ref": "#/components/schemas/RepairOrderLineStub"
                },
                "final_unit_cost_cents": {
                  "type": "integer",
                  "description": "In `currency_code`, the repair order's, which may differ from the customer exchange's currency"
                },
                "currency_code": {
                  "type": "string"
                }
              }
            }
          },
          "cores": {
            "$ref": "#/components/schemas/InventoryLineList",
            "description": "Present when `expand[]=cores` asked for it: the first page"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "CustomerLease": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "home_unit_basis_cents",
          "writedown_percent",
          "effective_writedown_percent",
          "billed_through_on",
          "returned_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "unbilled_days",
          "started_on",
          "due_back_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_lease"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "returned",
              "closed",
              "cancelled"
            ],
            "description": "`open`: The leased unit is out at the customer; `returned`: Every unit is back: close the lease when you are done with it; `closed`: Finished: the unit came back or its cost was written off; `cancelled`: Called off before the unit stayed out: its shipment was cancelled",
            "x-enum-descriptions": [
              "The leased unit is out at the customer",
              "Every unit is back: close the lease when you are done with it",
              "Finished: the unit came back or its cost was written off",
              "Called off before the unit stayed out: its shipment was cancelled"
            ],
            "x-enum-labels": [
              "Open",
              "Returned",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_rate_unit": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "day",
              "week",
              "month",
              null
            ],
            "description": "`day`: The rate is per day, and any allowance of hours and cycles is per day; `week`: The rate is per week, and any allowance of hours and cycles is per week; `month`: The rate is per month, and any allowance of hours and cycles is per month",
            "x-enum-descriptions": [
              "The rate is per day, and any allowance of hours and cycles is per day",
              "The rate is per week, and any allowance of hours and cycles is per week",
              "The rate is per month, and any allowance of hours and cycles is per month",
              "Not set"
            ],
            "x-enum-labels": [
              "Day",
              "Week",
              "Month",
              "Not set"
            ]
          },
          "lease_minimum_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_included_hours": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_included_cycles": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_hour_fee_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_cycle_fee_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_outright_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_unit_basis_cents": {
            "type": "integer",
            "description": "Minor units of the account's currency, not `currency_code`"
          },
          "writedown_percent": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The share of the unit's cost each bill writes down to Lease COGS, overriding the account's default; null follows the default"
          },
          "effective_writedown_percent": {
            "type": "integer",
            "description": "The writedown share the next bill takes: the lease's own, else the account's default"
          },
          "billed_through_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day a bill covers; null until the first period is billed"
          },
          "returned_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the last unit came back"
          },
          "next_period_starts_on": {
            "type": "string",
            "format": "date",
            "description": "The first day `bill_period` bills"
          },
          "next_period_ends_on": {
            "type": "string",
            "format": "date",
            "description": "The day `bill_period` bills through unless the call names another: a month on, or the day the unit came back"
          },
          "unbilled_days": {
            "type": "integer",
            "description": "Days the unit has been out, or was out before coming back, that no bill covers yet"
          },
          "started_on": {
            "type": "string",
            "format": "date"
          },
          "due_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_owed": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "sales_order_line": {
            "$ref": "#/components/schemas/SalesOrderLineStub",
            "description": "The sales order line the lease is for"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the lease came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the lease prints on, each by the `form` `POST /documents` takes"
          },
          "shipped_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the sales order line shipped; null for a line no catalog part holds"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt the leased unit is coming back on, which `POST /customer_leases/{uuid}/create_receipt` opens; null until one is open"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "create_receipt",
                    "add_to_repair_order",
                    "revise_due_back",
                    "bill_period",
                    "bill_charge",
                    "sell_outright",
                    "close",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_due_back": "update_customer_lease"
            }
          },
          "units": {
            "$ref": "#/components/schemas/InventoryLineList",
            "description": "Present when `expand[]=units` asked for it: the first page"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "CustomerNoQuoteReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "description",
          "printed_text",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_no_quote_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "printed_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CustomerPartPrice": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "request_type",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "part",
          "supply",
          "condition",
          "customer",
          "company_segment",
          "lead_time",
          "exchange",
          "lease",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_part_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ],
            "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back; `lease`: Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance",
            "x-enum-descriptions": [
              "An outright sale: the unit changes hands for its price, with no core owed",
              "An exchange: a serviceable unit now, with a core unit owed back",
              "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
            ],
            "x-enum-labels": [
              "Outright",
              "Exchange",
              "Lease"
            ]
          },
          "unit_price_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "minimum_quantity": {
            "type": "number",
            "description": "The least quantity it prices; the highest break the quantity reaches wins"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "type": "string",
            "description": "Who or what it prices for: the one inventory line or vendor inventory line it prices, the customer's company, the segment, or List price"
          },
          "reason": {
            "type": "string",
            "description": "Who and what it prices, in a sentence"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The inventory line or vendor inventory line this price is for, before every customer's, segment's and list price; null prices the part"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition it prices; null prices any"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one customer it prices for, by its company; null with no segment is a list price"
          },
          "company_segment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer segment it prices for; null with no customer is a list price"
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "type",
              "core_charge_cents",
              "core_due_days"
            ],
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of `currency_code`"
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "rate_unit",
              "minimum_days",
              "included_hours",
              "included_cycles",
              "hour_fee_cents",
              "cycle_fee_cents",
              "outright_price_cents",
              "due_days"
            ],
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ],
                "description": "The period `unit_price_cents` is the rate for, and the allowance and fees below are counted over",
                "x-enum-descriptions": [
                  "The rate is per day, and any allowance of hours and cycles is per day",
                  "The rate is per week, and any allowance of hours and cycles is per week",
                  "The rate is per month, and any allowance of hours and cycles is per month",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Day",
                  "Week",
                  "Month",
                  "Not set"
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fewest days the lease bills for"
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The hours each period's rate includes"
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The cycles each period's rate includes"
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each hour over the allowance"
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each cycle over the allowance"
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the unit sells for if it doesn't come back"
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days after it ships the unit is due back"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "master_data"
      },
      "CustomerPayment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "customer",
          "sales_order",
          "voided_by",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_payment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "unapplied_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` left to apply to an invoice: the amount less its live applications, and 0 once voided"
          },
          "applied_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` its live applications landed on invoices; 0 once voided"
          },
          "applied_to": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "invoice",
                "amount_cents"
              ],
              "properties": {
                "invoice": {
                  "$ref": "#/components/schemas/InvoiceStub"
                },
                "amount_cents": {
                  "type": "integer"
                }
              }
            },
            "description": "Each invoice its live applications landed on, oldest first, with the minor units of `currency_code` on it"
          },
          "kind": {
            "type": "string",
            "enum": [
              "deposit",
              "payment"
            ],
            "description": "`deposit` when recorded on a sales order before it is invoiced, `payment` when recorded on an invoice"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "voided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why an outside system holds the payment, one that came from it or one that paid an invoice it holds, refusing its void and apply while that system is the system of record; null for one no outside system holds"
          },
          "held_by_trash": {
            "type": "boolean",
            "description": "Whether the sales order holding the payment, or an invoice it paid, is in the trash, so it offers no void or apply until that is restored"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the payment's own"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "voided_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "void",
                    "apply"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "apply": "create_customer_payment_application"
            }
          },
          "applications": {
            "$ref": "#/components/schemas/ReceivableApplicationList",
            "description": "Present when `expand[]=applications` asked for it: the first page, continued on `/customer_payments/{uuid}/applications`"
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "CustomerQuoteArchiveReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote_archive_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CustomerQuote": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "channel",
          "customer_name_raw",
          "customer_email_address_raw",
          "contact_name_raw",
          "contact_email_address_raw",
          "customer_reference",
          "fob",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "currency_code",
          "identifier",
          "priority",
          "valid_until",
          "sent_at",
          "won_at",
          "lost_at",
          "customer_replied_at",
          "reply_handled_at",
          "trashed_at",
          "status",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "contact_email_address",
          "priced",
          "orderable",
          "sourceable",
          "quantity_quoted",
          "contingent_core_charge_cents",
          "part_summaries",
          "created_on",
          "sent_on",
          "default_valid_until",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "requested_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "part_line_count",
          "unit_priced_count",
          "lines_aligned_to_requests",
          "needs_review",
          "review_reasons",
          "autoquote",
          "migration_hold",
          "avsight_send",
          "source_fields",
          "document_forms",
          "triage_action",
          "kept_from_autoquote",
          "ship_to_address",
          "bill_to_address",
          "organization",
          "customer",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "lost_reason",
          "archive_reason",
          "triage_rule",
          "ship_via",
          "tax_destination",
          "duplicate_of",
          "message",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "manual",
              "email",
              "phone",
              "chat",
              "ils",
              "partsbase",
              "marketplace"
            ],
            "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace",
            "x-enum-descriptions": [
              "Entered by hand, with no inbound request behind it",
              "The customer's request came in by email",
              "The customer asked on a phone call, logged as a message",
              "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
              "The request came through ILS, the Inventory Locator Service",
              "The request came through PartsBase",
              "The request came through another parts marketplace"
            ],
            "x-enum-labels": [
              "Manual",
              "Email",
              "Phone",
              "Chat",
              "ILS",
              "PartsBase",
              "Marketplace"
            ]
          },
          "customer_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "fob": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "priority": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ],
            "description": "The most urgent priority among the quote's RFQ lines, `routine` where none states one; set on the RFQ lines, never here. A request read from an email with no part it could read keeps the email's urgency until an RFQ line states one",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG"
            ]
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "won_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "lost_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "customer_replied_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the customer's first reply since the quote went out, or since the last was handled, was written; null when none waits"
          },
          "reply_handled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When someone last marked the customer's reply handled"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "won",
              "lost"
            ],
            "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Sent to the customer, with no order or loss recorded yet; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order",
            "x-enum-descriptions": [
              "Being written; nothing has gone to the customer",
              "Sent to the customer, with no order or loss recorded yet",
              "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
              "Marked lost, with a reason: the customer did not order"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Won",
              "Lost"
            ]
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "grand_total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "tax_applies": {
            "type": "boolean"
          },
          "tax_destination_source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ship_to",
              "address",
              "customer",
              null
            ],
            "description": "`ship_to`: Picked on the ship-to address; `address`: Matched by the ship-to address's country and state; `customer`: The customer's, since the ship-to names and matches none",
            "x-enum-descriptions": [
              "Picked on the ship-to address",
              "Matched by the ship-to address's country and state",
              "The customer's, since the ship-to names and matches none",
              "Not set"
            ],
            "x-enum-labels": [
              "Ship to",
              "Address",
              "Customer",
              "Not set"
            ]
          },
          "tax_suppressed": {
            "type": "boolean"
          },
          "tax_exemption": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "reason": {
                "type": "string"
              },
              "statement": {
                "type": "string"
              },
              "expired": {
                "type": "boolean"
              }
            },
            "required": [
              "reason",
              "statement",
              "expired"
            ],
            "additionalProperties": false
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "priced": {
            "type": "boolean"
          },
          "orderable": {
            "type": "boolean",
            "description": "Whether a line is priced and on no sales order yet; whether `order` takes them now (a trashed quote, one with no customer) is in `actions`"
          },
          "sourceable": {
            "type": "boolean",
            "description": "Whether an RFQ line, or a part line answering none, is out to no open sourcing request and on no sales order, which `send_to_sourcing` takes"
          },
          "quantity_quoted": {
            "type": "number"
          },
          "contingent_core_charge_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "part_summaries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part the row names; null where it names only a typed part number"
                },
                "quantity": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "condition": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "uuid",
                "part_number",
                "part",
                "quantity",
                "condition"
              ],
              "additionalProperties": false
            }
          },
          "created_on": {
            "type": "string",
            "format": "date",
            "description": "The day the quote was written, in the account's zone"
          },
          "sent_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the quote first went out, in the account's zone"
          },
          "default_valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The valid-until date `POST /customer_quotes/{uuid}/send` keeps when given none: the quote's own, or a month out once it has lapsed"
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /customer_quotes/{uuid}/email` would offer to send it to: the contact, else whoever the request came from, else the customer's email address as typed on the quote; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /customer_quotes/{uuid}/email` sends when given none: the customer's own RFQ email's subject under \"Re:\" while the quote's first email replies on it, else its organization's Default template for quotes, else a quote email's own words, filled from the quote"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /customer_quotes/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the quote",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The quote's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /customer_quotes/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the quote",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "customer_quote",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the quote sends, each attaching its own PDF (`customer_quote` the Customer Quote); `kind` names it to send it again. Null for a reply sent in the quote's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "requested_count": {
            "type": "integer",
            "description": "The customer's RFQ lines on the quote"
          },
          "unanswered_count": {
            "type": "integer",
            "description": "RFQ lines no line has priced or no-quoted yet"
          },
          "unpriced_count": {
            "type": "integer",
            "description": "Lines neither priced nor no-quoted"
          },
          "unrequested_count": {
            "type": "integer",
            "description": "Part lines answering no RFQ line, which `POST /customer_quotes/{uuid}/record_requests` can record asks for"
          },
          "part_line_count": {
            "type": "integer",
            "description": "Part lines on the quote, every one of which autoquote's `fresh` mode removes; charges stay"
          },
          "unit_priced_count": {
            "type": "integer",
            "description": "Priced part lines naming a unit, and priced repair lines, whose prices autoquote's `price_only` mode replaces"
          },
          "lines_aligned_to_requests": {
            "type": "boolean",
            "description": "Whether the lines already stand in their RFQ lines' order, which `POST /customer_quotes/{uuid}/align_lines` restores"
          },
          "needs_review": {
            "type": "boolean",
            "description": "Whether a draft has something for a person to check before it goes out, each named in `review_reasons`"
          },
          "review_reasons": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "duplicate",
                "customer_unmatched",
                "customer_ambiguous",
                "parts_unresolved",
                "question_open",
                "repair_request",
                "reading_not_applied",
                "autoquote_outside_value_band",
                "autoquote_below_margin_floor",
                "triage_held"
              ],
              "x-enum-descriptions": [
                "The same sender asked for the same parts in the same quantities on an earlier quote, less than an hour before this one.",
                "The sender matched no customer; the name and address the message gave are kept on the quote.",
                "The sender matched more than one customer, so none was chosen.",
                "A part number the message asked for matches no part yet.",
                "Part of the request couldn't be read; the question to ask the customer is in the internal notes.",
                "The message asks us to repair a unit the customer owns, not to sell one.",
                "A message's request wasn't applied to the quote as drafted, so what it asked waits in the internal notes.",
                "Autoquote stopped before filling anything: the quote's value falls outside the value band.",
                "Autoquote found only prices below the margin floor for a line, so the line waits for a price.",
                "A triage rule held the request for a person to work."
              ],
              "x-enum-labels": [
                "Duplicate",
                "Customer unmatched",
                "Customer ambiguous",
                "Parts unresolved",
                "Question open",
                "Repair request",
                "Reading not applied",
                "Autoquote outside value band",
                "Autoquote below margin floor",
                "Triage held"
              ]
            },
            "description": "`duplicate`: The same sender asked for the same parts in the same quantities on an earlier quote, less than an hour before this one.; `customer_unmatched`: The sender matched no customer; the name and address the message gave are kept on the quote.; `customer_ambiguous`: The sender matched more than one customer, so none was chosen.; `parts_unresolved`: A part number the message asked for matches no part yet.; `question_open`: Part of the request couldn't be read; the question to ask the customer is in the internal notes.; `repair_request`: The message asks us to repair a unit the customer owns, not to sell one.; `reading_not_applied`: A message's request wasn't applied to the quote as drafted, so what it asked waits in the internal notes.; `autoquote_outside_value_band`: Autoquote stopped before filling anything: the quote's value falls outside the value band.; `autoquote_below_margin_floor`: Autoquote found only prices below the margin floor for a line, so the line waits for a price.; `triage_held`: A triage rule held the request for a person to work."
          },
          "autoquote": {
            "type": [
              "object",
              "null"
            ],
            "description": "The live autoquote attempt, which locks the quote's lines, RFQ lines and pricing until it ends; null when none is live. `GET /customer_quotes/{uuid}/autoquote_attempts/{attempt_uuid}` reads it whole",
            "properties": {
              "uuid": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "pending",
                  "running"
                ]
              },
              "mode": {
                "type": "string",
                "enum": [
                  "fresh",
                  "gaps",
                  "price_only"
                ]
              },
              "target_count": {
                "type": "integer"
              },
              "planned_count": {
                "type": "integer"
              },
              "applied_count": {
                "type": "integer"
              },
              "stop_requested": {
                "type": "boolean"
              }
            },
            "required": [
              "uuid",
              "status",
              "mode",
              "target_count",
              "planned_count",
              "applied_count",
              "stop_requested"
            ],
            "additionalProperties": false
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the quote came from holds it, refusing every verb on it and its lines but a copy while that system is the system of record; null for one no outside system holds"
          },
          "avsight_send": {
            "type": [
              "object",
              "null"
            ],
            "description": "How the quote's last send to AvSight went, while AvSight keeps the records; null for one never sent, and once CorePilot keeps the records. `status` reads as the integration's pushes do (`pushed`, `refused`, `failed`, `unsent`), `message` says why it hasn't reached AvSight, `name` is AvSight's number for it once a pull has landed it, `kept_back` is true for one declined in full while the integration sends no such quote, which stays in CorePilot by that choice and is no push problem, and `POST /customer_quotes/{uuid}/send_to_avsight` sends it again",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "pushed",
                  "refused",
                  "failed",
                  "unsent"
                ]
              },
              "message": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "source_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attempted_at": {
                "type": "string",
                "format": "date-time"
              },
              "kept_back": {
                "type": "boolean"
              }
            },
            "required": [
              "status",
              "message",
              "key",
              "name",
              "source_url",
              "attempted_at",
              "kept_back"
            ],
            "additionalProperties": false
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the quote prints on, each by the `form` `POST /documents` takes"
          },
          "triage_action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "assign",
              "round_robin",
              "archive",
              "hold",
              "no_quote",
              null
            ],
            "description": "What that rule did with it; null where it only kept it out of autoquote",
            "x-enum-descriptions": [
              "Give the quote to one salesperson",
              "Give the quote to the rule's salespeople in turn, skipping anyone inactive or away unless everyone is away",
              "Move the quote to the trash, naming the archive reason",
              "Keep the quote under Needs review until a person works it",
              "Answer every line asked for no quote, naming the no quote reason, and send it as autoquote's sending settings allow",
              "Not set"
            ],
            "x-enum-labels": [
              "Assign",
              "Round robin",
              "Archive",
              "Hold",
              "No quote",
              "Not set"
            ]
          },
          "kept_from_autoquote": {
            "type": "boolean",
            "description": "Whether a triage rule left the quote out of the automatic autoquote"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "salesperson": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lost_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "archive_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "triage_rule": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The rule that routed the drafted request as it landed; null where none matched"
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "duplicate_of": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MessageStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "email",
                    "lose",
                    "reopen",
                    "handle_reply",
                    "copy",
                    "send_to_sourcing",
                    "order",
                    "win_on_external_order",
                    "open_work_orders",
                    "record_requests",
                    "send_to_avsight",
                    "align_lines",
                    "autoquote",
                    "stop_autoquote",
                    "suppress_tax",
                    "apply_tax",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "unlinked_part_numbers": {
            "type": "array",
            "description": "The part numbers typed on the quote's RFQ lines and lines that no catalog part names yet, one row per number however it was typed, with the lines typing it and the part already holding it: `matches` a part to link to, `inactive` a retired one, `new` none, `unusable` a number with no letter or digit. `POST /customer_quotes/{uuid}/resolve_part_numbers` links them. Present when `expand[]=unlinked_part_numbers` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "part_number_raw",
                "description",
                "lines",
                "part",
                "status"
              ],
              "properties": {
                "part_number_raw": {
                  "type": "string",
                  "description": "The number as the first line typing it typed it"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first description one of those lines carries"
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CustomerQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/CustomerRfqLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/InvoiceLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/SalesOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorRfqLineStub"
                      }
                    ]
                  }
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part already holding the number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "matches",
                    "inactive",
                    "new",
                    "unusable"
                  ]
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /customer_quotes/{uuid}/email` can send, each template filled from the quote, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "customer_quote"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the quote sends, each attaching its own PDF (`customer_quote` the Customer Quote); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the quote, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "valid_until",
                                            "customer_reference",
                                            "total",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the quote, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "valid_until",
                                                "customer_reference",
                                                "total",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "valid_until",
                                                            "customer_reference",
                                                            "total",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "valid_until",
                          "customer_reference",
                          "total",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this quote"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /customer_quotes/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "lines": {
            "$ref": "#/components/schemas/CustomerQuoteLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          },
          "rfq_lines": {
            "$ref": "#/components/schemas/CustomerRfqLineList",
            "description": "Present when `expand[]=rfq_lines` asked for it: the first page"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "CustomerQuoteLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "part_quantity_available",
          "description",
          "unit_price_cents",
          "serial_number",
          "tagged_by_raw",
          "trace_source",
          "tag_types",
          "tag_number",
          "certificate_number",
          "trace_type",
          "external_notes",
          "internal_notes",
          "priority",
          "warranty_days",
          "valid_until",
          "effective_valid_until",
          "tagged_on",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "calibration_due_on",
          "warranty_expires_on",
          "quantity",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "label",
          "requested_reference",
          "currency_code",
          "customer_quote_status",
          "response",
          "no_quote_reason_printed",
          "home_vendor_offer_unit_cost_cents",
          "source_fields",
          "sourcing_request_closed",
          "external_order_number",
          "exchange",
          "repair",
          "tagged_by",
          "customer_quote",
          "customer",
          "part",
          "charge",
          "condition",
          "lead_time",
          "inventory_line",
          "vendor_offer",
          "vendor_rfq",
          "customer_rfq_line",
          "no_quote_reason",
          "combined_tax_rate",
          "sales_order",
          "work_order",
          "sourcing_request",
          "lease",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the line's part; null where no part names the line"
          },
          "part_quantity_available": {
            "type": [
              "number",
              "null"
            ],
            "description": "What of the line's part is on hand and not reserved, across every inventory; null where no part names the line",
            "x-internal": true
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Every release or certificate the offered unit's tag carries; empty where it names none"
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ],
            "x-enum-labels": [
              "Air carrier",
              "Repair station",
              "OEM",
              "Distributor",
              "Government",
              "Other",
              "Not set"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The warranty we give on the line, in days from shipment: null states no term, and 0 is none (as is). Never the unit's own warranty, and refused on a charge line"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When the unit's own warranty ends, as the unit carried it (a passed-through manufacturer's warranty), never the warranty we give"
          },
          "quantity": {
            "type": "number"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "tax_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "taxes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": "string"
                },
                "taxable_cents": {
                  "type": "number"
                },
                "tax_cents": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "percentage",
                "taxable_cents",
                "tax_cents"
              ]
            }
          },
          "label": {
            "type": "string"
          },
          "requested_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "customer_quote_status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "won",
              "lost"
            ],
            "description": "`draft`: Being written; nothing has gone to the customer; `sent`: Sent to the customer, with no order or loss recorded yet; `won`: The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines; `lost`: Marked lost, with a reason: the customer did not order",
            "x-enum-descriptions": [
              "Being written; nothing has gone to the customer",
              "Sent to the customer, with no order or loss recorded yet",
              "The customer ordered: a sales order was cut from the quote, or an order kept in another system of record took its lines",
              "Marked lost, with a reason: the customer did not order"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Won",
              "Lost"
            ]
          },
          "response": {
            "type": "string",
            "enum": [
              "unpriced",
              "priced",
              "no_quote"
            ],
            "description": "`unpriced`: Offered with neither a price nor a no-quote reason yet; `priced`: Offered at a unit price; `no_quote`: Declined, with a no-quote reason",
            "x-enum-descriptions": [
              "Offered with neither a price nor a no-quote reason yet",
              "Offered at a unit price",
              "Declined, with a no-quote reason"
            ],
            "x-enum-labels": [
              "Unpriced",
              "Priced",
              "No quote"
            ]
          },
          "no_quote_reason_printed": {
            "type": [
              "string",
              "null"
            ]
          },
          "home_vendor_offer_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`: the unit cost of the vendor's offer the line was costed from",
            "x-internal": true
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "sourcing_request_closed": {
            "type": "boolean",
            "x-internal": true
          },
          "external_order_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The number of the order another system of record holds that took the line, by `win_on_external_order`; null where none did"
          },
          "exchange": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "type",
                  "core_charge_cents",
                  "core_due_days"
                ],
                "properties": {
                  "type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "cost_plus",
                      "flat_rate",
                      null
                    ]
                  },
                  "core_charge_cents": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Minor units of `currency_code`"
                  },
                  "core_due_days": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The exchange terms, on a line whose `request_type` is `exchange`"
          },
          "repair": {
            "oneOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "service",
                  "non_oem_allowance",
                  "work_order_template",
                  "tasks",
                  "unquoted_services"
                ],
                "properties": {
                  "service": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/Stub"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "non_oem_allowance": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "oem",
                      "pma",
                      "der",
                      "pma_der",
                      null
                    ],
                    "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                    "x-enum-descriptions": [
                      "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                      "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                      "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                      "PMA parts and DER repairs both allowed",
                      "Not set"
                    ],
                    "x-enum-labels": [
                      "OEM only",
                      "PMA parts",
                      "DER repairs",
                      "PMA parts and DER repairs",
                      "Not set"
                    ]
                  },
                  "work_order_template": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/Stub"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The work order template the line was priced from, where one priced it"
                  },
                  "tasks": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "uuid",
                        "position",
                        "name",
                        "billing_type",
                        "output_type",
                        "price_cents"
                      ],
                      "properties": {
                        "uuid": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "position": {
                          "type": "integer"
                        },
                        "name": {
                          "type": "string"
                        },
                        "billing_type": {
                          "type": "string",
                          "enum": [
                            "required",
                            "optional",
                            "warranty",
                            "repair_process_code"
                          ],
                          "description": "`required` tasks make up the price; `optional` ones are offered beside it"
                        },
                        "output_type": {
                          "type": "string",
                          "enum": [
                            "summary",
                            "detail",
                            "hidden"
                          ],
                          "description": "`hidden` tasks are left off the quote the customer receives"
                        },
                        "price_cents": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The task's flat rate as quoted, in minor units of `currency_code`"
                        }
                      }
                    },
                    "description": "The template's tasks as they stood when the line was priced; later changes to the template leave them"
                  },
                  "unquoted_services": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "service",
                        "condition"
                      ],
                      "properties": {
                        "service": {
                          "$ref": "#/components/schemas/Stub"
                        },
                        "condition": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/CodedStub"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "The service's default condition, which a line quoting it leaves the unit in"
                        }
                      }
                    },
                    "description": "Where the part is capable of the line's service, the other services its active repair capabilities name that no line on the quote quotes for the part yet: each one more line the quote can offer"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "The repair terms, on a line whose `request_type` is `repair`"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company that tagged the unit, such as a repair station; null where none is picked"
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor_offer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorPartPriceStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a vendor quote line's own stub where it is one; a vendor inventory line's own stub where it is one; a vendor part price's own stub where it is one",
            "x-internal": true
          },
          "vendor_rfq": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "customer_rfq_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerRfqLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "combined_tax_rate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The work order opened from the line, a repair, by `open_work_orders`; null where none was"
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "rate_unit",
              "minimum_days",
              "included_hours",
              "included_cycles",
              "hour_fee_cents",
              "cycle_fee_cents",
              "outright_price_cents",
              "due_days"
            ],
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ],
                "description": "The period `unit_price_cents` is the rate for, and the allowance and fees below are counted over",
                "x-enum-descriptions": [
                  "The rate is per day, and any allowance of hours and cycles is per day",
                  "The rate is per week, and any allowance of hours and cycles is per week",
                  "The rate is per month, and any allowance of hours and cycles is per month",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Day",
                  "Week",
                  "Month",
                  "Not set"
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fewest days the lease bills for"
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The hours each period's rate includes"
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The cycles each period's rate includes"
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each hour over the allowance"
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each cycle over the allowance"
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the unit sells for if it doesn't come back"
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days after it ships the unit is due back"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "CustomerQuoteLostReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_quote_lost_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CustomerRepairPrice": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "organization",
          "part",
          "repair_service",
          "customer",
          "company_segment",
          "lead_time",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_repair_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "unit_price_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "minimum_quantity": {
            "type": "number",
            "description": "The least quantity it prices; the highest break the quantity reaches wins"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "audience": {
            "type": "string",
            "description": "Who it prices for: the customer's company, the segment, or List price"
          },
          "reason": {
            "type": "string",
            "description": "Which service it prices and for whom, in a sentence"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The service it prices, one the part lists among its repair services"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one customer it prices for, by its company; null with no segment is a list price"
          },
          "company_segment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer segment it prices for; null with no customer is a list price"
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "master_data"
      },
      "CustomerReturn": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_creditable",
          "received",
          "outstanding",
          "receivable",
          "line_count",
          "credit_memo_count",
          "currency_code",
          "currency_exponent",
          "migration_hold",
          "document_forms",
          "sales_order",
          "customer",
          "credit_memo",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_return"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "cancelled"
            ],
            "description": "`open`: Authorized; units may still arrive and be credited; `closed`: Finished; what came back uncredited stays with us; `cancelled`: Called off before anything arrived",
            "x-enum-descriptions": [
              "Authorized; units may still arrive and be credited",
              "Finished; what came back uncredited stays with us",
              "Called off before anything arrived"
            ],
            "x-enum-labels": [
              "Open",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_creditable": {
            "type": "number"
          },
          "received": {
            "type": "boolean"
          },
          "outstanding": {
            "type": "boolean"
          },
          "receivable": {
            "type": "boolean",
            "description": "Open, with parts still to come back or a receipt waiting for them"
          },
          "line_count": {
            "type": "integer"
          },
          "credit_memo_count": {
            "type": "integer",
            "description": "Its live credit memos"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the return came from holds it, refusing every verb on it and its lines while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the return prints on, each by the `form` `POST /documents` takes"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "credit_memo": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt the returned parts are coming in on, which `POST /customer_returns/{uuid}/create_receipt` opens; null until one is open"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "close",
                    "cancel",
                    "credit",
                    "create_receipt",
                    "cancel_exchange",
                    "return_to_vendor",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "returnable_inventory_lines": {
            "type": "array",
            "description": "The units that came back, each with the purchase order it was bought on and why a vendor can't take it, if one can't: the `inventory_line_uuid` `POST /customer_returns/{uuid}/return_to_vendor` takes. Present when `expand[]=returnable_inventory_lines` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "inventory_line",
                "part_number",
                "part",
                "condition_code",
                "serial_number",
                "quantity_available",
                "purchase_order",
                "vendor",
                "refusal"
              ],
              "properties": {
                "inventory_line": {
                  "$ref": "#/components/schemas/InventoryLineStub"
                },
                "part_number": {
                  "type": "string"
                },
                "part": {
                  "$ref": "#/components/schemas/PartStub"
                },
                "condition_code": {
                  "type": "string"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_available": {
                  "type": "number"
                },
                "purchase_order": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "vendor": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "refusal": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why it can't be picked, or null when it can"
                }
              }
            }
          },
          "exchange_lines": {
            "type": "array",
            "description": "The lines returning an exchange unit, each with why its exchange can't be called off, if it can't: the `line_uuids` `POST /customer_returns/{uuid}/cancel_exchange` takes. Present when `expand[]=exchange_lines` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "line",
                "line_position",
                "part_number",
                "part",
                "quantity",
                "customer_exchange",
                "refusal"
              ],
              "properties": {
                "line": {
                  "$ref": "#/components/schemas/CustomerReturnLineStub"
                },
                "line_position": {
                  "type": "integer"
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The part it returns; null where the sales order line names no catalog part"
                },
                "quantity": {
                  "type": "number"
                },
                "customer_exchange": {
                  "$ref": "#/components/schemas/CustomerExchangeStub"
                },
                "refusal": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why it can't be picked, or null when it can"
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/CustomerReturnLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "CustomerReturnLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "unit_price_cents",
          "uuid",
          "quantity",
          "quantity_received",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "reason",
          "customer_return_status",
          "line_position",
          "currency_code",
          "customer_return",
          "customer",
          "sales_order_line",
          "part",
          "release_line",
          "release",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_return_line"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "part_number": {
            "type": "string"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_return_status": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "cancelled"
            ],
            "description": "`open`: Authorized; units may still arrive and be credited; `closed`: Finished; what came back uncredited stays with us; `cancelled`: Called off before anything arrived",
            "x-enum-descriptions": [
              "Authorized; units may still arrive and be credited",
              "Finished; what came back uncredited stays with us",
              "Called off before anything arrived"
            ],
            "x-enum-labels": [
              "Open",
              "Closed",
              "Cancelled"
            ]
          },
          "line_position": {
            "type": "number"
          },
          "currency_code": {
            "type": "string"
          },
          "customer_return": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sales_order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part it returns; null where the sales order line names no catalog part"
          },
          "release_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "release": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "CustomerReturnReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_return_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "CustomerRfqLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "notes",
          "requested_types",
          "condition_raw",
          "repair_service_raw",
          "non_oem_allowance",
          "requested_tag_types",
          "tag_type_raw",
          "need_by",
          "quantity_requested",
          "priority",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "no_quote_count",
          "part_quantity_available",
          "customer_quote",
          "part",
          "conditions",
          "repair_services",
          "no_quote_reason",
          "sourcing_request",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_rfq_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the RFQ line's part; null where no part names it"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "outright",
                "exchange",
                "repair",
                "lease"
              ],
              "x-enum-descriptions": [
                "An outright sale: the unit changes hands for its price, with no core owed",
                "An exchange: a serviceable unit now, with a core unit owed back",
                "A repair of the customer's own unit",
                "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
              ],
              "x-enum-labels": [
                "Outright",
                "Exchange",
                "Repair",
                "Lease"
              ]
            },
            "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back; `repair`: A repair of the customer's own unit; `lease`: Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
          },
          "condition_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "repair_service_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "The services asked for that none of ours answers, as the customer wrote them"
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ],
            "description": "What the customer allows beside the manufacturer's own data and parts; null where they named none",
            "x-enum-descriptions": [
              "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
              "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
              "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
              "PMA parts and DER repairs both allowed",
              "Not set"
            ],
            "x-enum-labels": [
              "OEM only",
              "PMA parts",
              "DER repairs",
              "PMA parts and DER repairs",
              "Not set"
            ]
          },
          "requested_tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "faa_easa_dual",
                "faa_uk_dual",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "A dual release: one tag releasing the part under both the FAA and EASA",
                "A dual release: one tag releasing the part under both the FAA and the UK CAA",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "FAA/EASA dual release",
                "FAA/UK CAA dual release",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "The tag types the customer asked the part to ship on; empty where they named none"
          },
          "tag_type_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "The tag types asked for that none of ours answers, as the customer wrote them"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "null"
            ],
            "description": "Null where the customer stated no quantity"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "reference": {
            "type": "string"
          },
          "sourcing_request_closed": {
            "type": "boolean",
            "x-internal": true
          },
          "response": {
            "type": "string",
            "enum": [
              "unanswered",
              "quoted",
              "declined"
            ],
            "description": "`unanswered`: No answer recorded yet; `quoted`: Answered with a price; `declined`: Answered with no quote",
            "x-enum-descriptions": [
              "No answer recorded yet",
              "Answered with a price",
              "Answered with no quote"
            ],
            "x-enum-labels": [
              "Unanswered",
              "Quoted",
              "No quote"
            ]
          },
          "line_count": {
            "type": "integer",
            "description": "The quote lines answering the RFQ line"
          },
          "no_quote_count": {
            "type": "integer",
            "description": "Of `line_count`, the lines answering with no quote; all of them is a request declined"
          },
          "part_quantity_available": {
            "type": [
              "number",
              "null"
            ],
            "description": "What of the RFQ line's part is on hand and not reserved, across every inventory; null where no part names it",
            "x-internal": true
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The repair services the customer asked to be quoted"
          },
          "no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "quote"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "CustomerTaxExemption": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "country_code",
          "region",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "reason",
          "expired",
          "jurisdiction",
          "statement_text",
          "statement",
          "customer",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "customer_tax_exemption"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "country_code": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "reason": {
            "type": "string",
            "enum": [
              "resale",
              "common_carrier",
              "aircraft_parts",
              "export",
              "government",
              "manufacturing",
              "charitable",
              "other"
            ],
            "description": "`resale`: The customer buys to resell, under a resale certificate; `common_carrier`: The customer is a common carrier, such as an airline; `aircraft_parts`: Parts for aircraft that the jurisdiction exempts; `export`: The goods leave the country; `government`: The customer is a government body; `manufacturing`: The parts go into manufacturing; `charitable`: The customer is a tax-exempt nonprofit; `other`: Another reason, stated on the certificate",
            "x-enum-descriptions": [
              "The customer buys to resell, under a resale certificate",
              "The customer is a common carrier, such as an airline",
              "Parts for aircraft that the jurisdiction exempts",
              "The goods leave the country",
              "The customer is a government body",
              "The parts go into manufacturing",
              "The customer is a tax-exempt nonprofit",
              "Another reason, stated on the certificate"
            ],
            "x-enum-labels": [
              "Resale",
              "Common carrier",
              "Aircraft parts",
              "Export",
              "Government",
              "Manufacturing",
              "Charitable",
              "Other"
            ]
          },
          "expired": {
            "type": "boolean"
          },
          "jurisdiction": {
            "type": "string"
          },
          "statement_text": {
            "type": "string"
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "DashboardAudience": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "opens_first",
          "dashboard",
          "team",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "dashboard_audience"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "opens_first": {
            "type": "boolean",
            "description": "Whether this dashboard opens first for the audience, as a tab on Home (`/dashboard_opening`); at most one per audience, the most narrowly given winning"
          },
          "dashboard": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "team": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The team it is given to; null for a person or everyone"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person it is given to; null for a team or everyone"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Dashboard": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "description",
          "period",
          "span",
          "refresh_interval_minutes",
          "refreshing_since",
          "last_refreshed_at",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "dashboard"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "last_7_days",
              "last_30_days",
              "last_90_days",
              "last_12_months",
              "month_to_date",
              "quarter_to_date",
              "year_to_date"
            ],
            "description": "A named range standing in for a summary's `period[from]` and `period[to]`: the days every tile counts, ending on the business's today",
            "x-enum-descriptions": [
              "The seven days ending today",
              "The thirty days ending today",
              "The ninety days ending today",
              "This month to today and the eleven months before it, so a chart of months shows a year",
              "From the first of this month to today",
              "From the first day of this quarter to today",
              "From the first of January to today"
            ],
            "x-enum-labels": [
              "Last 7 days",
              "Last 30 days",
              "Last 90 days",
              "Last 12 months",
              "Month to date",
              "Quarter to date",
              "Year to date"
            ]
          },
          "span": {
            "type": "object",
            "required": [
              "from",
              "to"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            },
            "description": "The first and last day `period` counts today, in the business's time zone: the `period[from]` and `period[to]` each tile's summary reads"
          },
          "refresh_interval_minutes": {
            "type": "integer",
            "description": "How often, in minutes, the schedule rereads every tile: 15, 60, 240 or 1440, and 60 until someone sets it. A dashboard nobody has read in 7 days pauses; reading it (`GET /dashboards/{uuid}`) starts the schedule again and rereads its tiles at once, where the reader may `refresh_tiles`"
          },
          "refreshing_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `refresh_tiles` began rereading every tile, while it runs; null once it is done"
          },
          "last_refreshed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the last refresh to finish began, by the schedule or `refresh_tiles`; null until one has"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "give",
                    "arrange",
                    "refresh_tiles"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "give": "create_dashboard_audience"
            }
          },
          "tiles": {
            "$ref": "#/components/schemas/DashboardTileList",
            "description": "Present when `expand[]=tiles` asked for it: the first page, continued on `/dashboards/{uuid}/tiles`"
          },
          "audiences": {
            "$ref": "#/components/schemas/DashboardAudienceList",
            "description": "Present when `expand[]=audiences` asked for it: the first page, continued on `/dashboards/{uuid}/audiences`"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "DashboardOpening": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "dashboard"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "dashboard_opening"
          },
          "dashboard": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The dashboard given to open first for you, the latest given first among equals; null when none is"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "DashboardTile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "title",
          "resource",
          "query",
          "visualization",
          "x",
          "y",
          "w",
          "h",
          "dashboard",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "dashboard_tile"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "resource": {
            "type": "string",
            "description": "The list it summarizes, its path spelled as this description publishes it (`/customer_quotes`); kept for good once saved"
          },
          "query": {
            "type": "string",
            "description": "The summary's query string, read as `GET {resource}/summary?{query}` reads it, over the dashboard's period: `measures[]`, `group_by`, `compare`, and the list's own filters, `q` and `view`. A `view` reads the list through that view, following its edits"
          },
          "visualization": {
            "type": "string",
            "enum": [
              "number",
              "bar",
              "stacked_bar",
              "line",
              "area",
              "pie",
              "scatter",
              "table"
            ],
            "description": "How it is drawn: a `number` (one total, ungrouped), a `bar` (one measure, grouped), a `line` (at most 3 measures by a date), a `stacked_bar` (grouped) or `area` (by a date) of at most 3 counts, amounts or quantities of one unit, stacked to their total, a `pie` (one count, amount or quantity by a group that isn't a date, its top 5 groups and the rest as one slice), a `scatter` (exactly two measures, any kind, by a group that isn't a date: a point for each group, the first measure across and the second up), or a `table` of the summary's rows",
            "x-enum-descriptions": [
              "The first measure's total, beside the compared period's when the query compares",
              "A bar of the query's one measure for each group of its `group_by`",
              "A bar for each group of the query's `group_by`, its measures stacked inside it to their total",
              "A line for each measure across the query's `group_by` dates",
              "The measures stacked as bands across the query's `group_by` dates, the top edge their total",
              "A ring of one measure's total, a slice for each group of the query's `group_by`; past five groups, the rest are one slice",
              "A point for each group of the query's `group_by`, placed across by its first measure and up by its second",
              "A row for each group, a column for each measure"
            ],
            "x-enum-labels": [
              "Number",
              "Bar",
              "Stacked bar",
              "Line",
              "Area",
              "Pie",
              "Scatter",
              "Table"
            ]
          },
          "x": {
            "type": "integer",
            "description": "Its first column, from 0"
          },
          "y": {
            "type": "integer",
            "description": "Its first row, from 0"
          },
          "w": {
            "type": "integer",
            "description": "Its width in columns, 1 to 12"
          },
          "h": {
            "type": "integer",
            "description": "Its height in rows, 1 to 12"
          },
          "dashboard": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "summary",
              "spark",
              "read_at",
              "failed_at",
              "failure"
            ],
            "description": "What the tile last read, as its dashboard's creator, and when: stored, so a read serves it without summarizing again. A tile with nothing stored for its current query is read on its first view; one that view has no time for is null, and its dashboard's refresh reads it. A tile reading a view or a list the reader can't read serves only why. Present when `expand[]=result` asked for it",
            "properties": {
              "summary": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "What `GET {resource}/summary` answered over the period's days, its `period` the days it counted; null where none was read for the tile's current query"
              },
              "spark": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "A number's first measure across the period by its list's own date, the same summary's shape, for a sparkline; null for any other tile"
              },
              "read_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When `summary` was read"
              },
              "failed_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When the last read failed; null once one succeeds"
              },
              "failure": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why the last read failed, or why this reader is served no figures"
              }
            }
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "DefaultIssuePart": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "order_type",
          "quantity",
          "market_value_cents",
          "issued_part_description",
          "currency_code",
          "part",
          "issued_part",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "default_issue_part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "order_type": {
            "type": "string",
            "enum": [
              "repair_order",
              "purchase_order"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "market_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "issued_part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "issued_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "Demand": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "need_type",
          "part_number_raw",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "need_by",
          "status",
          "closed_at",
          "part_quantity_available_in_condition",
          "part_quantity_available",
          "part_quantity_inbound",
          "needed_for",
          "order",
          "counterparty",
          "part",
          "condition",
          "sourcing_request",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "demand"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "need_type": {
            "type": "string",
            "enum": [
              "sales_order_line",
              "repair_order_line",
              "vendor_exchange",
              "vendor_return_line",
              "repair_order_issue",
              "purchase_order_issue",
              "work_order_material"
            ],
            "x-enum-labels": [
              "Sales order",
              "Repair order",
              "Exchange core",
              "Return to vendor",
              "Parts for repair",
              "Parts for purchase",
              "Parts for a work order"
            ],
            "description": "The kind of need: an order's line, an exchange core owed back, a return waiting on inventory, parts issued to a repair or purchase, or parts a work order's task calls for"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "quantity_allocated": {
            "type": "number"
          },
          "quantity_remaining": {
            "type": "number"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "fulfilled",
              "closed"
            ],
            "description": "`open`: Some of the need is still to be allocated; `fulfilled`: Allocated in full; nothing remains to fill; `closed`: The order it hangs from closed, was cancelled or trashed, or no longer wants the parts, whatever remains",
            "x-enum-descriptions": [
              "Some of the need is still to be allocated",
              "Allocated in full; nothing remains to fill",
              "The order it hangs from closed, was cancelled or trashed, or no longer wants the parts, whatever remains"
            ],
            "x-enum-labels": [
              "Open",
              "Fulfilled",
              "Closed"
            ]
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "part_quantity_available_in_condition": {
            "type": [
              "number",
              "null"
            ],
            "description": "What of the part is free to the need in the condition it asks for (a sale counts nothing in a bin held back from sale); null where no part is named"
          },
          "part_quantity_available": {
            "type": [
              "number",
              "null"
            ],
            "description": "What of the part is free to the need in any condition (a sale counts nothing in a bin held back from sale); null where no part is named"
          },
          "part_quantity_inbound": {
            "type": [
              "number",
              "null"
            ],
            "description": "What live purchase orders for the part still have free; null where no part is named"
          },
          "needed_for": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/IssuedPartStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a sales order line's own stub where it is one; a repair order line's own stub where it is one; a vendor exchange's own stub where it is one; a vendor lease's own stub where it is one; a vendor return line's own stub where it is one; an issued part's own stub where it is one; a work order material's own stub where it is one"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a sales order's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one"
          },
          "counterparty": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "$ref": "#/components/schemas/SourcingRequest"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole sourcing request when `expand[]=sourcing_request` asked for it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "selling",
        "x-role": "master_data"
      },
      "DirectRfqConditionAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "direct_rfq_condition",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "direct_rfq_condition_answer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "direct_rfq_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DirectRfqCondition": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_conditions",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "direct_rfq_condition"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The condition's code as a customer writes it"
          },
          "name": {
            "type": "string",
            "description": "The condition's name, which a customer may write instead of its code"
          },
          "position": {
            "type": "integer"
          },
          "answering_conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DirectRfqRepairServiceAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "direct_rfq_repair_service",
          "repair_service",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "direct_rfq_repair_service_answer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "direct_rfq_repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DirectRfqRepairService": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_repair_services",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "direct_rfq_repair_service"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The repair service's code as a customer writes it"
          },
          "name": {
            "type": "string",
            "description": "The repair service's name, which a customer may write instead of its code"
          },
          "position": {
            "type": "integer"
          },
          "answering_repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DirectRfqTagType": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_tag_types",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "direct_rfq_tag_type"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The tag type as a customer writes it, upcased: 8130, C OF C"
          },
          "name": {
            "type": "string",
            "description": "What the spelling reads as, which a customer may write instead of its code"
          },
          "position": {
            "type": "integer"
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "faa_easa_dual",
                "faa_uk_dual",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "A dual release: one tag releasing the part under both the FAA and EASA",
                "A dual release: one tag releasing the part under both the FAA and the UK CAA",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "FAA/EASA dual release",
                "FAA/UK CAA dual release",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Our tag types that satisfy an RFQ asking for it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Document": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "error",
          "layout_failure",
          "uuid",
          "status",
          "current",
          "form",
          "form_label",
          "title",
          "reference",
          "version",
          "record",
          "template_version",
          "upload",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "document"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "layout_failure": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why this document printed on the standard layout: the line of the form's own layout that failed and what broke; null when it printed through its own layout, or the form has none"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "failed"
            ]
          },
          "current": {
            "type": "boolean",
            "description": "Whether the record still says what this generation printed"
          },
          "form": {
            "type": "string",
            "enum": [
              "customer_quote",
              "customer_quote_with_work_order_tasks",
              "customer_order_acknowledgement",
              "proforma_invoice",
              "invoice",
              "credit_memo",
              "pick_list",
              "packing_list",
              "shipping_packet",
              "commercial_invoice",
              "purchase_order",
              "repair_order",
              "consignor_statement",
              "investor_statement",
              "rejection_report",
              "vendor_rfq",
              "receiving_inspection_report",
              "inventory_label",
              "teardown_report",
              "outbound_qc_record",
              "conformance",
              "material_certification",
              "true_copy",
              "split_statement",
              "work_order_label",
              "unused_bom_parts",
              "work_order_pick_list",
              "teardown_manifest",
              "return_material_authorization",
              "return_to_vendor",
              "customer_core_return",
              "vendor_core_return",
              "customer_lease_agreement",
              "vendor_lease_agreement",
              "bin_label"
            ],
            "description": "The form printed, the value `POST /documents` takes"
          },
          "form_label": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "number",
              "null"
            ]
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer quote's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a certificate's own stub where it is one; a consignor statement's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a vendor RFQ's own stub where it is one; a work order's own stub where it is one; a work order task's own stub where it is one; a customer return's own stub where it is one; a vendor return's own stub where it is one; a customer exchange's own stub where it is one; a vendor exchange's own stub where it is one; a customer lease's own stub where it is one; a vendor lease's own stub where it is one; a bin's own stub where it is one"
          },
          "template_version": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentTemplateVersionStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The version of the form's look this generation printed"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "rerender"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "DocumentPreview": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "form",
          "rendered",
          "content_type",
          "content_base64",
          "pages",
          "page_count",
          "record"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "document_preview"
          },
          "form": {
            "type": "string",
            "description": "The form rendered"
          },
          "rendered": {
            "type": "string",
            "enum": [
              "draft",
              "printed",
              "unsaved"
            ],
            "description": "Which of the form's versions it rendered: its `draft`, `printed`, what prints now, or `unsaved`, the request's own `layout_source` over the draft's look"
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "What `content_base64` holds; null for `png`, whose pages are in `pages`"
          },
          "content_base64": {
            "type": [
              "string",
              "null"
            ],
            "description": "The PDF, base64-encoded; null for `png`"
          },
          "pages": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "page",
                "content_type",
                "content_base64"
              ],
              "properties": {
                "page": {
                  "type": "integer",
                  "description": "The page's number, from 1"
                },
                "content_type": {
                  "type": "string",
                  "enum": [
                    "image/png"
                  ]
                },
                "content_base64": {
                  "type": "string",
                  "description": "The page as a PNG, base64-encoded"
                }
              }
            },
            "description": "For `png`, the form's first 5 pages as images, 144 pixels to the inch, in order; null for `pdf`"
          },
          "page_count": {
            "type": [
              "integer",
              "null"
            ],
            "description": "For `png`, how many pages the form runs to, `pages` holding only the first 5; null for `pdf`"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record it rendered off"
          }
        }
      },
      "DocumentTemplate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "form",
          "label",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "default_accent_color",
          "body_hint",
          "remarks_hint",
          "record_type",
          "standard_layout_source",
          "custom_layouts_standing",
          "printer_kind",
          "signable",
          "publish_check",
          "signer_skill",
          "published_version",
          "draft"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "document_template"
          },
          "form": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "description": "The form's name as its document is titled, such as `Packing List`"
          },
          "page_size": {
            "type": "string",
            "enum": [
              "letter",
              "a4"
            ],
            "description": "`letter`: US Letter; `a4`: A4",
            "x-enum-descriptions": [
              "US Letter",
              "A4"
            ],
            "x-enum-labels": [
              "US Letter",
              "A4"
            ]
          },
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd",
              "long"
            ],
            "description": "`mdy`: Month first: 10/05/2026; `dmy`: Day first: 05/10/2026; `ymd`: ISO 8601: 2026-10-05; `long`: Spelled out: 5 October 2026",
            "x-enum-descriptions": [
              "Month first: 10/05/2026",
              "Day first: 05/10/2026",
              "ISO 8601: 2026-10-05",
              "Spelled out: 5 October 2026"
            ],
            "x-enum-labels": [
              "Month first: 10/05/2026",
              "Day first: 05/10/2026",
              "ISO 8601: 2026-10-05",
              "Spelled out: 5 October 2026"
            ]
          },
          "accent_color": {
            "type": [
              "string",
              "null"
            ],
            "description": "A hex color like `#1f2937`; null prints the house accent"
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The opening paragraph, printed above the lines"
          },
          "footer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page footer"
          },
          "layout_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "The form's own Typst layout, which reads `record`, `letterhead`, `settings` and `page` from `json(sys.inputs.data)`; null prints our standard layout"
          },
          "frame_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "The version of `@corepilot/frame`, our package holding the page frame our layouts share, that `layout_source` imports: read off the source, never set; null when it imports none"
          },
          "remarks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Standing remarks printed on every copy, in order"
          },
          "printed_fields": {
            "type": "array",
            "description": "What the form may print, each shown or left off",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "key",
                "label",
                "group",
                "shown",
                "shown_by_default"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "group": {
                  "type": "string",
                  "enum": [
                    "column",
                    "detail",
                    "under_description"
                  ]
                },
                "shown": {
                  "type": "boolean"
                },
                "shown_by_default": {
                  "type": "boolean"
                }
              }
            }
          },
          "default_accent_color": {
            "type": "string",
            "description": "The hex color a null `accent_color` prints"
          },
          "body_hint": {
            "type": "string",
            "description": "An opening paragraph this form might print, offered as an example; it never prints"
          },
          "remarks_hint": {
            "type": "string",
            "description": "Remarks this form might print, one per line, offered as an example; they never print"
          },
          "record_type": {
            "type": "string",
            "description": "The family of the records the form prints off, the `record_type` its `preview` takes"
          },
          "standard_layout_source": {
            "type": "string",
            "description": "Our standard layout for the form as Typst source, whole, to start a `layout_source` of its own from; it never prints as written"
          },
          "custom_layouts_standing": {
            "type": "string",
            "enum": [
              "none",
              "trial",
              "active",
              "suspended",
              "ended"
            ],
            "description": "Where Custom layouts stands for the tenant: `layout_source` changes only under `trial` or `active`, and `none` also means it isn't available yet",
            "x-enum-descriptions": [
              "Never sold here, or not started yet",
              "On trial, and in use",
              "Bought, and in use",
              "Held back: what it holds can be read but not changed",
              "Ended, or past its last day"
            ],
            "x-enum-labels": [
              "None",
              "Trial",
              "Active",
              "Suspended",
              "Ended"
            ]
          },
          "printer_kind": {
            "type": "string",
            "enum": [
              "document",
              "label"
            ],
            "description": "The kind of printer the form prints on: a `label` form prints on its label printer's label size, in black, so our standard layout reads neither `page_size` nor `accent_color`",
            "x-enum-descriptions": [
              "Prints on a document printer, on its page size",
              "Prints on a label printer, on its label size"
            ],
            "x-enum-labels": [
              "Document",
              "Label"
            ]
          },
          "signable": {
            "type": "boolean",
            "description": "Whether a person signs the documents this form prints, so it may name a `signer_skill`"
          },
          "publish_check": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "records",
              "internal_fields_printed",
              "failure"
            ],
            "properties": {
              "records": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CustomerQuoteStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvoiceStub"
                    },
                    {
                      "$ref": "#/components/schemas/ManifestStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReceiptStub"
                    },
                    {
                      "$ref": "#/components/schemas/ReleaseStub"
                    },
                    {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/CertificateStub"
                    },
                    {
                      "$ref": "#/components/schemas/ConsignorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvestorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/RejectionStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/VendorRfqStub"
                    },
                    {
                      "$ref": "#/components/schemas/BinStub"
                    }
                  ]
                },
                "description": "The records the form's own layout compiled on, newest first; empty when it has none or nothing prints the form yet"
              },
              "failure": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "record",
                      "line",
                      "detail"
                    ],
                    "properties": {
                      "record": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/CustomerQuoteStub"
                          },
                          {
                            "$ref": "#/components/schemas/InvoiceStub"
                          },
                          {
                            "$ref": "#/components/schemas/ManifestStub"
                          },
                          {
                            "$ref": "#/components/schemas/ReceiptStub"
                          },
                          {
                            "$ref": "#/components/schemas/ReleaseStub"
                          },
                          {
                            "$ref": "#/components/schemas/SalesOrderStub"
                          },
                          {
                            "$ref": "#/components/schemas/CertificateStub"
                          },
                          {
                            "$ref": "#/components/schemas/ConsignorStatementStub"
                          },
                          {
                            "$ref": "#/components/schemas/InventoryLineStub"
                          },
                          {
                            "$ref": "#/components/schemas/InvestorStatementStub"
                          },
                          {
                            "$ref": "#/components/schemas/PurchaseOrderStub"
                          },
                          {
                            "$ref": "#/components/schemas/RejectionStub"
                          },
                          {
                            "$ref": "#/components/schemas/RepairOrderStub"
                          },
                          {
                            "$ref": "#/components/schemas/VendorRfqStub"
                          },
                          {
                            "$ref": "#/components/schemas/BinStub"
                          }
                        ]
                      },
                      "line": {
                        "type": [
                          "integer",
                          "null"
                        ],
                        "description": "The layout's line it failed at; null where typst names none"
                      },
                      "detail": {
                        "type": "string",
                        "description": "Why it failed, in typst's words"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The record the layout failed to compile on, which a publish refuses; null when it compiled on every one. Only `check` answers one: `publish` refuses instead"
              },
              "internal_fields_printed": {
                "type": "array",
                "description": "Internal fields the layout prints on each record that prints any, each as a JSON pointer into the layout's input, like `/record/internal_notes`. A warning: it never refuses a publish",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "record",
                    "fields"
                  ],
                  "properties": {
                    "record": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/CustomerQuoteStub"
                        },
                        {
                          "$ref": "#/components/schemas/InvoiceStub"
                        },
                        {
                          "$ref": "#/components/schemas/ManifestStub"
                        },
                        {
                          "$ref": "#/components/schemas/ReceiptStub"
                        },
                        {
                          "$ref": "#/components/schemas/ReleaseStub"
                        },
                        {
                          "$ref": "#/components/schemas/SalesOrderStub"
                        },
                        {
                          "$ref": "#/components/schemas/CertificateStub"
                        },
                        {
                          "$ref": "#/components/schemas/ConsignorStatementStub"
                        },
                        {
                          "$ref": "#/components/schemas/InventoryLineStub"
                        },
                        {
                          "$ref": "#/components/schemas/InvestorStatementStub"
                        },
                        {
                          "$ref": "#/components/schemas/PurchaseOrderStub"
                        },
                        {
                          "$ref": "#/components/schemas/RejectionStub"
                        },
                        {
                          "$ref": "#/components/schemas/RepairOrderStub"
                        },
                        {
                          "$ref": "#/components/schemas/VendorRfqStub"
                        },
                        {
                          "$ref": "#/components/schemas/BinStub"
                        }
                      ]
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            },
            "description": "What `publish` or `check` checked: only they answer it, it is null on every other read, and it never changes the `ETag`"
          },
          "signer_skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A certificate's form only: the skill an employee must hold, unexpired, to sign one; null lets any active employee sign, and every other form names none"
          },
          "published_version": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "number",
              "published_at",
              "publisher"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "number": {
                "type": "integer"
              },
              "published_at": {
                "type": "string",
                "format": "date-time"
              },
              "publisher": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Stub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "draft": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "page_size",
              "date_format",
              "accent_color",
              "body",
              "footer",
              "layout_source",
              "frame_version",
              "remarks",
              "printed_fields",
              "creator"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "page_size": {
                "type": "string",
                "enum": [
                  "letter",
                  "a4"
                ],
                "description": "`letter`: US Letter; `a4`: A4",
                "x-enum-descriptions": [
                  "US Letter",
                  "A4"
                ],
                "x-enum-labels": [
                  "US Letter",
                  "A4"
                ]
              },
              "date_format": {
                "type": "string",
                "enum": [
                  "mdy",
                  "dmy",
                  "ymd",
                  "long"
                ],
                "description": "`mdy`: Month first: 10/05/2026; `dmy`: Day first: 05/10/2026; `ymd`: ISO 8601: 2026-10-05; `long`: Spelled out: 5 October 2026",
                "x-enum-descriptions": [
                  "Month first: 10/05/2026",
                  "Day first: 05/10/2026",
                  "ISO 8601: 2026-10-05",
                  "Spelled out: 5 October 2026"
                ],
                "x-enum-labels": [
                  "Month first: 10/05/2026",
                  "Day first: 05/10/2026",
                  "ISO 8601: 2026-10-05",
                  "Spelled out: 5 October 2026"
                ]
              },
              "accent_color": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "A hex color like `#1f2937`; null prints the house accent"
              },
              "body": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The opening paragraph, printed above the lines"
              },
              "footer": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The page footer"
              },
              "layout_source": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The form's own Typst layout, which reads `record`, `letterhead`, `settings` and `page` from `json(sys.inputs.data)`; null prints our standard layout"
              },
              "frame_version": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The version of `@corepilot/frame`, our package holding the page frame our layouts share, that `layout_source` imports: read off the source, never set; null when it imports none"
              },
              "remarks": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Standing remarks printed on every copy, in order"
              },
              "printed_fields": {
                "type": "array",
                "description": "What the form may print, each shown or left off",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "key",
                    "label",
                    "group",
                    "shown",
                    "shown_by_default"
                  ],
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "column",
                        "detail",
                        "under_description"
                      ]
                    },
                    "shown": {
                      "type": "boolean"
                    },
                    "shown_by_default": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "creator": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Stub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "publish",
                    "discard_draft"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DocumentTemplateVersion": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "form",
          "number",
          "published_at",
          "current",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "publisher",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "document_template_version"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "form": {
            "type": "string",
            "description": "The form it is a version of, the value `POST /documents` takes"
          },
          "number": {
            "type": "integer"
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "current": {
            "type": "boolean",
            "description": "Whether this version is what the form prints now"
          },
          "page_size": {
            "type": "string",
            "enum": [
              "letter",
              "a4"
            ],
            "description": "`letter`: US Letter; `a4`: A4",
            "x-enum-descriptions": [
              "US Letter",
              "A4"
            ],
            "x-enum-labels": [
              "US Letter",
              "A4"
            ]
          },
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd",
              "long"
            ],
            "description": "`mdy`: Month first: 10/05/2026; `dmy`: Day first: 05/10/2026; `ymd`: ISO 8601: 2026-10-05; `long`: Spelled out: 5 October 2026",
            "x-enum-descriptions": [
              "Month first: 10/05/2026",
              "Day first: 05/10/2026",
              "ISO 8601: 2026-10-05",
              "Spelled out: 5 October 2026"
            ],
            "x-enum-labels": [
              "Month first: 10/05/2026",
              "Day first: 05/10/2026",
              "ISO 8601: 2026-10-05",
              "Spelled out: 5 October 2026"
            ]
          },
          "accent_color": {
            "type": [
              "string",
              "null"
            ],
            "description": "A hex color like `#1f2937`; null prints the house accent"
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The opening paragraph, printed above the lines"
          },
          "footer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The page footer"
          },
          "layout_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "The form's own Typst layout, which reads `record`, `letterhead`, `settings` and `page` from `json(sys.inputs.data)`; null prints our standard layout"
          },
          "frame_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "The version of `@corepilot/frame`, our package holding the page frame our layouts share, that `layout_source` imports: read off the source, never set; null when it imports none"
          },
          "remarks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Standing remarks printed on every copy, in order"
          },
          "printed_fields": {
            "type": "array",
            "description": "What the form may print, each shown or left off",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "key",
                "label",
                "group",
                "shown",
                "shown_by_default"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "group": {
                  "type": "string",
                  "enum": [
                    "column",
                    "detail",
                    "under_description"
                  ]
                },
                "shown": {
                  "type": "boolean"
                },
                "shown_by_default": {
                  "type": "boolean"
                }
              }
            }
          },
          "publisher": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "DueInLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quantity_outstanding",
          "ordered_on",
          "due_on",
          "part_description",
          "order",
          "open_receipt",
          "counterparty",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "due_in_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The order line's own uuid; an exchange, a lease or a work order is its own line"
          },
          "quantity_outstanding": {
            "type": "number",
            "description": "What the line still owes us"
          },
          "ordered_on": {
            "type": "string",
            "format": "date",
            "description": "The business day the order was placed: a purchase order's sent day, an exchange's shipped day, a lease's start, else the day it was made"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When it is due back: the promise, a core's or a lease's due day; null where none is set"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the part expected in; null on a line naming none"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order owing it; its `object` is the kind `kind[]=` narrows by"
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's open receipt, which its receipt verb opens; null until one is open, when that verb creates it"
          },
          "counterparty": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor or customer the order is with, by its company"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part expected in; null on a line naming none"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition it is expected in; null where none is expected"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "warehouse",
        "x-role": "line"
      },
      "DueInOrder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "due_on",
          "line_count",
          "status",
          "open_receipt",
          "order",
          "counterparty",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "due_in_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The order's own uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "purchase_order",
              "repair_order",
              "customer_return",
              "customer_exchange",
              "customer_lease",
              "work_order",
              "manifest",
              "sales_order"
            ],
            "description": "Which kind of order owes the goods; `kind[]=` narrows by it",
            "x-enum-descriptions": [
              "A part we bought, on its way from the vendor",
              "Our unit coming back from the repair shop",
              "A customer's units coming back",
              "A customer's exchange core coming back",
              "Our leased unit coming back from the customer",
              "A customer's own unit arriving for work in our shop",
              "A cost pool's parts still expected off its manifest",
              "A customer's unit coming in for the repair we sold them"
            ],
            "x-enum-labels": [
              "Purchase order",
              "Repair order",
              "Customer return",
              "Exchange",
              "Lease",
              "Work order",
              "Manifest",
              "Sales order"
            ]
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The earliest day a line on the order is due: a promise, a core's or a lease's due day; null where no line sets one"
          },
          "line_count": {
            "type": "integer",
            "description": "How many of the order's lines still owe us goods"
          },
          "status": {
            "type": "string",
            "enum": [
              "not_started",
              "in_progress",
              "waiting_on_inspection",
              "ready_to_receive"
            ],
            "description": "Where the order's receipt stands, as its rail reads it; `status[]=` narrows by it",
            "x-enum-descriptions": [
              "No receipt is in progress for the order yet",
              "Its receipt is open, with no line ready to receive yet",
              "Its receipt has lines ready, and a line waiting on its receiving inspection",
              "Its receipt has lines ready to receive, with nothing waiting on an inspection"
            ],
            "x-enum-labels": [
              "Not started",
              "In progress",
              "Waiting on inspection",
              "Ready to receive"
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's receipt in progress, which the row opens; null until one is open, when the order's receipt verb creates it"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order owing the goods, whose receipt verb Receive calls"
          },
          "counterparty": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor or customer the order is with, by its company"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "warehouse",
        "x-role": "master_data"
      },
      "EmailBanner": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "alt_text",
          "link_url",
          "starts_on",
          "ends_on",
          "audiences",
          "email_kinds",
          "inactive_at",
          "organization",
          "image",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_banner"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "alt_text": {
            "type": "string",
            "description": "What a reader whose images are off reads in the image's place"
          },
          "link_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the image links to, an `http://` or `https://` address; null links nowhere"
          },
          "starts_on": {
            "type": "string",
            "format": "date",
            "description": "The first day it runs, in the tenant's zone"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day it runs; null runs on until retired"
          },
          "audiences": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customers",
                "vendors"
              ],
              "x-enum-descriptions": [
                "Emails to the organization's customers",
                "Emails to the organization's vendors"
              ],
              "x-enum-labels": [
                "Customers",
                "Vendors"
              ]
            },
            "description": "`customers`: Emails to the organization's customers; `vendors`: Emails to the organization's vendors"
          },
          "email_kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "purchase_order",
                "repair_order",
                "vendor_rfq",
                "consignor_statement",
                "investor_statement",
                "shipping_confirmation"
              ],
              "x-enum-descriptions": [
                "A quote emailed to its customer",
                "An order acknowledgement emailed to its customer",
                "A proforma invoice emailed to its customer",
                "An invoice emailed to its customer",
                "A credit memo emailed to its customer",
                "A purchase order emailed to its vendor",
                "A repair order emailed to its repair shop",
                "An RFQ emailed to its vendor",
                "A consignor statement emailed to its consignor",
                "An investor statement emailed to its investor",
                "A shipping confirmation emailed to the customer a release shipped to"
              ],
              "x-enum-labels": [
                "Customer quote",
                "Customer order acknowledgement",
                "Proforma invoice",
                "Invoice",
                "Credit memo",
                "Purchase order",
                "Repair order",
                "Vendor RFQ",
                "Consignor statement",
                "Investor statement",
                "Shipping confirmation"
              ]
            },
            "description": "`customer_quote`: A quote emailed to its customer; `customer_order_acknowledgement`: An order acknowledgement emailed to its customer; `proforma_invoice`: A proforma invoice emailed to its customer; `invoice`: An invoice emailed to its customer; `credit_memo`: A credit memo emailed to its customer; `purchase_order`: A purchase order emailed to its vendor; `repair_order`: A repair order emailed to its repair shop; `vendor_rfq`: An RFQ emailed to its vendor; `consignor_statement`: A consignor statement emailed to its consignor; `investor_statement`: An investor statement emailed to its investor; `shipping_confirmation`: A shipping confirmation emailed to the customer a release shipped to"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "image": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "url",
              "version",
              "width",
              "height",
              "filename",
              "content_type",
              "byte_size"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "The image's permanent address, as an email's preview loads it; it never lapses, and serves whatever image the banner holds now"
              },
              "version": {
                "type": "string",
                "description": "The image's bytes, digested: it changes when the image does. Sent as `v` on `url`, it draws a replaced image anew"
              },
              "width": {
                "type": "integer",
                "description": "In pixels"
              },
              "height": {
                "type": "integer",
                "description": "In pixels"
              },
              "filename": {
                "type": "string"
              },
              "content_type": {
                "type": "string"
              },
              "byte_size": {
                "type": "integer"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "upload_image"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "in_form",
          "category",
          "byte_size",
          "content_type",
          "source",
          "upload"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_file"
          },
          "kind": {
            "type": "string",
            "enum": [
              "release",
              "unit",
              "invoice"
            ],
            "description": "Where it comes from: the release itself, a unit it shipped, or an invoice raised from it"
          },
          "heading": {
            "type": "string",
            "description": "The group it sits in, as a person reads it: the release (`Release RLS-12`), the line and its unit (`Line 1 · INVL-40`), or the invoice (`Invoice INVC-7`)"
          },
          "name": {
            "type": "string"
          },
          "form": {
            "type": [
              "string",
              "null"
            ],
            "description": "The form `source` prints, which goes as it prints when the email is sent; null for an upload"
          },
          "in_form": {
            "type": "boolean",
            "description": "Whether the form the email carries already prints it: a unit's PDF or image file, which the shipping packet includes"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "byte_size": {
            "type": [
              "number",
              "null"
            ],
            "description": "Its size; for a form, as it last printed, and null until it has"
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the file hangs off, or whose form it is"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The upload, which `POST /releases/{uuid}/email` takes in `files` as `upload_uuid`; null for a form, named by its `invoice_uuid`"
          }
        },
        "x-area": "warehouse",
        "x-role": "line"
      },
      "EmailKind": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "label",
          "audience",
          "fields",
          "subject",
          "body"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_kind"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer_quote",
              "customer_order_acknowledgement",
              "proforma_invoice",
              "invoice",
              "credit_memo",
              "purchase_order",
              "repair_order",
              "vendor_rfq",
              "consignor_statement",
              "investor_statement",
              "shipping_confirmation"
            ]
          },
          "label": {
            "type": "string"
          },
          "audience": {
            "type": "string",
            "enum": [
              "customers",
              "vendors"
            ]
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "label",
                "meaning"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "meaning": {
                  "type": "string"
                }
              }
            },
            "description": "The fields a template's subject and body may hold, each by the `attrs.name` its chip takes and the short label it shows"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "One line as a Tiptap (ProseMirror) document: a `doc` holding one `paragraph` of unmarked `text` and `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value). No mark, break or list is taken, and its words and fallbacks hold 250 characters at most",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone",
                                      "customer_po_number",
                                      "balance_due",
                                      "due_date",
                                      "vendor_reference",
                                      "vendor_quote_number",
                                      "statement_date",
                                      "net",
                                      "inventory_name",
                                      "order_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone",
                                          "customer_po_number",
                                          "balance_due",
                                          "due_date",
                                          "vendor_reference",
                                          "vendor_quote_number",
                                          "statement_date",
                                          "net",
                                          "inventory_name",
                                          "order_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone",
                                                      "customer_po_number",
                                                      "balance_due",
                                                      "due_date",
                                                      "vendor_reference",
                                                      "vendor_quote_number",
                                                      "statement_date",
                                                      "net",
                                                      "inventory_name",
                                                      "order_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailLayoutBlock": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "placement",
          "position",
          "body",
          "alt_text",
          "organization"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_layout_block"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "logo",
              "text",
              "divider",
              "summary",
              "signature",
              "footer"
            ],
            "description": "`logo`: The organization's logo, with the alt text a reader sees while images are off; `text`: Words the layout adds to every email, in `body`; `divider`: A thin line in the layout's accent color; `summary`: The number, total and key date of the record the email is about; nothing on an email about no record; `signature`: The organization's signature in `body`, its sender chips filled from whoever sends; a person's own signature replaces it for their emails, and the banner a send matches goes directly under it. A layout holds one, after the message; `footer`: Small print in `body`, in muted type",
            "x-enum-descriptions": [
              "The organization's logo, with the alt text a reader sees while images are off",
              "Words the layout adds to every email, in `body`",
              "A thin line in the layout's accent color",
              "The number, total and key date of the record the email is about; nothing on an email about no record",
              "The organization's signature in `body`, its sender chips filled from whoever sends; a person's own signature replaces it for their emails, and the banner a send matches goes directly under it. A layout holds one, after the message",
              "Small print in `body`, in muted type"
            ],
            "x-enum-labels": [
              "Logo",
              "Text",
              "Divider",
              "Summary",
              "Signature",
              "Footer"
            ]
          },
          "placement": {
            "type": "string",
            "enum": [
              "before",
              "after"
            ],
            "description": "`before`: Above the message; `after`: Below the message",
            "x-enum-descriptions": [
              "Above the message",
              "Below the message"
            ],
            "x-enum-labels": [
              "Before",
              "After"
            ]
          },
          "position": {
            "type": "integer",
            "description": "Its place among the blocks on the same side of the message, counting from 1"
          },
          "body": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "A text, signature or footer block's words, the sender's `field`s only in a signature's; null on every other kind",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "sender_name",
                                          "sender_title",
                                          "sender_phone"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "sender_name",
                                                      "sender_title",
                                                      "sender_phone"
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "alt_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "What a logo block says while the reader's images are off; null on every other kind"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization whose layout holds it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailLayout": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "accent_color",
          "font",
          "alignment",
          "organization"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_layout"
          },
          "accent_color": {
            "type": "string",
            "description": "The color dividers, links and the summary's edge are drawn in, as `#rrggbb`"
          },
          "font": {
            "type": "string",
            "enum": [
              "arial",
              "georgia",
              "helvetica",
              "tahoma",
              "times",
              "trebuchet",
              "verdana"
            ],
            "description": "The email-safe font every block and the message are set in",
            "x-enum-descriptions": [
              "The email's words, in the first of Arial, Helvetica, sans-serif the reader's mail app has",
              "The email's words, in the first of Georgia, 'Times New Roman', Times, serif the reader's mail app has",
              "The email's words, in the first of Helvetica, Arial, sans-serif the reader's mail app has",
              "The email's words, in the first of Tahoma, Verdana, Segoe, sans-serif the reader's mail app has",
              "The email's words, in the first of 'Times New Roman', Times, serif the reader's mail app has",
              "The email's words, in the first of 'Trebuchet MS', Helvetica, sans-serif the reader's mail app has",
              "The email's words, in the first of Verdana, Geneva, sans-serif the reader's mail app has"
            ],
            "x-enum-labels": [
              "Arial",
              "Georgia",
              "Helvetica",
              "Tahoma",
              "Times",
              "Trebuchet",
              "Verdana"
            ]
          },
          "alignment": {
            "type": "string",
            "enum": [
              "left",
              "center"
            ],
            "description": "`left`: Blocks line up on the left, with the message; `center`: The logo, text and footer blocks are centered; the message stays on the left",
            "x-enum-descriptions": [
              "Blocks line up on the left, with the message",
              "The logo, text and footer blocks are centered; the message stays on the left"
            ],
            "x-enum-labels": [
              "Left",
              "Center"
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "preview"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailPreview": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "subject",
          "html",
          "plain",
          "record"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_preview"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "The subject line as it goes out, its fields filled; null where there's no record to fill it from"
          },
          "html": {
            "type": "string",
            "description": "The email's HTML part: one table, every style inline"
          },
          "plain": {
            "type": "string",
            "description": "The email's plain-text part, built from the same blocks"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the email is about, its summary drawn in the summary block; null where the organization has no quote yet"
          }
        }
      },
      "EmailSenderRule": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sender",
          "kind",
          "effect",
          "note",
          "expiry",
          "expires_on",
          "expires_after_days_unused",
          "last_used_at",
          "created_by",
          "message",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_sender_rule"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sender": {
            "type": "string",
            "description": "The address (dana@example.com) or the domain (example.com) the rule covers, lowercase; it never changes once made"
          },
          "kind": {
            "type": "string",
            "enum": [
              "address",
              "domain"
            ],
            "description": "Whether the rule covers one address or a whole domain; an address's own rule outranks its domain's",
            "x-enum-descriptions": [
              "The rule covers this one address",
              "The rule covers every address at this domain, or at a domain under it, that has no rule of its own"
            ],
            "x-enum-labels": [
              "Address",
              "Domain"
            ]
          },
          "effect": {
            "type": "string",
            "enum": [
              "block",
              "allow"
            ],
            "description": "What the rule does to email from the sender",
            "x-enum-descriptions": [
              "Its email is held unread, as From a blocked sender, until it is unblocked",
              "Its email isn't held when the mail scan marks it as spam, and shows no first-email or lookalike warning; it is still held for malware or a failed authentication, and is never treated as confirmed to come from them"
            ],
            "x-enum-labels": [
              "Blocked",
              "Allowed"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the rule was made, as whoever made it wrote it"
          },
          "expiry": {
            "type": "string",
            "enum": [
              "never",
              "on_date",
              "after_last_use"
            ],
            "description": "When the rule ends by itself: `never`, `on_date` once `expires_on` has passed, or `after_last_use` once `expires_after_days_unused` days pass with no arriving email it governs; an expired rule is deleted, narrating `expired`",
            "x-enum-descriptions": [
              "The rule stands until someone removes it",
              "The rule is removed once its last day, `expires_on`, has passed",
              "The rule is removed once `expires_after_days_unused` days pass with no arriving email it governs"
            ],
            "x-enum-labels": [
              "Never",
              "On a date",
              "After going unused"
            ]
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The rule's last day, in the tenant's time zone; under `after_last_use` it moves later each day an email it governs arrives. Null when it never expires"
          },
          "expires_after_days_unused": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How many days without an email it governs end the rule; null unless `expiry` is `after_last_use`"
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When an email the rule governs last arrived, kept to the day; null until one does"
          },
          "created_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who made it; null when the seat is gone or the system did"
          },
          "message": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MessageStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email it was made from, by Block sender, Allow sender or Mark as spam; null when it was typed"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailSendingSettings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "mode",
          "sending",
          "reply_to",
          "bcc_sender",
          "organization",
          "sending_domain"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_sending_settings"
          },
          "mode": {
            "type": "string",
            "enum": [
              "off",
              "verified_domain"
            ],
            "description": "`off`: Email leaves from Terminal's own address; `verified_domain`: Email leaves from the chosen verified domain, as the person sending it or a confirmed shared address",
            "x-enum-descriptions": [
              "Email leaves from Terminal's own address",
              "Email leaves from the chosen verified domain, as the person sending it or a confirmed shared address"
            ],
            "x-enum-labels": [
              "Terminal's address",
              "Verified domain"
            ]
          },
          "sending": {
            "type": "boolean",
            "description": "Whether mail leaves as the chosen domain now; false while the domain isn't verified, when it leaves from Terminal's address"
          },
          "reply_to": {
            "type": "string",
            "enum": [
              "sender_and_terminal",
              "sender_only"
            ],
            "description": "`sender_and_terminal`: Replies go to the sender and to Terminal, so they show on the record; `sender_only`: Replies go to the sender only",
            "x-enum-descriptions": [
              "Replies go to the sender and to Terminal, so they show on the record",
              "Replies go to the sender only"
            ],
            "x-enum-labels": [
              "Sender and Terminal",
              "Sender only"
            ]
          },
          "bcc_sender": {
            "type": "boolean",
            "description": "Whether the person sending is copied (Bcc) on each email"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sending_domain": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SendingDomainStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The verified domain mail leaves as; null where none is chosen"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailSuppression": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "email_address",
          "reason",
          "suppressed_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_suppression"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "email_address": {
            "type": "string",
            "description": "The address, lowercase"
          },
          "reason": {
            "type": "string",
            "enum": [
              "bounce",
              "complaint"
            ],
            "description": "Why it is on the suppression list",
            "x-enum-descriptions": [
              "An email to it bounced for good",
              "Its recipient reported an email as spam"
            ],
            "x-enum-labels": [
              "Bounced",
              "Reported as spam"
            ]
          },
          "suppressed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the mail service last put it on the list"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailTemplate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "kind",
          "subject",
          "body",
          "cc_addresses",
          "adds_signature",
          "default",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_template"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer_quote",
              "customer_order_acknowledgement",
              "proforma_invoice",
              "invoice",
              "credit_memo",
              "purchase_order",
              "repair_order",
              "vendor_rfq",
              "consignor_statement",
              "investor_statement",
              "shipping_confirmation"
            ],
            "description": "The kind of email it words, which names the fields its words may hold",
            "x-enum-descriptions": [
              "A quote emailed to its customer",
              "An order acknowledgement emailed to its customer",
              "A proforma invoice emailed to its customer",
              "An invoice emailed to its customer",
              "A credit memo emailed to its customer",
              "A purchase order emailed to its vendor",
              "A repair order emailed to its repair shop",
              "An RFQ emailed to its vendor",
              "A consignor statement emailed to its consignor",
              "An investor statement emailed to its investor",
              "A shipping confirmation emailed to the customer a release shipped to"
            ],
            "x-enum-labels": [
              "Customer quote",
              "Customer order acknowledgement",
              "Proforma invoice",
              "Invoice",
              "Credit memo",
              "Purchase order",
              "Repair order",
              "Vendor RFQ",
              "Consignor statement",
              "Investor statement",
              "Shipping confirmation"
            ]
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject, one line whose fields the kind names",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone",
                                      "customer_po_number",
                                      "balance_due",
                                      "due_date",
                                      "vendor_reference",
                                      "vendor_quote_number",
                                      "statement_date",
                                      "net",
                                      "inventory_name",
                                      "order_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message, whose fields the kind names",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone",
                                          "customer_po_number",
                                          "balance_due",
                                          "due_date",
                                          "vendor_reference",
                                          "vendor_quote_number",
                                          "statement_date",
                                          "net",
                                          "inventory_name",
                                          "order_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone",
                                                      "customer_po_number",
                                                      "balance_due",
                                                      "due_date",
                                                      "vendor_reference",
                                                      "vendor_quote_number",
                                                      "statement_date",
                                                      "net",
                                                      "inventory_name",
                                                      "order_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "cc_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Copied on every email it words"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under the message"
          },
          "default": {
            "type": "boolean",
            "description": "Whether an email of its kind opens in its words. At most one of an organization's templates for each kind is; with none, the kind's own words are used"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "make_default"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "EmailTemplatePreferences": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "choices"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "email_template_preferences"
          },
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "organization",
                "kind",
                "kind_label",
                "default",
                "email_template",
                "templates"
              ],
              "properties": {
                "organization": {
                  "$ref": "#/components/schemas/CodedStub",
                  "description": "Whose templates these are"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "customer_quote",
                    "customer_order_acknowledgement",
                    "proforma_invoice",
                    "invoice",
                    "credit_memo",
                    "purchase_order",
                    "repair_order",
                    "vendor_rfq",
                    "consignor_statement",
                    "investor_statement",
                    "shipping_confirmation"
                  ],
                  "description": "Which kind of email, as a `PATCH` names it"
                },
                "kind_label": {
                  "type": "string",
                  "description": "The kind of email, in a sentence"
                },
                "default": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The organization's Default, which an email opens in while you choose none; null when it has none"
                },
                "email_template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template you chose, which an email opens in ahead of the Default; null while you choose the Default"
                },
                "templates": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Stub"
                  },
                  "description": "Every active template of this kind the organization keeps, by name: what you may choose"
                }
              }
            },
            "description": "Each kind of email an organization keeps active templates for, by organization and then kind"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Employee": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "name",
          "email_address",
          "hourly_cost_cents",
          "certificate_number",
          "assigned_hours",
          "away_until",
          "has_avatar",
          "currency_code",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "employee"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The login's email address; null for an employee with no login"
          },
          "hourly_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "assigned_hours": {
            "type": "number",
            "description": "The estimated hours of the open tasks assigned to the employee, leaving out skills excluded from assigned hours"
          },
          "away_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this person's current time away ends: back-to-back or overlapping away events and closures count as one stretch, looking ahead at most 90 days. An all-day stretch ends at the start of the business day after its last. Round robin passes over someone away. Null when they aren't away now; null for an employee with no login, whom no calendar names"
          },
          "has_avatar": {
            "type": "boolean",
            "description": "Whether `GET /employees/{uuid}/avatar` serves the person's picture, a redirect to the image at a link that lapses in minutes"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The login the employee works under, if they have one; null for one with none"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "overview_counts": {
            "type": "object",
            "description": "What the employee holds: the skills that count now, active and not expired. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "skills": {
                "type": "integer"
              }
            },
            "required": [
              "skills"
            ]
          },
          "skills": {
            "$ref": "#/components/schemas/EmployeeSkillList",
            "description": "Present when `expand[]=skills` asked for it: the first page"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "EmployeeSkill": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "expires_on",
          "expired",
          "skill_inspection_approved",
          "assigned_hours",
          "inactive_at",
          "employee",
          "skill",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "employee_skill"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expired": {
            "type": "boolean"
          },
          "skill_inspection_approved": {
            "type": "boolean"
          },
          "assigned_hours": {
            "type": [
              "number",
              "null"
            ],
            "description": "The estimated hours this skill takes on the open tasks assigned to the employee; null where the skill is excluded from assigned hours"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "Event": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "action",
          "summary",
          "summarized",
          "subject_type",
          "actor_kind",
          "via",
          "particulars",
          "field_labels",
          "value_labels",
          "change_labels",
          "links",
          "actor_label",
          "subject_label",
          "type",
          "previous_attributes",
          "creator",
          "subject",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "event"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "enum": [
              "access_token_minted",
              "access_token_revoked",
              "activated",
              "added_to_receipt",
              "added_to_repair_order",
              "added_to_suppression_list",
              "answered_no_quote",
              "application_authorized",
              "application_revoked",
              "applied",
              "approved",
              "arrived",
              "asked",
              "asked_for",
              "assigned",
              "assignments_forgotten",
              "autoquoted",
              "bought_outright",
              "built",
              "calendar_feed_issued",
              "calendar_feed_reset",
              "calibrated",
              "cancelled",
              "capabilities_changed",
              "carried_over",
              "certificate_deleted",
              "certificate_drafted",
              "certificate_revised",
              "certificate_signed",
              "certificate_signed_by_hand",
              "certificate_voided",
              "change_acknowledged",
              "charge_billed",
              "checked",
              "chosen_to_open_first",
              "closed",
              "combined",
              "combined_into",
              "comparison_stated",
              "company_linked",
              "company_unlinked",
              "completed",
              "condition_mapped",
              "confirmed",
              "connected",
              "contacts_changed",
              "conversion_reverted",
              "converted",
              "converted_to_cost_pool",
              "copied",
              "copied_from",
              "core_added_to_repair_order",
              "core_allocated",
              "core_billed",
              "core_bought",
              "core_due_revised",
              "core_owed",
              "core_purchase_removed",
              "core_received",
              "core_repair_billed",
              "core_returned_to_inventory",
              "core_scrapped",
              "core_shipped",
              "core_unshipped",
              "corrected",
              "correction_generated",
              "cost_pool_revised",
              "cost_recovered",
              "cost_transferred_in",
              "cost_transferred_out",
              "cost_unpriced",
              "cost_variance",
              "created",
              "credentials_changed",
              "credit_generated",
              "credit_memo_generated",
              "credit_memo_sent",
              "credited",
              "currency_changed",
              "custody_allocated",
              "custody_returned",
              "customer_replied",
              "customer_unit_received",
              "customer_unit_returned",
              "customer_unit_scrapped",
              "deactivated",
              "declined",
              "declined_quote_sending_started",
              "declined_quote_sending_stopped",
              "defaults_changed",
              "deleted",
              "did_not_arrive",
              "direct_rfq_answers_changed",
              "disconnected",
              "downloaded",
              "draft_discarded",
              "drafted",
              "drafted_from_message",
              "due_back_revised",
              "duplicated",
              "duplicated_from",
              "email_bounced",
              "email_reported_as_spam",
              "email_resumed",
              "email_stopped",
              "email_template_chosen",
              "email_template_cleared",
              "emailed",
              "exchange_activity_recorded",
              "exchange_cancelled",
              "exchange_opened",
              "expired",
              "external_key_linked",
              "external_key_unlinked",
              "failed",
              "fields_drafted",
              "file_attached",
              "file_copying_started",
              "file_copying_stopped",
              "file_removed",
              "files_shared",
              "finding_added",
              "finding_removed",
              "finding_updated",
              "finish_refused",
              "finish_scheduled",
              "finished",
              "following_revised",
              "fx_rate_stamped",
              "gate_reached",
              "generated",
              "given",
              "held",
              "held_for_review",
              "hidden_marketplaces_changed",
              "hold_lifted",
              "hold_placed",
              "humidity_over_limit",
              "ignored",
              "initial_load_reopened",
              "inspection_completed",
              "inspection_discarded",
              "inspection_item_answered",
              "inspection_item_waived",
              "inspection_reopened",
              "inspection_started",
              "instruction_added",
              "instruction_assigned",
              "instruction_cancelled",
              "instruction_carried_forward",
              "instruction_completed",
              "instruction_removed",
              "instruction_reopened",
              "instruction_updated",
              "instructions_imported",
              "inventory_line_minted",
              "invited",
              "invoice_generated",
              "invoice_sent",
              "issue_allocated",
              "issue_quarantined",
              "issue_removed",
              "issue_seeded",
              "issue_split_planned",
              "kept_as_draft",
              "kept_from_autoquote",
              "labor_clocked_in",
              "labor_charged",
              "labor_clocked_out",
              "labor_corrected",
              "labor_keyed",
              "labor_removed",
              "layout_fell_back",
              "lease_opened",
              "lease_unit_allocated",
              "line_added",
              "line_allocated",
              "line_cancelled",
              "line_deallocated",
              "line_estimate_approved",
              "line_estimate_recorded",
              "line_final_cost_recorded",
              "line_matched",
              "line_moved",
              "line_picked",
              "line_promise_revised",
              "line_rejected",
              "line_removed",
              "line_repointed",
              "line_returned_to_inventory",
              "line_scrapped",
              "line_shipped",
              "line_split",
              "line_unpicked",
              "line_unshipped",
              "line_unverified",
              "line_updated",
              "line_verified",
              "lines_aligned_to_requests",
              "lines_imported",
              "lines_moved_in",
              "lines_reordered",
              "load_failed",
              "loaded",
              "logged",
              "lost",
              "lost_reason_changed",
              "mapping_saved",
              "material_added",
              "material_added_to_repair_order",
              "material_flagged_unused",
              "material_issued",
              "material_moved",
              "material_ordered",
              "material_reallocated",
              "material_rejected",
              "material_removed",
              "material_returned",
              "material_turn_in_cancelled",
              "material_turned_in",
              "material_updated",
              "material_visually_checked",
              "materials_imported",
              "measurement_unit_mapped",
              "members_changed",
              "moved",
              "noted_from_message",
              "occurrence_cancelled",
              "occurrence_revised",
              "onboarding_dismissed",
              "onboarding_undismissed",
              "opened",
              "ordered",
              "orders_left_waiting",
              "outright_purchase_removed",
              "package_added",
              "package_arrived",
              "part_numbers_resolved",
              "part_removed",
              "participant_added",
              "parts_added",
              "parts_issued",
              "parts_returned_to_inventory",
              "parts_shipped",
              "parts_unshipped",
              "payment_applied",
              "payment_recorded",
              "payment_unapplied",
              "payment_voided",
              "period_billed",
              "period_charged",
              "posted",
              "posting_recorded",
              "print_expired",
              "print_failed",
              "print_requested",
              "printed",
              "promise_revised",
              "protection_held",
              "protection_released",
              "published",
              "publications_applied",
              "publications_changed",
              "purchased_without_coverage",
              "push_back_scheduled",
              "quickbooks_linked",
              "quickbooks_relinked",
              "quickbooks_unlinked",
              "quote_line_added",
              "quote_line_moved",
              "quote_line_removed",
              "quote_line_updated",
              "quote_lines_aligned_to_requests",
              "quoted_unit_unavailable",
              "quoted_vendor_inventory_unavailable",
              "quoting_reading_started",
              "quoting_reading_stopped",
              "rate_revised",
              "read",
              "receipt_created",
              "receipt_received",
              "received",
              "recorded",
              "records_skipped",
              "records_unskipped",
              "refund_clamped",
              "reissued",
              "removed_from_suppression_list",
              "renamed",
              "release_cancelled",
              "release_generated",
              "release_shipped",
              "release_split",
              "release_unshipped",
              "releases_combined",
              "reopened",
              "repair_service_mapped",
              "replacement_ordered",
              "reply_handled",
              "reposted",
              "reprint_requested",
              "reprinted",
              "reprocessed",
              "request_line_added",
              "request_line_moved",
              "request_line_removed",
              "request_line_updated",
              "requested_for",
              "requirement_added",
              "requirement_removed",
              "requirement_waived",
              "requirements_changed",
              "resent",
              "restated_from_message",
              "restored",
              "resumed",
              "return_opened",
              "returned_to_inventory",
              "returned_to_queue",
              "returned_to_vendor",
              "revision_adopted",
              "role_mapped",
              "roles_changed",
              "scrapped",
              "sender_allowed",
              "sender_blocked",
              "sending_domain_failing",
              "sending_domain_recovered",
              "sent",
              "sent_to_avsight",
              "sent_to_purchasing",
              "sent_to_sourcing",
              "share_extended",
              "share_fresh_link_sent",
              "share_link_reissued",
              "share_recipient_extended",
              "share_recipient_revoked",
              "share_recipients_added",
              "share_revised",
              "share_revoked",
              "shared_document_replaced",
              "shared_file_downloaded",
              "shared_file_removed",
              "shared_files_added",
              "shared_files_downloaded",
              "shared_files_opened",
              "shipment_cancelled",
              "shipped",
              "shop_supply_added",
              "shop_supply_removed",
              "shop_supply_updated",
              "signed_out",
              "signer_skill_changed",
              "skipped",
              "skipped_away",
              "sold_outright",
              "sourcing_request_carried_over",
              "split",
              "split_from",
              "phases_changed",
              "statement_sent",
              "status_changed",
              "stopped_opening_first",
              "superseded",
              "supply_claimed",
              "supply_landed",
              "supply_reassigned",
              "supply_released",
              "support_access_turned_off",
              "support_access_turned_on",
              "system_of_record_switched",
              "task_added",
              "task_assigned",
              "task_cancelled",
              "task_removed",
              "task_skills_changed",
              "task_status_changed",
              "task_updated",
              "tasks_imported",
              "tasks_made_ready",
              "tasks_repriced",
              "tax_applied",
              "tax_suppressed",
              "teardown_completed",
              "teardown_undone",
              "template_applied",
              "template_instructions_copied",
              "template_materials_copied",
              "tier_changed",
              "trashed",
              "trigger_skipped",
              "unit_added_to_repair_order",
              "unit_returned",
              "unit_shipped_back",
              "unit_unshipped",
              "unrecovered_cost_billed",
              "updated",
              "value_adjusted",
              "value_matches_changed",
              "verified",
              "version_added",
              "voucher_generated",
              "vouchered",
              "warehouse_defaults_applied",
              "warehouse_defaults_dismissed",
              "withdrawn",
              "won",
              "work_completed",
              "work_started",
              "written_off"
            ]
          },
          "summary": {
            "type": "string",
            "description": "What happened, as one sentence naming its particulars (`Revoked Jane Ruiz's link`); an action with no sentence reads as its humanized name"
          },
          "summarized": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The particulars `summary` or `via` names, which a reader is already told"
          },
          "subject_type": {
            "type": "string"
          },
          "actor_kind": {
            "type": "string",
            "enum": [
              "user",
              "bot",
              "staff",
              "recipient",
              "system"
            ],
            "description": "`user`: A member, through the web or their own token; `bot`: A bot's seat, through its token; `staff`: CorePilot staff, on their support seat; `recipient`: Someone files were shared with, who holds no seat and so no `creator`; `system`: CorePilot itself, a job or a rule with nobody acting, or someone in the system `via` names whom no seat stands for",
            "x-enum-descriptions": [
              "A member, through the web or their own token",
              "A bot's seat, through its token",
              "CorePilot staff, on their support seat",
              "Someone files were shared with, who holds no seat and so no `creator`",
              "CorePilot itself, a job or a rule with nobody acting, or someone in the system `via` names whom no seat stands for"
            ],
            "x-enum-labels": [
              "User",
              "Bot",
              "Staff",
              "Recipient",
              "System"
            ]
          },
          "via": {
            "type": [
              "string",
              "null"
            ]
          },
          "particulars": {
            "type": "object",
            "x-particulars": {
              "access_token_minted": [
                "description",
                "expires_on",
                "scopes"
              ],
              "access_token_revoked": [
                "description"
              ],
              "activated": [],
              "added_to_receipt": [
                "lines",
                "receipt"
              ],
              "added_to_repair_order": [
                "description",
                "line",
                "part_number",
                "repair_order"
              ],
              "added_to_suppression_list": [
                "email_address",
                "reason"
              ],
              "answered_no_quote": [
                "lines",
                "reason",
                "rule"
              ],
              "application_authorized": [
                "application",
                "scopes"
              ],
              "application_revoked": [
                "application"
              ],
              "applied": [
                "created",
                "failed",
                "linked",
                "matched",
                "merged",
                "problems",
                "removed",
                "skipped",
                "updated",
                "waiting"
              ],
              "approved": [
                "invoice_number",
                "total"
              ],
              "arrived": [],
              "asked": [
                "vendor_rfqs",
                "vendors"
              ],
              "asked_for": [
                "sourcing_request"
              ],
              "assigned": [
                "changes",
                "rule"
              ],
              "assignments_forgotten": [
                "count",
                "from_realm",
                "to_realm"
              ],
              "autoquoted": [
                "autoquote_attempt",
                "declined",
                "mode",
                "quoted",
                "removed",
                "skipped",
                "status"
              ],
              "bought_outright": [
                "amount",
                "description",
                "line",
                "part_number",
                "quantity"
              ],
              "built": [
                "rows"
              ],
              "calendar_feed_issued": [],
              "calendar_feed_reset": [],
              "calibrated": [
                "due_on",
                "result"
              ],
              "cancelled": [
                "reason"
              ],
              "capabilities_changed": [
                "added",
                "retired"
              ],
              "carried_over": [
                "customer_quote",
                "description",
                "line",
                "part_number",
                "repair_order",
                "sales_order"
              ],
              "certificate_deleted": [
                "certificate",
                "form"
              ],
              "certificate_drafted": [
                "certificate",
                "form",
                "replaces"
              ],
              "certificate_revised": [
                "certificate",
                "form"
              ],
              "certificate_signed": [
                "certificate",
                "form",
                "signer"
              ],
              "certificate_signed_by_hand": [
                "certificate",
                "form",
                "signer"
              ],
              "certificate_voided": [
                "certificate",
                "form",
                "reason"
              ],
              "change_acknowledged": [],
              "charge_billed": [
                "amount",
                "description",
                "invoice",
                "line",
                "part_number",
                "quantity"
              ],
              "checked": [
                "problems",
                "rows"
              ],
              "chosen_to_open_first": [
                "audience"
              ],
              "closed": [
                "ordered",
                "quoted",
                "reason",
                "received"
              ],
              "combined": [
                "releases"
              ],
              "combined_into": [
                "release"
              ],
              "comparison_stated": [
                "billed_value",
                "count",
                "family",
                "inventory_value",
                "ordered_value",
                "quoted_value"
              ],
              "company_linked": [
                "company"
              ],
              "company_unlinked": [
                "company"
              ],
              "completed": [
                "reason"
              ],
              "condition_mapped": [
                "answers",
                "condition",
                "lists_as"
              ],
              "confirmed": [],
              "connected": [
                "org",
                "realm"
              ],
              "contacts_changed": [
                "contacts"
              ],
              "conversion_reverted": [
                "inventory"
              ],
              "converted": [
                "lines",
                "purchase_order",
                "sales_order",
                "work_orders"
              ],
              "converted_to_cost_pool": [
                "inventory",
                "value"
              ],
              "copied": [
                "customer_quote",
                "sales_order"
              ],
              "copied_from": [
                "customer_quote",
                "sales_order",
                "work_order"
              ],
              "core_added_to_repair_order": [
                "core",
                "repair_order"
              ],
              "core_allocated": [
                "exchange",
                "quantity",
                "supply"
              ],
              "core_billed": [
                "amount",
                "description",
                "invoice",
                "line",
                "part_number",
                "quantity"
              ],
              "core_bought": [
                "amount",
                "capitalized",
                "description",
                "line",
                "part_number",
                "quantity"
              ],
              "core_due_revised": [
                "core_due_on"
              ],
              "core_owed": [
                "exchange",
                "quantity"
              ],
              "core_purchase_removed": [
                "description",
                "line",
                "part_number",
                "quantity"
              ],
              "core_received": [
                "receipt"
              ],
              "core_repair_billed": [
                "amount",
                "description",
                "invoice",
                "line",
                "part_number",
                "quantity"
              ],
              "core_returned_to_inventory": [
                "condition",
                "core"
              ],
              "core_scrapped": [
                "core"
              ],
              "core_shipped": [
                "capitalized",
                "release"
              ],
              "core_unshipped": [
                "release"
              ],
              "corrected": [
                "invoice_number",
                "record",
                "voucher"
              ],
              "correction_generated": [
                "correction"
              ],
              "cost_pool_revised": [
                "changes"
              ],
              "cost_recovered": [
                "credited",
                "description",
                "inventory_line",
                "issued",
                "line",
                "part_number"
              ],
              "cost_transferred_in": [
                "amount",
                "from",
                "note"
              ],
              "cost_transferred_out": [
                "amount",
                "note",
                "to"
              ],
              "cost_unpriced": [
                "description",
                "inventory_line",
                "line",
                "part_number"
              ],
              "cost_variance": [
                "amount",
                "description",
                "inventory_line",
                "line",
                "part_number"
              ],
              "created": [
                "description",
                "filename",
                "key",
                "line",
                "part_number",
                "system"
              ],
              "credentials_changed": [
                "fields"
              ],
              "credit_generated": [
                "credit"
              ],
              "credit_memo_generated": [
                "credit_memo",
                "return"
              ],
              "credit_memo_sent": [
                "record"
              ],
              "credited": [
                "invoice_number",
                "voucher"
              ],
              "currency_changed": [
                "currency",
                "fx_rate"
              ],
              "custody_allocated": [
                "description",
                "line",
                "part_number",
                "quantity",
                "supply"
              ],
              "custody_returned": [
                "description",
                "line",
                "part_number",
                "repair_order"
              ],
              "customer_replied": [
                "message"
              ],
              "customer_unit_received": [
                "receipt"
              ],
              "customer_unit_returned": [
                "description",
                "line",
                "part_number"
              ],
              "customer_unit_scrapped": [
                "description",
                "line",
                "note",
                "part_number",
                "rejection",
                "repair_order"
              ],
              "deactivated": [
                "reason"
              ],
              "declined": [
                "lines"
              ],
              "declined_quote_sending_started": [],
              "declined_quote_sending_stopped": [],
              "defaults_changed": [
                "added",
                "dropped"
              ],
              "deleted": [
                "name"
              ],
              "did_not_arrive": [
                "part_number",
                "quantity",
                "serial_number"
              ],
              "direct_rfq_answers_changed": [
                "answers"
              ],
              "disconnected": [
                "reason"
              ],
              "downloaded": [
                "file",
                "form"
              ],
              "draft_discarded": [],
              "drafted": [
                "customer_quote"
              ],
              "drafted_from_message": [
                "duplicate_of",
                "lines",
                "message",
                "reading"
              ],
              "due_back_revised": [
                "due_back_on"
              ],
              "duplicated": [
                "vendor",
                "vendor_rfq"
              ],
              "duplicated_from": [
                "vendor_rfq"
              ],
              "email_bounced": [
                "message",
                "reason",
                "recipients"
              ],
              "email_reported_as_spam": [
                "message",
                "reason",
                "recipients"
              ],
              "email_resumed": [
                "topic"
              ],
              "email_stopped": [
                "topic"
              ],
              "email_template_chosen": [
                "email_template",
                "kind"
              ],
              "email_template_cleared": [
                "email_template",
                "kind"
              ],
              "emailed": [
                "cc",
                "contacts",
                "document",
                "email_template",
                "files",
                "form",
                "message",
                "recipients"
              ],
              "exchange_activity_recorded": [
                "activity",
                "amount",
                "occurred_on",
                "quantity",
                "reference",
                "system"
              ],
              "exchange_cancelled": [
                "lines"
              ],
              "exchange_opened": [
                "description",
                "exchange",
                "line",
                "part_number"
              ],
              "expired": [
                "expires_on"
              ],
              "external_key_linked": [
                "checklist",
                "description",
                "item",
                "key",
                "line",
                "part_number",
                "replaced",
                "supply",
                "system"
              ],
              "external_key_unlinked": [
                "description",
                "key",
                "system"
              ],
              "failed": [
                "failure",
                "reason"
              ],
              "fields_drafted": [
                "form",
                "hidden",
                "shown"
              ],
              "file_attached": [
                "description",
                "filename",
                "finding",
                "line",
                "part_number"
              ],
              "file_copying_started": [],
              "file_copying_stopped": [],
              "file_removed": [
                "description",
                "filename",
                "finding",
                "line",
                "part_number"
              ],
              "files_shared": [
                "expires_on",
                "files",
                "recipients"
              ],
              "finding_added": [
                "description",
                "finding",
                "task"
              ],
              "finding_removed": [
                "description",
                "finding"
              ],
              "finding_updated": [
                "changes",
                "description",
                "finding"
              ],
              "finish_refused": [
                "reason"
              ],
              "finish_scheduled": [
                "finishes_on"
              ],
              "finished": [],
              "following_revised": [
                "changes",
                "occurrence",
                "series"
              ],
              "fx_rate_stamped": [
                "fx_rate"
              ],
              "gate_reached": [
                "gate"
              ],
              "generated": [
                "form"
              ],
              "given": [
                "audience"
              ],
              "held": [
                "reason"
              ],
              "held_for_review": [
                "rule"
              ],
              "hidden_marketplaces_changed": [
                "marketplaces"
              ],
              "hold_lifted": [
                "kind",
                "note"
              ],
              "hold_placed": [
                "kind",
                "note"
              ],
              "humidity_over_limit": [
                "humidity",
                "instruction",
                "max_humidity",
                "name",
                "task",
                "temperature"
              ],
              "ignored": [
                "reason"
              ],
              "initial_load_reopened": [],
              "inspection_completed": [
                "checklist",
                "description",
                "line",
                "outcome",
                "part_number",
                "supply"
              ],
              "inspection_discarded": [
                "checklist",
                "description",
                "line",
                "part_number"
              ],
              "inspection_item_answered": [
                "answer",
                "checklist",
                "description",
                "item",
                "line",
                "part_number",
                "supply"
              ],
              "inspection_item_waived": [
                "checklist",
                "description",
                "item",
                "line",
                "note",
                "part_number",
                "supply"
              ],
              "inspection_reopened": [
                "checklist",
                "description",
                "line",
                "part_number",
                "reason",
                "supply"
              ],
              "inspection_started": [
                "checklist",
                "description",
                "line",
                "part_number",
                "supply"
              ],
              "instruction_added": [
                "instruction",
                "name",
                "task"
              ],
              "instruction_assigned": [
                "employee",
                "instruction",
                "name",
                "task"
              ],
              "instruction_cancelled": [
                "instruction",
                "name",
                "task"
              ],
              "instruction_carried_forward": [
                "instruction",
                "name",
                "note",
                "task"
              ],
              "instruction_completed": [
                "humidity",
                "instruction",
                "name",
                "task",
                "temperature"
              ],
              "instruction_removed": [
                "instruction",
                "name",
                "task"
              ],
              "instruction_reopened": [
                "instruction",
                "name",
                "task"
              ],
              "instruction_updated": [
                "changes",
                "instruction",
                "name",
                "task"
              ],
              "instructions_imported": [
                "instructions",
                "updated"
              ],
              "inventory_line_minted": [
                "inventory_line"
              ],
              "invited": [
                "email_address"
              ],
              "invoice_generated": [
                "invoice",
                "release"
              ],
              "invoice_sent": [
                "record"
              ],
              "issue_allocated": [
                "description",
                "issue",
                "line",
                "part_number",
                "quantity",
                "supply"
              ],
              "issue_quarantined": [
                "description",
                "issue",
                "line",
                "part_number",
                "reason",
                "supply"
              ],
              "issue_removed": [
                "issue",
                "line",
                "part_number",
                "quantity"
              ],
              "issue_seeded": [
                "issue",
                "line",
                "part_number",
                "quantity"
              ],
              "issue_split_planned": [
                "description",
                "issue",
                "line",
                "part_number",
                "to_issue",
                "to_return_to_inventory"
              ],
              "kept_as_draft": [
                "autoquote_attempt",
                "reason",
                "rule"
              ],
              "kept_from_autoquote": [
                "rule"
              ],
              "labor_clocked_in": [
                "employee",
                "name",
                "skill",
                "task"
              ],
              "labor_charged": [
                "employee",
                "hours",
                "name",
                "skill",
                "task"
              ],
              "labor_clocked_out": [
                "employee",
                "hours",
                "name",
                "reason",
                "skill",
                "task"
              ],
              "labor_corrected": [
                "changes",
                "employee",
                "name",
                "skill",
                "task"
              ],
              "labor_keyed": [
                "employee",
                "hours",
                "name",
                "skill",
                "task"
              ],
              "labor_removed": [
                "employee",
                "hours",
                "name",
                "skill",
                "task"
              ],
              "layout_fell_back": [
                "failure",
                "record",
                "version"
              ],
              "lease_opened": [
                "description",
                "lease",
                "line",
                "part_number"
              ],
              "lease_unit_allocated": [
                "lease",
                "quantity",
                "supply"
              ],
              "line_added": [
                "description",
                "line",
                "part_number",
                "quantity",
                "quote_line",
                "receipt_line",
                "release",
                "sales_order_line",
                "service"
              ],
              "line_allocated": [
                "description",
                "line",
                "part_number",
                "quantity",
                "supply"
              ],
              "line_cancelled": [
                "description",
                "line",
                "part_number",
                "quantity",
                "reason",
                "reference"
              ],
              "line_deallocated": [
                "description",
                "line",
                "part_number",
                "quantity",
                "supply"
              ],
              "line_estimate_approved": [
                "approved_on",
                "description",
                "line",
                "part_number"
              ],
              "line_estimate_recorded": [
                "amount",
                "description",
                "line",
                "part_number",
                "received_on"
              ],
              "line_final_cost_recorded": [
                "amount",
                "description",
                "line",
                "part_number",
                "received_on"
              ],
              "line_matched": [
                "description",
                "line",
                "part_number"
              ],
              "line_moved": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "line_picked": [
                "description",
                "line",
                "part_number",
                "supply"
              ],
              "line_promise_revised": [
                "description",
                "line",
                "part_number",
                "promise_on"
              ],
              "line_rejected": [
                "description",
                "line",
                "part_number",
                "rejection",
                "supply"
              ],
              "line_removed": [
                "description",
                "entry",
                "line",
                "part_number",
                "service"
              ],
              "line_repointed": [
                "description",
                "from",
                "line",
                "part_number",
                "quantity",
                "to"
              ],
              "line_returned_to_inventory": [
                "description",
                "line",
                "part_number",
                "quantity",
                "supply"
              ],
              "line_scrapped": [
                "description",
                "line",
                "note",
                "part_number",
                "quantity"
              ],
              "line_shipped": [
                "description",
                "line",
                "part_number",
                "quantity",
                "release"
              ],
              "line_split": [
                "description",
                "line",
                "lines",
                "part_number",
                "quantity"
              ],
              "line_unpicked": [
                "description",
                "line",
                "part_number",
                "supply"
              ],
              "line_unshipped": [
                "description",
                "line",
                "part_number",
                "quantity",
                "release"
              ],
              "line_unverified": [
                "description",
                "line",
                "part_number",
                "supply"
              ],
              "line_updated": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "line_verified": [
                "description",
                "line",
                "part_number",
                "supply"
              ],
              "lines_aligned_to_requests": [],
              "lines_imported": [
                "lines",
                "updated"
              ],
              "lines_moved_in": [
                "from",
                "lines"
              ],
              "lines_reordered": [
                "lines"
              ],
              "load_failed": [
                "reason"
              ],
              "loaded": [],
              "logged": [],
              "lost": [
                "reason"
              ],
              "lost_reason_changed": [
                "reason"
              ],
              "mapping_saved": [
                "system"
              ],
              "material_added": [
                "material",
                "part_number",
                "task"
              ],
              "material_added_to_repair_order": [
                "material",
                "part_number",
                "quantity",
                "repair_order",
                "supply",
                "task"
              ],
              "material_flagged_unused": [
                "employee",
                "material",
                "part_number",
                "quantity",
                "reason",
                "task"
              ],
              "material_issued": [
                "employee",
                "material",
                "part_number",
                "quantity",
                "supply",
                "task"
              ],
              "material_moved": [
                "from",
                "material",
                "part_number",
                "task",
                "to"
              ],
              "material_ordered": [
                "material",
                "part_number",
                "purchase_order",
                "quantity",
                "task"
              ],
              "material_reallocated": [
                "from",
                "material",
                "part_number",
                "quantity",
                "supply",
                "task",
                "to"
              ],
              "material_rejected": [
                "material",
                "part_number",
                "quantity",
                "rejection",
                "supply",
                "task"
              ],
              "material_removed": [
                "material",
                "part_number",
                "task"
              ],
              "material_returned": [
                "material",
                "part_number",
                "quantity",
                "still_unused",
                "supply",
                "task"
              ],
              "material_turn_in_cancelled": [
                "material",
                "part_number",
                "quantity",
                "supply",
                "task"
              ],
              "material_turned_in": [
                "material",
                "part_number",
                "quantity",
                "supply",
                "task"
              ],
              "material_updated": [
                "changes",
                "material",
                "part_number",
                "task"
              ],
              "material_visually_checked": [
                "condition",
                "material",
                "part_number",
                "previous_condition",
                "supply",
                "task"
              ],
              "materials_imported": [
                "materials",
                "updated"
              ],
              "measurement_unit_mapped": [
                "lists_as",
                "measurement_unit"
              ],
              "members_changed": [
                "members"
              ],
              "moved": [
                "conversation"
              ],
              "noted_from_message": [
                "lines",
                "message",
                "reading"
              ],
              "occurrence_cancelled": [
                "occurrence"
              ],
              "occurrence_revised": [
                "changes",
                "occurrence"
              ],
              "onboarding_dismissed": [],
              "onboarding_undismissed": [],
              "opened": [],
              "ordered": [
                "purchase_order",
                "vendor"
              ],
              "orders_left_waiting": [
                "orders",
                "receipt"
              ],
              "outright_purchase_removed": [
                "description",
                "line",
                "part_number",
                "quantity"
              ],
              "package_added": [
                "cost",
                "description",
                "inventory",
                "line",
                "part_number"
              ],
              "package_arrived": [
                "cost",
                "description",
                "inventory",
                "line",
                "part_number",
                "receipt"
              ],
              "part_numbers_resolved": [
                "lines",
                "part_numbers",
                "parts"
              ],
              "part_removed": [
                "part_number"
              ],
              "participant_added": [
                "company",
                "rate"
              ],
              "parts_added": [
                "part_count",
                "part_numbers"
              ],
              "parts_issued": [
                "issue",
                "line",
                "part_number",
                "quantity"
              ],
              "parts_returned_to_inventory": [
                "issue",
                "line",
                "part_number",
                "quantity"
              ],
              "parts_shipped": [
                "issue",
                "line",
                "part_number",
                "release"
              ],
              "parts_unshipped": [
                "issue",
                "line",
                "part_number",
                "release"
              ],
              "payment_applied": [
                "amount",
                "paid_on",
                "reference"
              ],
              "payment_recorded": [
                "amount",
                "paid_on",
                "reference"
              ],
              "payment_unapplied": [
                "amount",
                "paid_on",
                "reference"
              ],
              "payment_voided": [
                "amount",
                "paid_on",
                "reference"
              ],
              "period_billed": [
                "amount",
                "invoice",
                "period"
              ],
              "period_charged": [
                "amount",
                "period",
                "purchase_order"
              ],
              "posted": [
                "quickbooks_id"
              ],
              "posting_recorded": [
                "activity",
                "credits",
                "debits",
                "description",
                "doc_type",
                "line",
                "occurred_on",
                "part_number",
                "reference",
                "system"
              ],
              "print_expired": [
                "documents",
                "form",
                "printer"
              ],
              "print_failed": [
                "documents",
                "failure",
                "form",
                "printer"
              ],
              "print_requested": [
                "copies",
                "documents",
                "form",
                "printer"
              ],
              "printed": [
                "documents",
                "form",
                "printer"
              ],
              "promise_revised": [
                "promise_on"
              ],
              "protection_held": [
                "reason"
              ],
              "protection_released": [],
              "published": [
                "internal_fields_printed",
                "version"
              ],
              "publications_applied": [
                "part_number",
                "publications"
              ],
              "publications_changed": [
                "publications"
              ],
              "purchased_without_coverage": [
                "description",
                "line",
                "part_number",
                "purchase_order",
                "sourcing_request"
              ],
              "push_back_scheduled": [
                "pushes_back_until"
              ],
              "quickbooks_linked": [
                "name",
                "quickbooks_id"
              ],
              "quickbooks_relinked": [
                "from",
                "name",
                "to"
              ],
              "quickbooks_unlinked": [
                "quickbooks_id"
              ],
              "quote_line_added": [
                "description",
                "line",
                "part_number",
                "quantity"
              ],
              "quote_line_moved": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "quote_line_removed": [
                "description",
                "line",
                "part_number"
              ],
              "quote_line_updated": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "quote_lines_aligned_to_requests": [],
              "quoted_unit_unavailable": [
                "description",
                "line",
                "part_number",
                "reason",
                "unit"
              ],
              "quoted_vendor_inventory_unavailable": [
                "description",
                "line",
                "part_number",
                "reason",
                "vendor"
              ],
              "quoting_reading_started": [],
              "quoting_reading_stopped": [],
              "rate_revised": [
                "changes",
                "participant",
                "rate"
              ],
              "read": [
                "escalated_because",
                "fell_back_because",
                "status",
                "template",
                "verdict"
              ],
              "receipt_created": [
                "receipt"
              ],
              "receipt_received": [
                "receipt"
              ],
              "received": [
                "lines_not_ready",
                "moved_to",
                "packages",
                "reason"
              ],
              "recorded": [
                "failure"
              ],
              "records_skipped": [
                "count",
                "fields",
                "key",
                "mappings",
                "reasons"
              ],
              "records_unskipped": [
                "count",
                "fields",
                "key",
                "mappings",
                "reasons"
              ],
              "refund_clamped": [
                "excess",
                "reference"
              ],
              "reissued": [
                "lines"
              ],
              "removed_from_suppression_list": [
                "email_address",
                "reason"
              ],
              "renamed": [
                "from",
                "to"
              ],
              "release_cancelled": [
                "release"
              ],
              "release_generated": [
                "release",
                "supplies"
              ],
              "release_shipped": [
                "release"
              ],
              "release_split": [
                "into",
                "release"
              ],
              "release_unshipped": [
                "release"
              ],
              "releases_combined": [
                "release",
                "releases"
              ],
              "reopened": [],
              "repair_service_mapped": [
                "answers",
                "lists_as",
                "repair_service"
              ],
              "replacement_ordered": [
                "description",
                "line",
                "part_number",
                "purchase_order"
              ],
              "reply_handled": [],
              "reposted": [
                "attempt",
                "failure"
              ],
              "reprint_requested": [
                "copies",
                "documents",
                "form",
                "printer"
              ],
              "reprinted": [
                "documents",
                "form",
                "printer"
              ],
              "reprocessed": [],
              "request_line_added": [
                "description",
                "line",
                "part_number",
                "quantity",
                "quote_line"
              ],
              "request_line_moved": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "request_line_removed": [
                "description",
                "line",
                "lines",
                "part_number"
              ],
              "request_line_updated": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "requested_for": [
                "customer_quote"
              ],
              "requirement_added": [
                "part_number",
                "requirement",
                "sales_order",
                "source"
              ],
              "requirement_removed": [
                "part_number",
                "requirement",
                "sales_order",
                "source"
              ],
              "requirement_waived": [
                "note",
                "requirement"
              ],
              "requirements_changed": [
                "requirements"
              ],
              "resent": [],
              "restated_from_message": [
                "lines",
                "message",
                "reading"
              ],
              "restored": [
                "version"
              ],
              "resumed": [],
              "return_opened": [
                "lines",
                "return"
              ],
              "returned_to_inventory": [
                "condition"
              ],
              "returned_to_queue": [
                "failure"
              ],
              "returned_to_vendor": [
                "inventory_lines",
                "vendor_return",
                "vendor_returns"
              ],
              "revision_adopted": [
                "caution",
                "revision"
              ],
              "role_mapped": [
                "outcome",
                "record",
                "role"
              ],
              "roles_changed": [
                "roles"
              ],
              "scrapped": [],
              "sender_allowed": [
                "sender"
              ],
              "sender_blocked": [
                "sender"
              ],
              "sending_domain_failing": [
                "domain",
                "records"
              ],
              "sending_domain_recovered": [
                "domain"
              ],
              "sent": [
                "autoquote_attempt",
                "lines",
                "net"
              ],
              "sent_to_avsight": [],
              "sent_to_purchasing": [
                "description",
                "line",
                "part_number",
                "purchase_order",
                "sourcing_request"
              ],
              "sent_to_sourcing": [
                "description",
                "line",
                "part_number",
                "sourcing_request",
                "sourcing_requests",
                "vendor_rfq"
              ],
              "share_extended": [
                "expires_on",
                "recipients"
              ],
              "share_fresh_link_sent": [
                "recipient"
              ],
              "share_link_reissued": [
                "recipient"
              ],
              "share_recipient_extended": [
                "expires_on",
                "recipient"
              ],
              "share_recipient_revoked": [
                "recipient"
              ],
              "share_recipients_added": [
                "recipients"
              ],
              "share_revised": [
                "from",
                "message",
                "to"
              ],
              "share_revoked": [
                "recipients"
              ],
              "shared_document_replaced": [
                "file",
                "recipients"
              ],
              "shared_file_downloaded": [
                "file"
              ],
              "shared_file_removed": [
                "file"
              ],
              "shared_files_added": [
                "files"
              ],
              "shared_files_downloaded": [
                "files"
              ],
              "shared_files_opened": [],
              "shipment_cancelled": [
                "reason",
                "release"
              ],
              "shipped": [],
              "shop_supply_added": [
                "part_number",
                "shop_supply",
                "task"
              ],
              "shop_supply_removed": [
                "part_number",
                "shop_supply",
                "task"
              ],
              "shop_supply_updated": [
                "changes",
                "part_number",
                "shop_supply",
                "task"
              ],
              "signed_out": [
                "reason"
              ],
              "signer_skill_changed": [
                "skill"
              ],
              "skipped": [
                "reason"
              ],
              "skipped_away": [
                "away_until",
                "reason",
                "salesperson"
              ],
              "sold_outright": [
                "amount",
                "invoice",
                "quantity"
              ],
              "sourcing_request_carried_over": [
                "customer_quote",
                "description",
                "line",
                "part_number",
                "sales_order",
                "sourcing_request"
              ],
              "split": [
                "inventory_lines",
                "lines",
                "quantity",
                "release"
              ],
              "split_from": [
                "inventory_line",
                "quantity",
                "release"
              ],
              "phases_changed": [
                "phases"
              ],
              "statement_sent": [
                "net",
                "statement"
              ],
              "status_changed": [
                "from",
                "stage",
                "to",
                "trigger"
              ],
              "stopped_opening_first": [
                "audience"
              ],
              "superseded": [],
              "supply_claimed": [
                "description",
                "line",
                "order",
                "part_number",
                "quantity"
              ],
              "supply_landed": [
                "description",
                "inventory_line",
                "line",
                "order",
                "part_number",
                "quantity"
              ],
              "supply_reassigned": [
                "description",
                "from",
                "line",
                "order",
                "part_number",
                "quantity"
              ],
              "supply_released": [
                "description",
                "line",
                "order",
                "part_number",
                "quantity"
              ],
              "support_access_turned_off": [],
              "support_access_turned_on": [],
              "system_of_record_switched": [
                "quickbooks_cutover"
              ],
              "task_added": [
                "name",
                "task"
              ],
              "task_assigned": [
                "employee",
                "name",
                "task"
              ],
              "task_cancelled": [
                "name",
                "note",
                "task"
              ],
              "task_removed": [
                "name",
                "task"
              ],
              "task_skills_changed": [
                "name",
                "skills",
                "task"
              ],
              "task_status_changed": [
                "from",
                "name",
                "stage",
                "task",
                "to"
              ],
              "task_updated": [
                "changes",
                "name",
                "task"
              ],
              "tasks_imported": [
                "tasks",
                "updated"
              ],
              "tasks_made_ready": [
                "tasks"
              ],
              "tasks_repriced": [
                "prices",
                "tasks"
              ],
              "tax_applied": [],
              "tax_suppressed": [],
              "teardown_completed": [
                "cost",
                "description",
                "inventory",
                "line",
                "note",
                "part_number"
              ],
              "teardown_undone": [
                "description",
                "line",
                "part_number",
                "unit"
              ],
              "template_applied": [
                "publications",
                "phases",
                "tasks",
                "template"
              ],
              "template_instructions_copied": [
                "instructions",
                "name",
                "task",
                "templates"
              ],
              "template_materials_copied": [
                "materials",
                "name",
                "task",
                "templates"
              ],
              "tier_changed": [
                "from",
                "to"
              ],
              "trashed": [
                "reason",
                "rule"
              ],
              "trigger_skipped": [
                "reason",
                "stage",
                "trigger"
              ],
              "unit_added_to_repair_order": [
                "repair_order",
                "unit"
              ],
              "unit_returned": [
                "amount",
                "quantity",
                "receipt",
                "return"
              ],
              "unit_shipped_back": [
                "release"
              ],
              "unit_unshipped": [
                "release"
              ],
              "unrecovered_cost_billed": [
                "amount",
                "consignor",
                "note"
              ],
              "updated": [
                "changes",
                "description",
                "line",
                "part_number"
              ],
              "value_adjusted": [
                "amount",
                "note"
              ],
              "value_matches_changed": [
                "added",
                "dropped"
              ],
              "verified": [],
              "version_added": [
                "filename",
                "version"
              ],
              "voucher_generated": [
                "voucher"
              ],
              "vouchered": [
                "invoice_number",
                "voucher"
              ],
              "warehouse_defaults_applied": [
                "added"
              ],
              "warehouse_defaults_dismissed": [],
              "withdrawn": [
                "audience"
              ],
              "won": [
                "count",
                "external_order_number",
                "lines",
                "sales_order",
                "system"
              ],
              "work_completed": [],
              "work_started": [
                "name",
                "task"
              ],
              "written_off": [
                "amount",
                "note"
              ]
            },
            "description": "The facts the action records; `x-particulars` names the keys each action may carry, and `changes` holds before/after pairs. A fact naming a record still here is that record's stub; one whose record is gone is the identifier it was told by"
          },
          "field_labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "What each field under `particulars.changes` is called, as it was called when it changed"
          },
          "value_labels": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "What each particular holding one of a closed set's values reads as, where `particulars` keeps the value itself (`price_only` reads `Price only`)"
          },
          "change_labels": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "description": "What each change under `particulars.changes` to one of a closed set's values reads as, before and after, as it read when it changed (`both` reads `Purchase and repair orders`)"
          },
          "links": {
            "type": "object",
            "additionalProperties": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AccountingTransactionStub"
                },
                {
                  "$ref": "#/components/schemas/CertificateStub"
                },
                {
                  "$ref": "#/components/schemas/ConsignorStatementStub"
                },
                {
                  "$ref": "#/components/schemas/CustomerExchangeStub"
                },
                {
                  "$ref": "#/components/schemas/CustomerLeaseStub"
                },
                {
                  "$ref": "#/components/schemas/CustomerQuoteStub"
                },
                {
                  "$ref": "#/components/schemas/CustomerReturnStub"
                },
                {
                  "$ref": "#/components/schemas/EmployeeStub"
                },
                {
                  "$ref": "#/components/schemas/InventoryLineStub"
                },
                {
                  "$ref": "#/components/schemas/InvestorStatementStub"
                },
                {
                  "$ref": "#/components/schemas/InvoiceStub"
                },
                {
                  "$ref": "#/components/schemas/PurchaseOrderStub"
                },
                {
                  "$ref": "#/components/schemas/ReceiptStub"
                },
                {
                  "$ref": "#/components/schemas/RejectionStub"
                },
                {
                  "$ref": "#/components/schemas/ReleaseStub"
                },
                {
                  "$ref": "#/components/schemas/RepairOrderStub"
                },
                {
                  "$ref": "#/components/schemas/SalesOrderStub"
                },
                {
                  "$ref": "#/components/schemas/SourcingRequestStub"
                },
                {
                  "$ref": "#/components/schemas/VendorExchangeStub"
                },
                {
                  "$ref": "#/components/schemas/VendorLeaseStub"
                },
                {
                  "$ref": "#/components/schemas/VendorReturnStub"
                },
                {
                  "$ref": "#/components/schemas/VendorRfqStub"
                },
                {
                  "$ref": "#/components/schemas/VoucherStub"
                },
                {
                  "$ref": "#/components/schemas/WorkOrderStub"
                }
              ]
            },
            "description": "Each identifier a particular tells in passing (`return`, `order`), as the stub of the record minting it, where that record is still here and its family is served"
          },
          "actor_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who acted, by the name they had when they did; null for the system"
          },
          "subject_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the subject was called when this happened, kept once it is renamed or deleted"
          },
          "type": {
            "type": "string",
            "description": "`<object>.<action>`: the subject's family and what happened to it, as a webhook names it"
          },
          "previous_attributes": {
            "type": [
              "object",
              "null"
            ],
            "description": "Each field the act changed, as it was before, under its name in the changed record's family (the subject, or the line `particulars.line` names): money in minor units, a reference its stub. A field the API doesn't serve is left out"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/AccountingTransactionStub"
              },
              {
                "$ref": "#/components/schemas/AlternateStub"
              },
              {
                "$ref": "#/components/schemas/AutoquoteSettingsStub"
              },
              {
                "$ref": "#/components/schemas/AvsightIntegrationStub"
              },
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/BillingAddressStub"
              },
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerTaxExemptionStub"
              },
              {
                "$ref": "#/components/schemas/DocumentTemplateStub"
              },
              {
                "$ref": "#/components/schemas/EmailLayoutStub"
              },
              {
                "$ref": "#/components/schemas/EmailLayoutBlockStub"
              },
              {
                "$ref": "#/components/schemas/EmailSenderRuleStub"
              },
              {
                "$ref": "#/components/schemas/EmailSendingSettingsStub"
              },
              {
                "$ref": "#/components/schemas/EmailSuppressionStub"
              },
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "$ref": "#/components/schemas/EmployeeSkillStub"
              },
              {
                "$ref": "#/components/schemas/ExportStub"
              },
              {
                "$ref": "#/components/schemas/FxRateStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/InspectionChecklistItemStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/MarketplaceIntegrationStub"
              },
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/CustomerPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/PartRepairServiceStub"
              },
              {
                "$ref": "#/components/schemas/PublicationRevisionStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/QuickbooksIntegrationStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/CustomerRepairPriceStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesforceIntegrationStub"
              },
              {
                "$ref": "#/components/schemas/SendingAddressStub"
              },
              {
                "$ref": "#/components/schemas/ShareStub"
              },
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "$ref": "#/components/schemas/VendorCapabilityStub"
              },
              {
                "$ref": "#/components/schemas/VendorCertificateStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/VendorRepairPriceStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "$ref": "#/components/schemas/WebhookEndpointStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderSettingsStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record it happened to, as it is now; null where it has been deleted since or no family serves its kind"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Export": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "report",
          "kind",
          "query",
          "format",
          "layout",
          "status",
          "total_rows",
          "error",
          "label",
          "help",
          "filename",
          "omitted_count",
          "stalled",
          "completed_at",
          "creator",
          "organization",
          "upload",
          "host",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "export"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "report": {
            "type": "string",
            "enum": [
              "parts",
              "companies",
              "contacts",
              "warehouses",
              "inventories",
              "inventory_lines",
              "manifest_lines",
              "customer_part_prices",
              "customer_repair_prices",
              "repair_capabilities",
              "work_order_tasks",
              "work_instructions",
              "work_order_materials",
              "work_order_template_tasks",
              "work_order_template_materials",
              "vendor_part_prices",
              "requests_by_response_time",
              "requests_by_channel",
              "requests_by_part",
              "requests_by_salesperson",
              "unused_bom_parts",
              "listings",
              "capability_listings",
              "customer_quotes_summary",
              "customer_rfq_lines_summary",
              "inventory_lines_summary",
              "purchase_order_lines_summary",
              "repair_order_lines_summary",
              "sales_orders_summary"
            ],
            "description": "The report it ran",
            "x-enum-descriptions": [
              "Parts as the list narrows them, under the columns the parts import reads back",
              "Companies as the list narrows them, under the columns the companies import reads back",
              "Contacts as the list narrows them, under the columns the contacts import reads back",
              "Warehouses as the list narrows them, under the columns the warehouses import reads back",
              "Inventory codes as the list narrows them, under the columns the inventory codes import reads back",
              "Inventory lines as the list narrows them, under the columns the inventory lines import reads back",
              "Manifest lines as the list narrows them, under the columns the manifest lines import reads back",
              "Part prices as the list narrows them, under the columns the part prices import reads back",
              "Repair prices as the list narrows them, under the columns the repair prices import reads back",
              "Repair capabilities as the list narrows them, under the columns the repair capabilities import reads back",
              "Work order tasks as the list narrows them, under the columns the work order tasks import reads back",
              "Work instructions as the list narrows them, under the columns the work instructions import reads back",
              "Work order materials as the list narrows them, under the columns the work order materials import reads back",
              "Work order template tasks as the list narrows them, under the columns the work order template tasks import reads back",
              "Work order template materials as the list narrows them, under the columns the work order template materials import reads back",
              "Vendor part prices as the list narrows them, under the columns the vendor part prices import reads back",
              "Sales › Reports' requests by response time, counted over the quotes received in the period",
              "Sales › Reports' requests by channel, counted over the quotes received in the period",
              "Sales › Reports' requests by part, counted over the quotes received in the period",
              "Sales › Reports' requests by salesperson, counted over the quotes received in the period",
              "Materials Handling's unused BOM parts: each material with issued parts flagged unused, by work order, task and material",
              "A marketplace's listings for one organization, in the file that marketplace takes, with each line it would reject left out and why",
              "A marketplace's repair capabilities for one organization, in the file that marketplace takes, with each part it would reject left out and why",
              "The customer quotes list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
              "The customer RFQ lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
              "The inventory lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
              "The purchase order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
              "The repair order lines list's summary: its rows totaled by the measures chosen, downloaded as a sheet",
              "The sales orders list's summary: its rows totaled by the measures chosen, downloaded as a sheet"
            ],
            "x-enum-labels": [
              "Parts",
              "Companies",
              "Contacts",
              "Warehouses",
              "Inventory codes",
              "Inventory lines",
              "Manifest lines",
              "Part prices",
              "Repair prices",
              "Repair capabilities",
              "Work order tasks",
              "Work instructions",
              "Work order materials",
              "Work order template tasks",
              "Work order template materials",
              "Vendor part prices",
              "Requests by response time",
              "Requests by channel",
              "Requests by part",
              "Requests by salesperson",
              "Unused BOM parts",
              "Marketplace listings",
              "Repair capabilities",
              "Customer quotes summary",
              "Customer RFQ lines summary",
              "Inventory lines summary",
              "Purchase order lines summary",
              "Repair order lines summary",
              "Sales orders summary"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "record",
              "summary",
              "marketplace"
            ],
            "description": "Its report's kind: a list's records, a summary's grouped rows, or a marketplace's file",
            "x-enum-descriptions": [
              "One row per record of a family, in the layout its import reads back",
              "A report's rows, worked out and grouped: tallies over a period, materials by task, or a list's summary",
              "A marketplace's listings, in the file that marketplace takes"
            ],
            "x-enum-labels": [
              "Records",
              "Summary",
              "Marketplace file"
            ]
          },
          "query": {
            "type": "string",
            "description": "The narrowing it ran with, as the query string the report's own list takes"
          },
          "format": {
            "type": "string",
            "enum": [
              "xlsx",
              "csv",
              "txt",
              "zip"
            ],
            "description": "`xlsx`: A spreadsheet; `csv`: Comma-separated text, UTF-8; `txt`: Delimited text, in the layout its marketplace takes; `zip`: A zip archive, in the layout its marketplace takes",
            "x-enum-descriptions": [
              "A spreadsheet",
              "Comma-separated text, UTF-8",
              "Delimited text, in the layout its marketplace takes",
              "A zip archive, in the layout its marketplace takes"
            ],
            "x-enum-labels": [
              "Spreadsheet (.xlsx)",
              "CSV (.csv)",
              "Text (.txt)",
              "Zip (.zip)"
            ]
          },
          "layout": {
            "type": [
              "string",
              "null"
            ],
            "description": "How a marketplace's file is laid out, and how to upload it there; null for any other report"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "building",
              "completed",
              "failed",
              "downloaded"
            ],
            "description": "`pending`: Queued; the file has not started building; `building`: The spreadsheet is being written; `completed`: Built; the file is ready to download; `failed`: The build stopped with an error; `downloaded`: Downloaded straight from the report; no copy is kept",
            "x-enum-descriptions": [
              "Queued; the file has not started building",
              "The spreadsheet is being written",
              "Built; the file is ready to download",
              "The build stopped with an error",
              "Downloaded straight from the report; no copy is kept"
            ],
            "x-enum-labels": [
              "Pending",
              "Building",
              "Completed",
              "Failed",
              "Downloaded"
            ]
          },
          "total_rows": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The rows its file holds; null until a marketplace's file is built, since only building it says which lines it carries"
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string"
          },
          "help": {
            "type": [
              "string",
              "null"
            ],
            "description": "The help article on its report, by its slug"
          },
          "filename": {
            "type": "string"
          },
          "omitted_count": {
            "type": "integer",
            "description": "How many rows its file left out; each is a row of its `omissions`"
          },
          "stalled": {
            "type": "boolean"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "host": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; a manifest's own stub where it is one; a work order's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "omissions": {
            "$ref": "#/components/schemas/ExportOmissionList",
            "description": "Present when `expand[]=omissions` asked for it: the first page, continued on `/exports/{uuid}/omissions`"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ExportOmission": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "inventory_line_identifier",
          "part_number",
          "reason",
          "explanation",
          "sellable",
          "part",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "export_omission"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where it came among the listings, from 1"
          },
          "inventory_line_identifier": {
            "type": [
              "string",
              "null"
            ],
            "description": "The inventory line's identifier when the file was built, kept should the line go; null for a part left out of a capabilities export"
          },
          "part_number": {
            "type": "string",
            "description": "The part number as the file would have listed it"
          },
          "reason": {
            "type": "string",
            "description": "Why, as a code: `quantity_below_one`, `condition_unlisted`…"
          },
          "explanation": {
            "type": "string",
            "description": "Why, in a sentence ending in what to change"
          },
          "sellable": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a listings export left out: a line of ours, or a vendor's inventory row naming the vendor; null for a part, or once it is deleted"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part left out, or the part of the line left out; null once the line is deleted and no catalog part matches `part_number`"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ExternalKey": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "key",
          "origin",
          "linked_at",
          "external_system",
          "record",
          "linker",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "external_key"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "origin": {
            "type": "string",
            "enum": [
              "created",
              "linked",
              "sent"
            ],
            "description": "`created`: An upsert by this key made the record; `linked`: The key was linked to a record that already existed; `sent`: CorePilot made the record in that system, which keeps it from then on",
            "x-enum-descriptions": [
              "An upsert by this key made the record",
              "The key was linked to a record that already existed",
              "CorePilot made the record in that system, which keeps it from then on"
            ],
            "x-enum-labels": [
              "Created",
              "Linked",
              "Sent"
            ]
          },
          "linked_at": {
            "type": "string",
            "format": "date-time"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; a part's own stub where it is one; a customer quote's own stub where it is one; a sales order's own stub where it is one; an inventory line's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a vendor RFQ's own stub where it is one"
          },
          "linker": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ExternalRecord": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "key",
          "label",
          "title",
          "fields",
          "source_url",
          "source_modified_at",
          "first_seen_at",
          "changed_at",
          "removed_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "external_record"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string",
            "description": "The system's own id for it (a Salesforce Id)"
          },
          "label": {
            "type": "string",
            "description": "What it reads as: what it comes from, its stream and its title (AvSight's Product CFM56-BLADE), the key where it has no title"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "The value of the field its stream names each record by (an Inventory Line's Name); null where the stream names none"
          },
          "fields": {
            "type": "object",
            "additionalProperties": true,
            "description": "Its values as the system sent them, keyed by the system's field names; a number Salesforce sends as text stays text, digit for digit"
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where it opens in Salesforce: the org's My Domain address and its Id; null where no Salesforce org stands behind its system"
          },
          "source_modified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the system last stamped it changed"
          },
          "first_seen_at": {
            "type": "string",
            "format": "date-time",
            "description": "When a pull first landed it"
          },
          "changed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When a pull last landed it with different values"
          },
          "removed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a pull found it removed at the source; null while the system still holds it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ExternalStream": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "label",
          "title_field",
          "selected",
          "records_count",
          "removed_records_count",
          "landed_through",
          "last_pulled_at",
          "last_pull_error",
          "packages",
          "external_system",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "external_stream"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "What the system calls it, as its API names it (`inscor__Inventory_Line__c`)"
          },
          "label": {
            "type": "string",
            "description": "What the system's own screens call it"
          },
          "title_field": {
            "type": [
              "string",
              "null"
            ],
            "description": "The field naming each record, where the system says which"
          },
          "selected": {
            "type": "boolean",
            "description": "Whether a pull reads it; a stream the system offers anew is selected"
          },
          "records_count": {
            "type": "integer",
            "description": "How many of its records have landed, those removed at the source among them"
          },
          "removed_records_count": {
            "type": "integer",
            "description": "How many of those the system has since removed"
          },
          "landed_through": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "How far its changes have landed, by when Salesforce stamped them; the next pull reads on from there, past the changes already landed. A pull reads only changes stamped at least 10 minutes ago, so a change lands 10 minutes or more after Salesforce stamps it; null reads everything"
          },
          "last_pulled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a pull last read it to its end"
          },
          "last_pull_error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why its last pull stopped short, in words; null once one reads it to its end"
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "avsight"
              ],
              "x-enum-descriptions": [
                "A pull reads the object for AvSight, the aviation ERP the org runs as a managed package"
              ],
              "x-enum-labels": [
                "AvSight"
              ]
            },
            "description": "The managed packages the connected Salesforce org runs that a pull reads it for (`avsight`); none for an object no package asks for, or one a package stopped being read for"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ExternalSystem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "keys_count",
          "bot",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "external_system"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "keys_count": {
            "type": "integer",
            "description": "How many of our records the system knows by a key of its own"
          },
          "bot": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Facility": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "inactive_at",
          "country_name",
          "lines",
          "default_shipping",
          "source_fields",
          "organization",
          "tax_origin",
          "default_receiving_bin",
          "default_inspection_bin",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "facility"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "country_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The address as its country prints it, line by line"
          },
          "default_shipping": {
            "type": "boolean",
            "description": "Whether this is the facility our organization ships from by default"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_origin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where its inventory ships from for tax, one of the three things a tax rate is matched on"
          },
          "default_receiving_bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bin a receipt line checked in here lands in, unless the clerk names one"
          },
          "default_inspection_bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bin a part that must be inspected on receipt lands in instead"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "FreightTerm": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "freight_term"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "FxRate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "currency_code",
          "currency_name",
          "as_of",
          "rate",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "fx_rate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "as_of": {
            "type": "string",
            "format": "date",
            "description": "The day the rate holds from, until the currency's next rate"
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Import": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "import_type",
          "status",
          "failure_reason",
          "error",
          "date_format",
          "headers",
          "sample_rows",
          "column_mapping",
          "value_mappings",
          "options",
          "migrating",
          "saves_mapping",
          "applies_when_checked",
          "total_rows",
          "checked_rows",
          "problem_rows",
          "skipped_rows",
          "created_rows",
          "updated_rows",
          "matched_rows",
          "failed_rows",
          "label",
          "required_grants",
          "filename",
          "stalled",
          "clean",
          "rows_to_update",
          "replaces",
          "rows_to_remove",
          "removed_rows",
          "ready_rows",
          "noted_rows",
          "edited_rows",
          "started_at",
          "completed_at",
          "creator",
          "upload",
          "migration",
          "host",
          "twin",
          "mapped_from",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "import"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "import_type": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "checking",
              "checked",
              "applying",
              "completed",
              "failed"
            ],
            "description": "`pending`: Uploaded; checking has not started; `checking`: Its rows are being checked for problems; `checked`: Checked; rows wait to be fixed, skipped or applied; `applying`: Its rows are being written as records; `completed`: Applied; every ready row was attempted; `failed`: Stopped: the file was unusable, or applying broke off",
            "x-enum-descriptions": [
              "Uploaded; checking has not started",
              "Its rows are being checked for problems",
              "Checked; rows wait to be fixed, skipped or applied",
              "Its rows are being written as records",
              "Applied; every ready row was attempted",
              "Stopped: the file was unusable, or applying broke off"
            ],
            "x-enum-labels": [
              "Pending",
              "Checking",
              "Checked",
              "Applying",
              "Completed",
              "Failed"
            ]
          },
          "failure_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "empty",
              "too_many_rows",
              null
            ],
            "description": "`empty`: The file had no rows under its header; `too_many_rows`: The file had more rows than one import takes",
            "x-enum-descriptions": [
              "The file had no rows under its header",
              "The file had more rows than one import takes",
              "Not set"
            ],
            "x-enum-labels": [
              "Empty",
              "Too many rows",
              "Not set"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd"
            ],
            "description": "`mdy`: The file's dates read month, day, year; `dmy`: The file's dates read day, month, year; `ymd`: The file's dates read year, month, day",
            "x-enum-descriptions": [
              "The file's dates read month, day, year",
              "The file's dates read day, month, year",
              "The file's dates read year, month, day"
            ],
            "x-enum-labels": [
              "Mdy",
              "Dmy",
              "Ymd"
            ]
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sample_rows": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "column_mapping": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "value_mappings": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "action",
                  "value",
                  "label"
                ],
                "properties": {
                  "rows": {
                    "type": "number"
                  },
                  "action": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "enum": [
                      "create",
                      "match",
                      null
                    ]
                  },
                  "value": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "label": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            }
          },
          "options": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "migrating": {
            "type": "boolean",
            "description": "Whether its rows are another system's records migrating in, as it was received, in that system's `migration`, which keeps the system the system of record until it switches; applying one asks for `data:migrate`"
          },
          "saves_mapping": {
            "type": "boolean",
            "description": "Whether the reader's change to its matching saves into the mapping (`external_systems/{uuid}/import_mappings`) of the system its `external_system` option names, holding the grants that mapping's own write asks"
          },
          "applies_when_checked": {
            "type": "boolean",
            "description": "Whether it applies on its own once a check finds no problems, as it was received"
          },
          "total_rows": {
            "type": "integer"
          },
          "checked_rows": {
            "type": "integer"
          },
          "problem_rows": {
            "type": "integer"
          },
          "skipped_rows": {
            "type": "integer"
          },
          "created_rows": {
            "type": "integer"
          },
          "updated_rows": {
            "type": "integer"
          },
          "matched_rows": {
            "type": "integer"
          },
          "failed_rows": {
            "type": "integer"
          },
          "label": {
            "type": "string",
            "description": "What was imported, such as `Parts` or `Companies`"
          },
          "required_grants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "filename": {
            "type": "string"
          },
          "stalled": {
            "type": "boolean"
          },
          "clean": {
            "type": "boolean"
          },
          "rows_to_update": {
            "type": [
              "number",
              "null"
            ]
          },
          "replaces": {
            "type": "boolean",
            "description": "Whether applying removes the records its file leaves out, as its `left_out` option chose"
          },
          "rows_to_remove": {
            "type": [
              "number",
              "null"
            ],
            "description": "On a checked import that replaces, how many records no row names, which applying removes; null for any other"
          },
          "removed_rows": {
            "type": "integer",
            "description": "How many records applying removed, since no row named them; only an import that replaces removes any"
          },
          "ready_rows": {
            "type": "number"
          },
          "noted_rows": {
            "type": "integer",
            "description": "Rows that check out with a `note` saying what applying them does beyond their record, such as a repair service it adds"
          },
          "edited_rows": {
            "type": "integer",
            "description": "Rows with a cell edited after the file was uploaded; replacing the file drops those edits"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "migration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The migration a migrating import's rows come over in; null for any other import"
          },
          "host": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a manifest's own stub where it is one; a work order's own stub where it is one"
          },
          "twin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/Import"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest other import of the same type and the same bytes that was applied or is applying, labeled by its file"
          },
          "mapped_from": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/Import"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last completed import of the same type whose columns a pending import's mapping was matched from; null once it is checked"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "check",
                    "replace_file",
                    "skip",
                    "unskip",
                    "apply",
                    "retry",
                    "resume"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "locked_values": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Each column's raw values whose decisions an applied row acted on, which can no longer change; empty until the import is completed. Present when `expand[]=locked_values` asked for it"
          },
          "saved_mappings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "external_system",
                "name",
                "column_mapping"
              ],
              "properties": {
                "external_system": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "column_mapping": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string"
                  }
                }
              }
            },
            "description": "Each active outside system's saved mapping of this import type (`external_systems/{uuid}/import_mappings`), its columns carried onto this file's headers: the matching its `external_system` option starts from. Present when `expand[]=saved_mappings` asked for it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ImportMapping": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "import_type",
          "column_mapping",
          "unmatched_headers",
          "external_system",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "import_mapping"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "import_type": {
            "type": "string",
            "description": "The import type it matches for, as `GET /import_types` names it"
          },
          "column_mapping": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Each column `key` to the header in the system's files that fills it"
          },
          "unmatched_headers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Headers in the system's files a person left unmatched on purpose, which its next file leaves unmatched though a column's alias names them"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The system whose files it matches"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ImportRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "row_number",
          "status",
          "outcome",
          "data",
          "file_data",
          "source",
          "problems",
          "note",
          "skip_reason",
          "record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "import_row"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "row_number": {
            "type": "integer"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ok",
              "problem",
              "skipped",
              "imported",
              "failed"
            ],
            "description": "`pending`: Not checked yet; `ok`: Checked and ready to apply; `problem`: Checked and found a problem to fix or skip; `skipped`: Set aside; it will not be applied; `imported`: Applied; its record was written; `failed`: Applying it raised an error",
            "x-enum-descriptions": [
              "Not checked yet",
              "Checked and ready to apply",
              "Checked and found a problem to fix or skip",
              "Set aside; it will not be applied",
              "Applied; its record was written",
              "Applying it raised an error"
            ],
            "x-enum-labels": [
              "Pending",
              "Ok",
              "Problem",
              "Skipped",
              "Imported",
              "Failed"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "created",
              "updated",
              "matched",
              null
            ],
            "description": "`created`: The row made a new record; `updated`: The row changed an existing record; `matched`: The row matched an existing record and changed nothing",
            "x-enum-descriptions": [
              "The row made a new record",
              "The row changed an existing record",
              "The row matched an existing record and changed nothing",
              "Not set"
            ],
            "x-enum-labels": [
              "Created",
              "Updated",
              "Matched",
              "Not set"
            ]
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "file_data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "A migration's fields from its source system that no column takes, which applying keeps beside the record the row writes"
          },
          "problems": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "skip_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why a skipped row was set aside, as given when it was skipped; a migration's comparison counts a skipped row with one, or with a problem, as explaining a difference"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/ManifestLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/CustomerRepairPriceStub"
              },
              {
                "$ref": "#/components/schemas/PartRepairServiceStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "$ref": "#/components/schemas/WorkInstructionStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTemplateMaterialStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorPartPriceStub"
              },
              {
                "$ref": "#/components/schemas/CompanyAddressStub"
              },
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "$ref": "#/components/schemas/AlternateStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; a part's own stub where it is one; an inventory line's own stub where it is one; a manifest line's own stub where it is one; a customer part price's own stub where it is one; a customer repair price's own stub where it is one; a part repair service's own stub where it is one; a work order task's own stub where it is one; a work order material's own stub where it is one; a work instruction's own stub where it is one; a work order template task's own stub where it is one; a work order template material's own stub where it is one; a vendor inventory line's own stub where it is one; a vendor part price's own stub where it is one; a company address's own stub where it is one; a facility's own stub where it is one; a bin's own stub where it is one; an alternate's own stub where it is one; a customer quote's own stub where it is one; a sales order's own stub where it is one; a sales order line's own stub where it is one; a release's own stub where it is one; a purchase order's own stub where it is one; a purchase order line's own stub where it is one; a receipt's own stub where it is one; an invoice's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ImportType": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "label",
          "param",
          "help",
          "updates",
          "key",
          "row_label",
          "date_columns",
          "exportable",
          "host",
          "host_column",
          "host_optional",
          "retires",
          "migrates_only",
          "row_limit",
          "columns",
          "options"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "import_type"
          },
          "label": {
            "type": "string"
          },
          "param": {
            "type": "string"
          },
          "help": {
            "type": "string"
          },
          "updates": {
            "type": "string"
          },
          "key": {
            "type": [
              "string",
              "null"
            ]
          },
          "row_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_columns": {
            "type": "boolean"
          },
          "exportable": {
            "type": "boolean"
          },
          "host": {
            "type": [
              "string",
              "null"
            ]
          },
          "host_column": {
            "type": [
              "string",
              "null"
            ],
            "description": "The column each row names its `host` in when the import names none; an import on a host neither offers nor reads it"
          },
          "host_optional": {
            "type": "boolean",
            "description": "True when an import of this type may name no host (`host_uuid`), its `columns` then carrying `host_column`; otherwise only a migration of a type with a `host_column` may"
          },
          "retires": {
            "type": "boolean",
            "description": "True when an import of this type, set to act on what its file leaves out, marks those records inactive instead of deleting them"
          },
          "migrates_only": {
            "type": "boolean",
            "description": "True when an import of this type is received only as a migration (`migrating`), its rows writing records as they stand in another system"
          },
          "row_limit": {
            "type": "integer",
            "description": "The most rows one import of it reads; checking a longer file fails the import as `too_many_rows`"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "required": {
                  "type": "boolean"
                },
                "example": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "fills": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                },
                "reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "noun": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "creatable": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "keyed": {
                  "type": "boolean",
                  "description": "True when the column first finds its record by the ID the import's `external_system` (or the row's own) knows it by, then by its name or code"
                },
                "aliases": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The other headers a file's column is matched by, lowercased with each run of other characters as `_`, beside its key and label"
                }
              },
              "required": [
                "key",
                "label",
                "required",
                "example",
                "fills",
                "type",
                "reference",
                "noun",
                "creatable",
                "keyed",
                "aliases"
              ]
            },
            "description": "The columns a row reads. Their `key`s key each line of a `.jsonl` file, the bulk form, and each object in `rows`, the same rows sent inline; every type's, as one page: [`/llms/import_formats.md`](/llms/import_formats.md)"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "warning": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "default": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "choice",
                    "date",
                    "confirmation"
                  ]
                },
                "choices": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "value": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "value",
                      "label"
                    ],
                    "additionalProperties": false
                  }
                },
                "keyed_choices": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The choices open only to an import mapping its ID column under a chosen `external_system`"
                }
              },
              "required": [
                "key",
                "label",
                "warning",
                "default",
                "type",
                "choices",
                "keyed_choices"
              ]
            }
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ImportValueMatch": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "column_key",
          "source_value",
          "value",
          "label",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "import_value_match"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "column_key": {
            "type": "string",
            "description": "The import type's column `key` the value arrives in"
          },
          "source_value": {
            "type": "string",
            "description": "The value as the system's files spell it"
          },
          "value": {
            "type": "string",
            "description": "The value it stands for: a country, currency or ATA chapter code"
          },
          "label": {
            "type": [
              "string",
              "null"
            ],
            "description": "The value's name, as the matching screen shows it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "InspectionChecklist": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "step",
          "instructions",
          "organization_code",
          "items",
          "inactive_at",
          "organization",
          "skill",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection_checklist"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "receiving",
              "outbound_qc"
            ],
            "description": "`receiving`: Units on the Inspection hold, before they are released into inventory; `outbound_qc`: Part lines on a release, before they are verified for shipping",
            "x-enum-descriptions": [
              "Units on the Inspection hold, before they are released into inventory",
              "Part lines on a release, before they are verified for shipping"
            ],
            "x-enum-labels": [
              "Receiving inspection",
              "Outbound QC"
            ]
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the inspector reads above the items"
          },
          "organization_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The organization's code where the tenant has more than one, so two organizations' checklists of one name read apart; null where it has one"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InspectionChecklistItem"
            },
            "description": "Its items in the order they are asked, each as `/inspection_checklist_items` lists it"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill an employee must hold, unexpired, to complete an inspection on this checklist; null lets anyone who may work operations complete it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "InspectionChecklistItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "measurement_unit",
          "upload_category",
          "inspection_checklist",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection_checklist_item"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where the item is asked, first to last. A write moves it, renumbering the rest"
          },
          "prompt": {
            "type": "string",
            "description": "What the inspector is asked"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "check",
              "measurement",
              "choice",
              "text",
              "date",
              "photo"
            ],
            "description": "`check`: Passes, fails, or doesn't apply; `measurement`: A number, failing outside its minimum and maximum; `choice`: One or more of listed options, failing on an option marked to fail; `text`: A note, which never fails; `date`: A day, which never fails; `photo`: Photos filed under an upload category, which never fail",
            "x-enum-descriptions": [
              "Passes, fails, or doesn't apply",
              "A number, failing outside its minimum and maximum",
              "One or more of listed options, failing on an option marked to fail",
              "A note, which never fails",
              "A day, which never fails",
              "Photos filed under an upload category, which never fail"
            ],
            "x-enum-labels": [
              "Pass / fail",
              "Measurement",
              "Choice",
              "Text",
              "Date",
              "Photo"
            ]
          },
          "required": {
            "type": "boolean",
            "description": "Whether the inspection can't be completed without an answer; N/A answers a check"
          },
          "enforcement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "warn",
              "block",
              null
            ],
            "description": "What a failing answer does; null for an item no answer can fail",
            "x-enum-descriptions": [
              "A failing answer is recorded and waived, with who, when and why",
              "A failing answer stops the step",
              "Not set"
            ],
            "x-enum-labels": [
              "Warn",
              "Block",
              "Not set"
            ]
          },
          "minimum": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The lowest a `measurement` passes at; null for every other kind"
          },
          "maximum": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The highest a `measurement` passes at; null for every other kind"
          },
          "options": {
            "type": "array",
            "description": "The options a `choice` item lists, each saying whether choosing it fails the item; empty for every other kind",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "label",
                "fails"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "fails": {
                  "type": "boolean"
                }
              }
            }
          },
          "multiple": {
            "type": "boolean",
            "description": "Whether a `choice` takes more than one option"
          },
          "measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit a `measurement` is taken in; null where it names none"
          },
          "upload_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The category a `photo` item's photos are filed under; null for every other kind"
          },
          "inspection_checklist": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Inspection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "step",
          "checklist_name",
          "instructions",
          "outcome",
          "part_instructions",
          "started_at",
          "completed_at",
          "items",
          "inspection_checklist",
          "skill",
          "inventory_line",
          "receipt_line",
          "receipt",
          "release",
          "started_by",
          "completed_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "step": {
            "type": "string",
            "enum": [
              "receiving",
              "outbound_qc"
            ],
            "description": "`receiving`: Units on the Inspection hold, before they are released into inventory; `outbound_qc`: Part lines on a release, before they are verified for shipping",
            "x-enum-descriptions": [
              "Units on the Inspection hold, before they are released into inventory",
              "Part lines on a release, before they are verified for shipping"
            ],
            "x-enum-labels": [
              "Receiving inspection",
              "Outbound QC"
            ]
          },
          "checklist_name": {
            "type": "string",
            "description": "The checklist's name when the inspection started"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "The checklist's instructions when the inspection started"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "in_progress",
              "passed",
              "failed"
            ],
            "description": "`in_progress`: Started and not yet completed; `passed`: Completed with no failing item that blocks, and every failing item that warns waived; `failed`: Completed with a failing item that blocks",
            "x-enum-descriptions": [
              "Started and not yet completed",
              "Completed with no failing item that blocks, and every failing item that warns waived",
              "Completed with a failing item that blocks"
            ],
            "x-enum-labels": [
              "In progress",
              "Passed",
              "Failed"
            ]
          },
          "part_instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "The inspected part's own inspection instructions when a receiving inspection started; null for none, or at outbound QC"
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InspectionItem"
            },
            "description": "Its items in the order they are asked, each as `/inspection_items` lists it"
          },
          "inspection_checklist": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The checklist it was copied from; editing it changes only inspections started after"
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill its checklist named when it started: only an employee holding it, unexpired, may complete it"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit inspected; null while a receiving inspection answers for a receipt line not yet received"
          },
          "receipt_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt line a receiving inspection was started on before Receive; null for one started on its unit"
          },
          "receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt whose line a receiving inspection was started on before Receive; null otherwise"
          },
          "release": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The release whose part line an outbound QC inspection answers for; null at receiving, or once the line is rejected off it"
          },
          "started_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "complete",
                    "reopen"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "warehouse",
        "x-role": "master_data"
      },
      "InspectionItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "result",
          "value",
          "text_value",
          "date_value",
          "chosen",
          "uploads",
          "answered",
          "fails",
          "answered_at",
          "waived_at",
          "waiver_note",
          "measurement_unit",
          "upload_category",
          "answered_by",
          "waived_by",
          "inspection",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inspection_item"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where the item is asked, first to last"
          },
          "prompt": {
            "type": "string",
            "description": "What the inspector is asked"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "check",
              "measurement",
              "choice",
              "text",
              "date",
              "photo"
            ],
            "description": "`check`: Passes, fails, or doesn't apply; `measurement`: A number, failing outside its minimum and maximum; `choice`: One or more of listed options, failing on an option marked to fail; `text`: A note, which never fails; `date`: A day, which never fails; `photo`: Photos filed under an upload category, which never fail",
            "x-enum-descriptions": [
              "Passes, fails, or doesn't apply",
              "A number, failing outside its minimum and maximum",
              "One or more of listed options, failing on an option marked to fail",
              "A note, which never fails",
              "A day, which never fails",
              "Photos filed under an upload category, which never fail"
            ],
            "x-enum-labels": [
              "Pass / fail",
              "Measurement",
              "Choice",
              "Text",
              "Date",
              "Photo"
            ]
          },
          "required": {
            "type": "boolean",
            "description": "Whether the inspection can't be completed without an answer; N/A answers a check"
          },
          "enforcement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "warn",
              "block",
              null
            ],
            "description": "What a failing answer does: `block` completes the inspection failed, `warn` must be waived first; null for an item no answer can fail",
            "x-enum-descriptions": [
              "A failing answer is recorded and waived, with who, when and why",
              "A failing answer stops the step",
              "Not set"
            ],
            "x-enum-labels": [
              "Warn",
              "Block",
              "Not set"
            ]
          },
          "minimum": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The lowest a `measurement` passes at; null for every other kind"
          },
          "maximum": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The highest a `measurement` passes at; null for every other kind"
          },
          "options": {
            "type": "array",
            "description": "The options a `choice` item lists, each saying whether choosing it fails the item; empty for every other kind",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "label",
                "fails"
              ],
              "properties": {
                "label": {
                  "type": "string"
                },
                "fails": {
                  "type": "boolean"
                }
              }
            }
          },
          "multiple": {
            "type": "boolean",
            "description": "Whether a `choice` takes more than one option"
          },
          "result": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pass",
              "fail",
              "not_applicable",
              null
            ],
            "description": "A `check` item's answer; null until it is answered, and for every other kind",
            "x-enum-descriptions": [
              "The check passed",
              "The check failed",
              "The check doesn't apply to this unit",
              "Not set"
            ],
            "x-enum-labels": [
              "Pass",
              "Fail",
              "Not applicable",
              "Not set"
            ]
          },
          "value": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "A `measurement` item's answer; null until it is answered, and for every other kind"
          },
          "text_value": {
            "type": [
              "string",
              "null"
            ],
            "description": "A `text` item's answer; null until it is answered, and for every other kind"
          },
          "date_value": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "A `date` item's answer; null until it is answered, and for every other kind"
          },
          "chosen": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The options chosen for a `choice` item, by label; empty until it is answered, and for every other kind"
          },
          "uploads": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upload"
            },
            "description": "A `photo` item's photos, each as `/uploads` lists it and filed on the inspected unit too; empty for every other kind"
          },
          "answered": {
            "type": "boolean",
            "description": "Whether the item holds an answer; a `photo` item does once it has a photo"
          },
          "fails": {
            "type": "boolean",
            "description": "Whether its answer fails it: a failed check, a measurement outside its bounds, or a chosen option that fails"
          },
          "answered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "waived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "waiver_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit a `measurement` is taken in; null where it names none"
          },
          "upload_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The category a `photo` item's photos are filed under; null for every other kind"
          },
          "answered_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "waived_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inspection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InspectionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "waive"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "warehouse",
        "x-role": "master_data"
      },
      "InventoryCode": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "custody",
          "migration_hold",
          "currency_code",
          "source_fields",
          "owner_company",
          "consignor_participation",
          "cost_pool",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_code"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "custody": {
            "type": "boolean"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the code came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "consignor_participation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryParticipationStub"
              },
              {
                "$ref": "#/components/schemas/InventoryParticipation"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole inventory participation when `expand[]=consignor_participation` asked for it"
          },
          "cost_pool": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "acquisition_cost_cents",
              "remaining_cost_cents",
              "chargeout_rate",
              "acquired_on",
              "funded_cents",
              "charged_out_cents",
              "written_off_cents",
              "adjusted_cents",
              "transferred_in_cents",
              "transferred_out_cents",
              "parent"
            ],
            "properties": {
              "acquisition_cost_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "remaining_cost_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "chargeout_rate": {
                "type": "string",
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              },
              "acquired_on": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "funded_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "charged_out_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "written_off_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "adjusted_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency"
              },
              "transferred_in_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency: the cost another pool handed on to this one"
              },
              "transferred_out_cents": {
                "type": "integer",
                "description": "Minor units of the account's currency: the cost this pool handed on to another"
              },
              "parent": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "delete",
                    "adjust_value",
                    "write_off",
                    "bill_unrecovered_cost",
                    "add_cost_pool",
                    "fund_from_parent",
                    "assign_costs"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "overview_counts": {
            "type": "object",
            "description": "What is filed under the code: its open, active lines, its investors, and its pool's manifests, all of them and those a receipt can go on. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "lines": {
                "type": "integer"
              },
              "investors": {
                "type": "integer"
              },
              "manifests": {
                "type": "integer"
              },
              "receivable_manifests": {
                "type": "integer"
              }
            },
            "required": [
              "lines",
              "investors",
              "manifests",
              "receivable_manifests"
            ]
          },
          "sales_summary": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "What the code's sales came to: the sales, the repair cost they carried, the pool's spend they recovered, every share they paid out (the recovery included), the profit left, its margin of the sales (null before any), and the units sold net of returns; null on a code that settles nothing at sale. Present when `expand[]=sales_summary` asked for it",
            "properties": {
              "sale_cents": {
                "type": "integer",
                "description": "In the inventory code's currency, the account's"
              },
              "cost_cents": {
                "type": "integer",
                "description": "In the inventory code's currency, the account's"
              },
              "recovered_cents": {
                "type": "integer",
                "description": "In the inventory code's currency, the account's"
              },
              "share_cents": {
                "type": "integer",
                "description": "In the inventory code's currency, the account's"
              },
              "profit_cents": {
                "type": "integer",
                "description": "In the inventory code's currency, the account's"
              },
              "margin": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "units": {
                "type": "number"
              }
            },
            "required": [
              "sale_cents",
              "cost_cents",
              "recovered_cents",
              "share_cents",
              "profit_cents",
              "margin",
              "units"
            ]
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "InventoryEntry": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "activity",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "accrued_cents",
          "sale_cents",
          "cost_cents",
          "note",
          "quantity",
          "serial_number",
          "currency_code",
          "inventory_code",
          "inventory_line",
          "part",
          "creator",
          "participation",
          "source",
          "statement",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_entry"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "receipt",
              "quantity_adjustment",
              "issue",
              "value_adjustment",
              "scrap",
              "transfer_out",
              "cost_assignment",
              "acquisition",
              "chargeout",
              "accrual",
              "settlement",
              "transfer_in",
              "write_off"
            ]
          },
          "activity": {
            "type": "string",
            "enum": [
              "purchase_receipt",
              "repair_receipt",
              "core_receipt",
              "opening_balance",
              "unsourced_receipt",
              "vendor_lease_receipt",
              "sale_return",
              "lease_return",
              "lease_outright",
              "sale",
              "lease_shipment",
              "repair_dispatch",
              "repair_dispatch_costed_at_sale",
              "parts_issue",
              "work_order_issue",
              "vendor_return",
              "core_shipment",
              "vendor_lease_return",
              "vendor_lease_buyout",
              "vendor_lease_purchase",
              "scrap",
              "stock_count",
              "turn_in_cancellation",
              "opening_balance_restatement",
              "revaluation",
              "sale_cost_adjustment",
              "bill_variance",
              "vendor_credit",
              "core_purchase",
              "core_capitalization",
              "exchange_cancellation",
              "conversion",
              "conversion_absorbed",
              "pool_transfer_out",
              "pool_transfer_in",
              "cost_assignment",
              "split_out",
              "split_in",
              "pool_purchase",
              "pool_bill_variance",
              "pool_opening_balance",
              "pool_opening_balance_restatement",
              "pool_opening_capitalization",
              "pool_capitalization",
              "pool_write_off",
              "consignor_recovery",
              "pool_chargeout",
              "lease_pool_chargeout",
              "pool_chargeout_return",
              "pool_chargeout_repricing",
              "share_accrual",
              "share_accrual_return",
              "share_accrual_repricing",
              "lease_share_accrual",
              "share_adjustment",
              "share_settlement"
            ],
            "description": "Why the entry moved inventory or cost, finer than its kind (`pool_purchase` is an acquisition)",
            "x-enum-descriptions": [
              "Units received on a purchase order, at what they cost us",
              "Units back from a vendor's repair, carrying what the repair cost",
              "A customer's core received back on an exchange",
              "Units brought into inventory at the cost they carried before the books started",
              "Units received with no purchase behind them, such as a customer's unit in for repair",
              "A unit leased from a vendor arrives: it is theirs, so it brings no cost",
              "Units a customer sent back, returned at the cost they left at",
              "A leased unit back from the customer, at the cost it left at",
              "A leased unit the customer bought outright, its cost moved off lease to the sale",
              "Units shipped on a sale, their cost moved to cost of goods sold",
              "A unit shipped to a customer on a lease, its cost moved onto lease",
              "A unit sent out to a vendor for repair",
              "A unit sent out for repair from an inventory costed at sale, its purchase and repair costs kept apart",
              "Parts issued to a repair, their cost moved onto the repair",
              "Parts issued to a work order's task, their cost moved into the work order's parts WIP",
              "Units sent back to the vendor, their cost credited against what we owe them",
              "A core shipped to the vendor on an exchange, its cost expensed",
              "A unit leased from a vendor sent back to them",
              "A unit leased from a vendor leaves the lease as we buy it",
              "A unit leased from a vendor, bought outright and taken into our inventory at its price",
              "Units scrapped and their remaining cost written off",
              "Units counted into or out of inventory by hand, their cost adjusted to match",
              "A part turned in off a work order taken back out of inventory, the turn-in cancelled",
              "A unit's opening balance corrected to what the system it came from now holds",
              "A unit's carried cost changed by hand",
              "A unit's repair cost changed by what a sale billed for it",
              "A unit's cost changed by the difference between its purchase price and the vendor's bill",
              "A unit's cost lowered by a vendor's credit",
              "A vendor's core charge added to the cost of the unit received on the exchange",
              "The cost of a core shipped to a vendor moved onto the unit received for it",
              "The cost an exchange set aside for a customer's core, given back to the unit when the exchange is undone",
              "A unit's cost moved out of it, into a cost pool, when it is torn down",
              "A torn-down unit's cost taken into a cost pool",
              "Cost moved out of a cost pool, into a sub-pool",
              "Cost moved into a cost pool, from its parent pool",
              "Cost moved from a cost pool onto a unit within it",
              "Units split off onto a line of their own, taking their share of the line's cost",
              "Units split off another line onto this one, on the receipt line they arrived on, with the cost they carried",
              "Cost bought into a cost pool on a vendor's bill",
              "A cost pool's cost changed by the difference between its purchase price and the vendor's bill",
              "Cost brought into a cost pool before the books started",
              "A cost pool's opening balance corrected to what the system it came from now holds",
              "Cost added to a cost pool by hand before the books started, carried out of its opening balance",
              "Cost added to a cost pool by hand",
              "Cost a cost pool won't recover, written off",
              "What sales never recovered of a consignment's cost, now owed back by the consignor",
              "A sale recovers cost out of a cost pool at its chargeout rate",
              "A lease recovers cost out of a cost pool",
              "A returned sale puts its chargeout back into the cost pool",
              "A sale's chargeout from a cost pool changed by a change in its price",
              "A consignor's or investor's share of a sale, accrued as owed",
              "A returned sale takes back the share it accrued",
              "A share accrued on a sale changed by a change in its price",
              "A consignor's or investor's share of a lease, accrued as owed",
              "A consignor's or investor's accrued share changed by hand",
              "A statement moves an accrued share to payable"
            ],
            "x-enum-labels": [
              "Purchase receipt",
              "Repair receipt",
              "Core receipt",
              "Opening balance",
              "Unsourced receipt",
              "Vendor lease receipt",
              "Sale return",
              "Lease return",
              "Lease outright",
              "Sale",
              "Lease shipment",
              "Repair dispatch",
              "Repair dispatch costed at sale",
              "Parts issue",
              "Work order issue",
              "Vendor return",
              "Core shipment",
              "Vendor lease return",
              "Vendor lease buyout",
              "Vendor lease purchase",
              "Scrap",
              "Inventory count",
              "Turn in cancellation",
              "Opening balance restatement",
              "Revaluation",
              "Sale cost adjustment",
              "Bill variance",
              "Vendor credit",
              "Core purchase",
              "Core capitalization",
              "Exchange cancellation",
              "Conversion",
              "Conversion absorbed",
              "Pool transfer out",
              "Pool transfer in",
              "Cost assignment",
              "Split out",
              "Split in",
              "Pool purchase",
              "Pool bill variance",
              "Pool opening balance",
              "Pool opening balance restatement",
              "Pool opening capitalization",
              "Pool capitalization",
              "Pool write off",
              "Consignor recovery",
              "Pool chargeout",
              "Lease pool chargeout",
              "Pool chargeout return",
              "Pool chargeout repricing",
              "Share accrual",
              "Share accrual return",
              "Share accrual repricing",
              "Lease share accrual",
              "Share adjustment",
              "Share settlement"
            ]
          },
          "acquisition_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "repair_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "accrued_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "sale_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "participation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryParticipationStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; an AvSight migration's own stub where it is one; a CorePilot legacy migration's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an import's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a consignor statement's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a vendor lease's own stub where it is one; a voucher's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one; a work order's own stub where it is one"
          },
          "statement": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a consignor statement's own stub where it is one; an investor statement's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "inventory",
        "x-role": "ledger"
      },
      "InventoryLedgerDefault": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account",
          "inherited_ledger_account"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_ledger_default"
          },
          "key": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "usage": {
            "type": "string"
          },
          "expected_kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ]
          },
          "ledger_account_inactive": {
            "type": "boolean"
          },
          "mismatched": {
            "type": "boolean"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the code's account for the purpose came from holds it, refusing a change while that system is the system of record; null for one no outside system holds"
          },
          "ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inherited_ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "setting"
      },
      "InventoryLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "part_description",
          "serial_number",
          "batch_lot_number",
          "serialized",
          "serial_missing",
          "quantity_on_hand",
          "quantity_reserved",
          "quantity_available",
          "total_cost_cents",
          "received_on",
          "unit_cost_cents",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "tail_number",
          "engine_serial_number",
          "receiver_number",
          "sub_location",
          "listing_notes",
          "internal_notes",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "time_remaining_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "cycles_remaining",
          "protected",
          "tool",
          "calibration_due_on",
          "calibration_state",
          "calibration_interval_months",
          "status",
          "inactive_at",
          "quantity_sold",
          "sold_for_cents",
          "cost_of_sale_cents",
          "margin_cents",
          "margin_ratio",
          "sold_on",
          "inventory_kind",
          "custody_reason",
          "shipped_back_on",
          "standard_code",
          "migration_hold",
          "inspection_outcome",
          "currency_code",
          "receipt",
          "document_forms",
          "source_fields",
          "tagged_by",
          "away_repair_order",
          "part",
          "condition",
          "offered_condition",
          "warehouse",
          "bin",
          "inventory_code",
          "owner_company",
          "parent",
          "split_from",
          "split_into",
          "releases",
          "converted_to",
          "open_rejection",
          "protection_reason",
          "inspection",
          "sold_orders",
          "sold_to",
          "serial_shared_with",
          "repair_order",
          "source",
          "organization",
          "kept_in",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The batch or lot the unit was made or bought in, which many units may share, so it is never checked for repeats"
          },
          "serialized": {
            "type": "boolean",
            "description": "Whether its part is serialized, so each unit is a line of its own"
          },
          "serial_missing": {
            "type": "boolean",
            "description": "Whether it is a unit of a serialized part with no serial yet; its release can't ship until the serial is set"
          },
          "quantity_on_hand": {
            "type": "number",
            "x-internal": true
          },
          "quantity_reserved": {
            "type": "number",
            "x-internal": true
          },
          "quantity_available": {
            "type": "number",
            "x-internal": true
          },
          "total_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "unit_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "acquisition_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "repair_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ],
            "x-enum-labels": [
              "Air carrier",
              "Repair station",
              "OEM",
              "Distributor",
              "Government",
              "Other",
              "Not set"
            ]
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Every release or certificate the unit's tag carries; empty where it carries none"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "tail_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine_serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The serial number of the engine the unit was removed from"
          },
          "receiver_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "sub_location": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where in its bin it sits, such as a drawer or a shelf"
          },
          "listing_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "What a listing of the unit says about it, kept with the line"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When it was made, or for rubber its cure date; its shelf life counts from it"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "time_since_new_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Flight hours since it was new, to the hundredth"
          },
          "time_since_overhaul_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Flight hours since its last overhaul, to the hundredth; never more than `time_since_new_hours`"
          },
          "time_limit_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The flight hours its part's published life allows; null for a unit with no hour limit"
          },
          "time_remaining_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "`time_limit_hours` less `time_since_new_hours`, below zero once past the limit; null unless both are known"
          },
          "cycles_since_new": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Flight cycles since it was new"
          },
          "cycles_since_overhaul": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Flight cycles since its last overhaul; never more than `cycles_since_new`"
          },
          "cycle_limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The flight cycles its part's published life allows; null for a unit with no cycle limit"
          },
          "cycles_remaining": {
            "type": [
              "integer",
              "null"
            ],
            "description": "`cycle_limit` less `cycles_since_new`, below zero once past the limit; null unless both are known"
          },
          "protected": {
            "type": "boolean"
          },
          "tool": {
            "type": "boolean"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "overdue",
              "due_soon",
              "current",
              "uncalibrated",
              "not_required",
              null
            ],
            "description": "`overdue`: A tool whose calibration due date has come; `due_soon`: A tool due for calibration within 30 days; `current`: A tool calibrated and not due for more than 30 days; `uncalibrated`: A tool that requires calibration and has never had one; `not_required`: A tool whose part needs no calibration",
            "x-enum-descriptions": [
              "A tool whose calibration due date has come",
              "A tool due for calibration within 30 days",
              "A tool calibrated and not due for more than 30 days",
              "A tool that requires calibration and has never had one",
              "A tool whose part needs no calibration",
              "Not set"
            ],
            "x-enum-labels": [
              "Out of calibration",
              "Due within 30 days",
              "Current",
              "Never calibrated",
              "Calibration not required",
              "Not set"
            ]
          },
          "calibration_interval_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "converted"
            ],
            "description": "`open`: A unit in the books, whether or not any of it is left on hand; `converted`: Torn down into a cost pool, which took its cost",
            "x-enum-descriptions": [
              "A unit in the books, whether or not any of it is left on hand",
              "Torn down into a cost pool, which took its cost"
            ],
            "x-enum-labels": [
              "Open",
              "Converted"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_sold": {
            "type": [
              "number",
              "null"
            ]
          },
          "sold_for_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "cost_of_sale_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "margin_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency",
            "x-internal": true
          },
          "margin_ratio": {
            "type": [
              "number",
              "null"
            ],
            "x-internal": true
          },
          "sold_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "inventory_kind": {
            "type": "string",
            "enum": [
              "unit_costed",
              "cost_pool",
              "consignment",
              "custody"
            ],
            "description": "`unit_costed`: Our own stock, each unit carrying its own cost; `cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale; `custody`: Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
            "x-enum-descriptions": [
              "Our own stock, each unit carrying its own cost",
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books."
            ],
            "x-enum-labels": [
              "Unit-costed",
              "Cost pool",
              "Consignment",
              "Held for others"
            ]
          },
          "custody_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repair",
              "lease",
              null
            ],
            "description": "Why a unit held for others is here: a customer's in for repair, or a vendor's we lease; null for one that isn't",
            "x-enum-descriptions": [
              "A customer's unit: held for others and not received on a lease purchase order line",
              "A vendor's unit, received on a lease purchase order line",
              "Not set"
            ],
            "x-enum-labels": [
              "Repair",
              "Lease",
              "Not set"
            ]
          },
          "shipped_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day a vendor's leased unit shipped back to them; null for a unit still here or one never leased"
          },
          "standard_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the unit came from holds it, or null for one no outside system holds. That system keeps the unit as the system of record, so every verb on it refuses here. A quote still counts it as available, as that system does"
          },
          "inspection_outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "in_progress",
              "passed",
              "failed",
              null
            ],
            "description": "Where its inspection at receiving stands; null for a unit never inspected",
            "x-enum-descriptions": [
              "Started and not yet completed",
              "Completed with no failing item that blocks, and every failing item that warns waived",
              "Completed with a failing item that blocks",
              "Not set"
            ],
            "x-enum-labels": [
              "In progress",
              "Passed",
              "Failed",
              "Not set"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "receipt": {
            "$ref": "#/components/schemas/ReceiptStub",
            "description": "The receipt it was checked in on"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the unit prints on, each by the `form` `POST /documents` takes"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company that tagged the unit, such as a repair station; null where none is picked"
          },
          "away_repair_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The repair order the vendor has the unit on now; null for a unit not out for repair"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/Condition"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole condition when `expand[]=condition` asked for it"
          },
          "offered_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/Condition"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one other condition the unit is offered in, such as serviceable for an as-removed unit: quotes, autoquote and listings may sell it in either, and a listing names this one; null where it sells only in its own"
          },
          "warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/Warehouse"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole warehouse when `expand[]=warehouse` asked for it"
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "$ref": "#/components/schemas/Bin"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole bin when `expand[]=bin` asked for it"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/InventoryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole inventory code when `expand[]=inventory_code` asked for it"
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "split_from": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The line its units were split off; null for a line split off none"
          },
          "split_into": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryLineStub"
            },
            "description": "The lines split off it, oldest first"
          },
          "releases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReleaseStub"
            },
            "description": "The releases it went out on or is staged to, outside the trash"
          },
          "converted_to": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_rejection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "protection_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the unit is protected from sale; null for one not protected, or protected with no reason given"
          },
          "inspection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InspectionStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its inspection at receiving; null for a unit never inspected"
          },
          "sold_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderStub"
            }
          },
          "sold_to": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "serial_shared_with": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryLineStub"
            },
            "description": "The other lines of its part holding units under its serial number, whatever its case, while it holds units itself; the same unit can come back through, so this warns and refuses nothing"
          },
          "repair_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last repair order it was reserved to, whether still at the vendor or back; null for a line never on a repair order"
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it arrived on: a purchase, repair, sales or work order, a return, an exchange, a manifest or an import; null for inventory counted in with no document"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "kept_in": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "system_name",
              "key",
              "source_url",
              "system"
            ],
            "properties": {
              "system_name": {
                "type": "string",
                "description": "What people call that system: AvSight for an AvSight org, else the system's name"
              },
              "key": {
                "type": "string",
                "description": "The unit's own id in that system"
              },
              "source_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Where it opens in Salesforce: the org's My Domain address and its Id; null where no Salesforce org stands behind the system"
              },
              "system": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "That system as CorePilot's external systems list it: for AvSight, the Salesforce org's name and Id"
              }
            },
            "description": "The outside system keeping the unit, and its key there: the system of record when it holds a key for the unit, else the other outside system whose import created it, such as one holding staged inventory; null while CorePilot keeps the records, or where no outside system holds a key it made"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "move",
                    "adjust_quantity",
                    "split",
                    "adjust_value",
                    "release_protection",
                    "reject",
                    "deactivate",
                    "activate",
                    "calibrate",
                    "inspect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "move": "update_inventory_line",
              "calibrate": "create_calibration",
              "inspect": "create_inspection"
            }
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "InventoryParticipation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "started_on",
          "rate",
          "investor",
          "outstanding_cents",
          "accrued_cents",
          "adjusted_cents",
          "settled_cents",
          "unsettled_entry_count",
          "unsettled_cents",
          "currency_code",
          "inventory_code",
          "company",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_participation"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "started_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "investor": {
            "type": "boolean"
          },
          "outstanding_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "accrued_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "adjusted_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "settled_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "unsettled_entry_count": {
            "type": "integer",
            "description": "The accruals and adjustments no statement holds yet, which its next statement draws in"
          },
          "unsettled_cents": {
            "type": "integer",
            "description": "Minor units of the account's currency: what those entries accrued, the share its next statement settles"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "InventoryUnitCost": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "part_number",
          "part_description",
          "serial_number",
          "quantity_on_hand",
          "on_hand_cents",
          "sold_cents",
          "charged_out_cents",
          "other_cents",
          "currency_code",
          "inventory_line",
          "part",
          "sold_orders",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "inventory_unit_cost"
          },
          "part_number": {
            "type": "string"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_on_hand": {
            "type": "number"
          },
          "on_hand_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "sold_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "charged_out_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "other_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sold_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderStub"
            },
            "description": "The sales orders the unit is sold on and not returned from"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "inventory",
        "x-role": "ledger"
      },
      "InvestorStatement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "investor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "investor_statement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "cancelled"
            ],
            "description": "`draft`: Being prepared; its lines can still change; `sent`: Sent to the payee and final; what it nets is payable; `cancelled`: Called off; nothing on it is payable",
            "x-enum-descriptions": [
              "Being prepared; its lines can still change",
              "Sent to the payee and final; what it nets is payable",
              "Called off; nothing on it is payable"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "rate": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "net_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "line_count": {
            "type": "integer",
            "description": "The entries the statement settles"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "editable": {
            "type": "boolean"
          },
          "paid_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "balance_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "settlement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unpaid",
              "partially_paid",
              "paid",
              "overpaid",
              "credited",
              "corrected",
              null
            ],
            "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
            "x-enum-descriptions": [
              "Owed in full: nothing paid yet",
              "Some of it paid, a balance left",
              "Payments cleared the balance",
              "Payments came to more than was owed",
              "Credits cleared the balance with no payment",
              "Corrections cleared the balance with no payment or credit",
              "Not set"
            ],
            "x-enum-labels": [
              "Unpaid",
              "Partially paid",
              "Paid",
              "Overpaid",
              "Credited",
              "Corrected",
              "Not set"
            ]
          },
          "inventory_name": {
            "type": "string"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the statement prints on, each by the `form` `POST /documents` takes"
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /investor_statements/{uuid}/email` would offer to send it to: the investor's active contacts who receive statements; while it has none, its primary contact, else the investor's own email address; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /investor_statements/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the investor statement"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /investor_statements/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the investor statement",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The investor statement's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /investor_statements/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the investor statement",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "investor_statement",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the investor statement sends, each attaching its own PDF (`investor_statement` the Investor Statement); `kind` names it to send it again. Null for a reply sent in the investor statement's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "statement_recipients_missing": {
            "type": "boolean",
            "description": "On a statement out of the trash and not cancelled, whether no active contact at the investor receives statements, which `PATCH /contacts/{uuid}`'s `receives_statements` flags"
          },
          "investor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "participation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryParticipationStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participation the statement settles"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "email",
                    "cancel",
                    "record_payment",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "record_payment": "create_vendor_payment"
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /investor_statements/{uuid}/email` can send, each template filled from the investor statement, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "investor_statement"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the investor statement sends, each attaching its own PDF (`investor_statement` the Investor Statement); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the investor statement, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "statement_date",
                                            "net",
                                            "balance_due",
                                            "inventory_name",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the investor statement, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "statement_date",
                                                "net",
                                                "balance_due",
                                                "inventory_name",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "statement_date",
                                                            "net",
                                                            "balance_due",
                                                            "inventory_name",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "statement_date",
                          "net",
                          "balance_due",
                          "inventory_name",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this investor statement"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /investor_statements/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/InvestorStatementLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "money",
        "x-role": "document"
      },
      "InvestorStatementLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "margin_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "investor_statement_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "accrual",
              "value_adjustment"
            ]
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "settled_on": {
            "type": "string",
            "format": "date"
          },
          "sale_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "margin_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the investor statement's"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of the unit it settles; null where its entry settles no unit"
          },
          "reference": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; an AvSight migration's own stub where it is one; a CorePilot legacy migration's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an import's own stub where it is one; an invoice's own stub where it is one; a manifest's own stub where it is one; a receipt's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a consignor statement's own stub where it is one; an inventory line's own stub where it is one; an investor statement's own stub where it is one; a purchase order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a vendor lease's own stub where it is one; a voucher's own stub where it is one; a purchase order line's own stub where it is one; a repair order line's own stub where it is one; a work order's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "Invoice": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "invoice_date",
          "customer_po_number",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "home_cogs_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "migration_hold",
          "automatic_email_refusal",
          "invoice_recipients_missing",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "customer",
          "payment_term",
          "clause",
          "tax_destination",
          "source",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "invoice"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "cancelled"
            ],
            "description": "`draft`: Being written; not yet issued to the customer; `sent`: Issued to the customer and posted to the books; `cancelled`: Called off before it was issued; it bills nothing",
            "x-enum-descriptions": [
              "Being written; not yet issued to the customer",
              "Issued to the customer and posted to the books",
              "Called off before it was issued; it bills nothing"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Cancelled"
            ]
          },
          "invoice_date": {
            "type": "string",
            "format": "date"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "invoice",
              "credit_memo",
              "correction"
            ],
            "description": "`invoice`: Bills what a release shipped; `credit_memo`: Credits what a customer returned; `correction`: Corrects an invoice already sent",
            "x-enum-descriptions": [
              "Bills what a release shipped",
              "Credits what a customer returned",
              "Corrects an invoice already sent"
            ],
            "x-enum-labels": [
              "Invoice",
              "Credit memo",
              "Correction"
            ]
          },
          "editable": {
            "type": "boolean"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The `invoice_date` plus its payment term's days, stamped on the invoice and fixed once it is sent"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "home_cogs_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency",
            "x-internal": true
          },
          "paid_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "credited_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "balance_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "settlement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unpaid",
              "partially_paid",
              "paid",
              "overpaid",
              "credited",
              "corrected",
              null
            ],
            "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
            "x-enum-descriptions": [
              "Owed in full: nothing paid yet",
              "Some of it paid, a balance left",
              "Payments cleared the balance",
              "Payments came to more than was owed",
              "Credits cleared the balance with no payment",
              "Corrections cleared the balance with no payment or credit",
              "Not set"
            ],
            "x-enum-labels": [
              "Unpaid",
              "Partially paid",
              "Paid",
              "Overpaid",
              "Credited",
              "Corrected",
              "Not set"
            ]
          },
          "overdue": {
            "type": "boolean",
            "description": "Still `unpaid` or `partially_paid` past `due_on`, on the account's day"
          },
          "applied_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "grand_total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "tax_applies": {
            "type": "boolean"
          },
          "tax_destination_source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ship_to",
              "address",
              "customer",
              null
            ],
            "description": "`ship_to`: Picked on the ship-to address; `address`: Matched by the ship-to address's country and state; `customer`: The customer's, since the ship-to names and matches none",
            "x-enum-descriptions": [
              "Picked on the ship-to address",
              "Matched by the ship-to address's country and state",
              "The customer's, since the ship-to names and matches none",
              "Not set"
            ],
            "x-enum-labels": [
              "Ship to",
              "Address",
              "Customer",
              "Not set"
            ]
          },
          "tax_suppressed": {
            "type": "boolean"
          },
          "tax_exemption": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "reason": {
                "type": "string"
              },
              "statement": {
                "type": "string"
              },
              "expired": {
                "type": "boolean"
              }
            },
            "required": [
              "reason",
              "statement",
              "expired"
            ],
            "additionalProperties": false
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the invoice came from holds it, refusing every verb on it and its lines while that system is the system of record; null for one no outside system holds"
          },
          "automatic_email_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "On a draft whose customer has invoices emailed, why the automatic run won't issue and email it, in a sentence; null while it will, on any other invoice, and where no run emails anything: in a sandbox, or while emailing isn't released"
          },
          "invoice_recipients_missing": {
            "type": "boolean",
            "description": "On a draft or sent invoice out of the trash, whether its customer has invoices emailed while no active contact there receives them, which `PATCH /contacts/{uuid}`'s `receives_invoices` flags"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the invoice prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /invoices/{uuid}/email` would offer to send it to: the customer's active contacts who receive invoices; while it has none, the contact on the order it bills, else the contact's email address as typed on the order; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /invoices/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the invoice"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /invoices/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the invoice",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The invoice's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /invoices/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the invoice",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "invoice",
                  "credit_memo",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the invoice sends, each attaching its own PDF (`invoice` the Invoice, `credit_memo` the Credit Memo); `kind` names it to send it again. Null for a reply sent in the invoice's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer return's own stub where it is one; an invoice's own stub where it is one; a release's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "cancel",
                    "correct",
                    "record_payment",
                    "email",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "record_payment": "create_customer_payment"
            }
          },
          "credit_preview": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "unsent_bill",
              "line_count",
              "bills"
            ],
            "description": "On a draft credit memo or correction, what `POST /invoices/{uuid}/send` would credit, read before it runs; null on anything else. Present when `expand[]=credit_preview` asked for it",
            "properties": {
              "unsent_bill": {
                "type": "boolean",
                "description": "No bill behind the credited lines has gone out, so the customer would be credited against an invoice they never got"
              },
              "line_count": {
                "type": "integer"
              },
              "bills": {
                "type": "array",
                "description": "The invoices that billed what it credits",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "invoice",
                    "sent"
                  ],
                  "properties": {
                    "invoice": {
                      "$ref": "#/components/schemas/InvoiceStub"
                    },
                    "sent": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "payment_preview": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "takes",
              "left_cents"
            ],
            "description": "On a draft invoice, what `POST /invoices/{uuid}/send` would take of the payments waiting on its order, read before it runs; null on anything else. Present when `expand[]=payment_preview` asked for it",
            "properties": {
              "takes": {
                "type": "array",
                "description": "Each waiting payment it would take from, oldest first",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "payment",
                    "paid_on",
                    "amount_cents"
                  ],
                  "properties": {
                    "payment": {
                      "$ref": "#/components/schemas/CustomerPaymentStub"
                    },
                    "paid_on": {
                      "type": "string",
                      "format": "date"
                    },
                    "amount_cents": {
                      "type": "integer",
                      "description": "What it would take of the payment, in the invoice's currency"
                    }
                  }
                }
              },
              "left_cents": {
                "type": "integer",
                "description": "What the invoice would still owe once sent, in the invoice's currency"
              }
            }
          },
          "unlinked_part_numbers": {
            "type": "array",
            "description": "The part numbers typed on the invoice's lines that no catalog part names yet, one row per number however it was typed, with the lines typing it and the part already holding it: `matches` a part to link to, `inactive` a retired one, `new` none, `unusable` a number with no letter or digit. `POST /invoices/{uuid}/resolve_part_numbers` links them. Present when `expand[]=unlinked_part_numbers` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "part_number_raw",
                "description",
                "lines",
                "part",
                "status"
              ],
              "properties": {
                "part_number_raw": {
                  "type": "string",
                  "description": "The number as the first line typing it typed it"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first description one of those lines carries"
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CustomerQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/CustomerRfqLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/InvoiceLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/SalesOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorRfqLineStub"
                      }
                    ]
                  }
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part already holding the number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "matches",
                    "inactive",
                    "new",
                    "unusable"
                  ]
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /invoices/{uuid}/email` can send, each template filled from the invoice, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "invoice",
                    "credit_memo"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the invoice sends, each attaching its own PDF (`invoice` the Invoice, `credit_memo` the Credit Memo); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the invoice, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "customer_po_number",
                                            "total",
                                            "balance_due",
                                            "due_date",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the invoice, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "customer_po_number",
                                                "total",
                                                "balance_due",
                                                "due_date",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "customer_po_number",
                                                            "total",
                                                            "balance_due",
                                                            "due_date",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "customer_po_number",
                          "total",
                          "balance_due",
                          "due_date",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this invoice"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /invoices/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/InvoiceLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "money",
        "x-role": "document"
      },
      "InvoiceLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "description",
          "serial_number",
          "part_number_raw",
          "part_description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "quantity",
          "condition_code",
          "line_total_cents",
          "home_line_cost_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "inventory_kind",
          "custody_reason",
          "warranty_days",
          "customer_warranty_expires_on",
          "currency_code",
          "release_line",
          "customer_return_line",
          "corrects",
          "sales_order_line",
          "company",
          "part",
          "charge",
          "combined_tax_rate",
          "inventory_line",
          "inventory_code",
          "owner_company",
          "invoice",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "invoice_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`",
            "x-internal": true
          },
          "quantity": {
            "type": "number"
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "home_line_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`",
            "x-internal": true
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "tax_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "taxes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": "string"
                },
                "taxable_cents": {
                  "type": "number"
                },
                "tax_cents": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "percentage",
                "taxable_cents",
                "tax_cents"
              ]
            }
          },
          "inventory_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unit_costed",
              "cost_pool",
              "consignment",
              "custody",
              null
            ],
            "description": "`unit_costed`: Our own stock, each unit carrying its own cost; `cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale; `custody`: Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
            "x-enum-descriptions": [
              "Our own stock, each unit carrying its own cost",
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
              "Not set"
            ],
            "x-enum-labels": [
              "Unit-costed",
              "Cost pool",
              "Consignment",
              "Held for others",
              "Not set"
            ]
          },
          "custody_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repair",
              "lease",
              null
            ],
            "description": "Why a unit held for others is here: a customer's in for repair, or a vendor's we lease; null for one that isn't",
            "x-enum-descriptions": [
              "A customer's unit: held for others and not received on a lease purchase order line",
              "A vendor's unit, received on a lease purchase order line",
              "Not set"
            ],
            "x-enum-labels": [
              "Repair",
              "Lease",
              "Not set"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The warranty we give, in days, as the order line it ships states it: The warranty we give on the line, in days from shipment: null states no term, and 0 is none (as is). Never the unit's own warranty, and refused on a charge line"
          },
          "customer_warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the warranty we give on the shipped unit ends: the business's shipping day plus the order line's `warranty_days`. Null before it ships and where the line states no term or none (0); never the unit's own warranty"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the invoice's"
          },
          "release_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The shipment line it bills, or the one the line it corrects billed"
          },
          "customer_return_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerReturnLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The return line it credits"
          },
          "corrects": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The invoice line it corrects"
          },
          "sales_order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sales order line it bills, through whichever of those it has"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The invoice's customer, by its company"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "combined_tax_rate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "invoice": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The invoice the line is on"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "IssuedPart": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "market_value_cents",
          "stage",
          "line_position",
          "quantity",
          "quantity_allocated",
          "quantity_issued",
          "quantity_put_back",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_to_issue",
          "quantity_to_put_back",
          "allocations",
          "currency_code",
          "order",
          "order_line",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "issued_part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "market_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "stage": {
            "type": "string",
            "enum": [
              "pending",
              "allocated",
              "at_vendor",
              "settled"
            ]
          },
          "line_position": {
            "type": "number"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_allocated": {
            "type": "number"
          },
          "quantity_issued": {
            "type": "number"
          },
          "quantity_put_back": {
            "type": "number"
          },
          "quantity_shipped": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "quantity_to_issue": {
            "type": [
              "number",
              "null"
            ]
          },
          "quantity_to_put_back": {
            "type": [
              "number",
              "null"
            ]
          },
          "allocations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "supply": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderLineStub"
                    }
                  ],
                  "description": "The unit or inbound line the allocation holds"
                },
                "quantity": {
                  "type": "number"
                },
                "staged": {
                  "type": "boolean"
                }
              },
              "required": [
                "uuid",
                "supply",
                "quantity",
                "staged"
              ]
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a purchase order's own stub where it is one; a repair order's own stub where it is one"
          },
          "order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a purchase order line's own stub where it is one; a repair order line's own stub where it is one"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "allocate",
                    "put_back",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "allocate": "create_allocation"
            }
          }
        },
        "x-area": "inventory",
        "x-role": "master_data"
      },
      "Item": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "label",
          "description",
          "inactive_at",
          "part",
          "charge",
          "tax_category",
          "revenue_ledger_account",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "item"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ],
            "description": "Whether the item is a part or a charge, which `part` or `charge` names"
          },
          "label": {
            "type": "string",
            "description": "The item as a line names it: the part number, or the charge's code and name"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The part's or the charge's description"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When its part or charge was retired, or null while it is active"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the item is, or null for a charge"
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The charge the item is, or null for a part"
          },
          "tax_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "revenue_ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "JunkHelp": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "email_address",
          "domain",
          "mail_system",
          "gateway",
          "mail_servers",
          "signing_domain",
          "own_domain",
          "recipient_request",
          "admin_request",
          "organization"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "junk_help"
          },
          "email_address": {
            "type": "string",
            "description": "The recipient's address"
          },
          "domain": {
            "type": "string",
            "description": "The recipient's domain, whose mail servers were read"
          },
          "mail_system": {
            "type": "string",
            "enum": [
              "microsoft_365",
              "google_workspace",
              "gateway",
              "other",
              "unread"
            ],
            "description": "Who runs the recipient's mail, from their most preferred mail server: `microsoft_365`, `google_workspace`, a filtering `gateway` in front of a system it hides, `other` for one not recognized or no mail servers at all, or `unread` when their domain's DNS didn't answer just now"
          },
          "gateway": {
            "type": [
              "string",
              "null"
            ],
            "description": "The filtering service a `gateway` names (Mimecast, Proofpoint, Barracuda); null otherwise"
          },
          "mail_servers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The recipient's domain's mail servers, most preferred first; empty when it has none or its DNS didn't answer"
          },
          "signing_domain": {
            "type": "string",
            "description": "The domain the email went from, which signed it: the organization's own, or Terminal's address"
          },
          "own_domain": {
            "type": "boolean",
            "description": "Whether the email went from the organization's own domain; false when it went from Terminal's address"
          },
          "recipient_request": {
            "type": "string",
            "description": "A note to send the recipient, ready to send: which email landed in their junk folder, how to mark it as not junk in their mail system, and the address to add to their contacts so the next one reaches their inbox"
          },
          "admin_request": {
            "type": "string",
            "description": "A short note for the recipient's mail administrator, for when email keeps landing in junk across their company: where to allow mail signed by `signing_domain` in their mail system, with its maker's guidance"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization that sent the email, whose Email sending settings set up its own domain"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "LaborEntry": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "origin",
          "started_at",
          "ended_at",
          "hours",
          "cost_rate_cents",
          "bill_rate_cents",
          "cost_cents",
          "bill_cents",
          "currency_code",
          "work_order_task",
          "work_order",
          "employee",
          "skill",
          "entered_by",
          "reversal_of",
          "reversal",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "labor_entry"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "origin": {
            "type": "string",
            "enum": [
              "clocked",
              "keyed"
            ],
            "description": "`clocked`: Clocked in and out by the employee who did the work; `keyed`: Keyed in afterwards by someone else: from a timesheet, or correcting or taking back another entry",
            "x-enum-descriptions": [
              "Clocked in and out by the employee who did the work",
              "Keyed in afterwards by someone else: from a timesheet, or correcting or taking back another entry"
            ],
            "x-enum-labels": [
              "Clocked",
              "Keyed"
            ]
          },
          "started_at": {
            "type": "string",
            "format": "date-time"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was clocked out; null while the employee is still clocked in"
          },
          "hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The hours charged, to the hundredth; null until charged. An entry overlapping another of the employee's is charged when the last of them clocks out, each taking its share of the time they span by the organization's `labor_split`"
          },
          "cost_rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency: what an hour costs, the employee's own hourly cost where set, else the skill's burden rate, as they stood when it started; null where neither is set"
          },
          "bill_rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency: what an hour bills, the skill's bill rate when it started; null where unset"
          },
          "cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency: the hours at the cost rate, what the work order's labor WIP holds; null until charged, as `hours` is"
          },
          "bill_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency: the hours at the bill rate; null until charged, as `hours` is"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "work_order_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "entered_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The seat that recorded it: the employee's own for a clock-in"
          },
          "reversal_of": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LaborEntryStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The entry this one takes back; null for any other"
          },
          "reversal": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/LaborEntryStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The entry taking this one back, by a correction or a removal; null while it stands"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "clock_out",
                    "correct",
                    "remove"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "LeadTime": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "days",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "lead_time"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "LedgerAccountActivity": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name",
          "kind",
          "debit_cents",
          "credit_cents",
          "net_change_cents",
          "posted_to_date_cents",
          "pending_to_date_cents",
          "net_to_date_cents",
          "currency_code",
          "ledger_account"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ledger_account_activity"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ],
            "x-enum-labels": [
              "Asset",
              "Liability",
              "Equity",
              "Revenue",
              "Cost of goods sold",
              "Expense"
            ]
          },
          "debit_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: debited to the account inside the span"
          },
          "credit_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: credited to the account inside the span"
          },
          "net_change_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: debits less credits inside the span"
          },
          "posted_to_date_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: debits less credits through the span's end, from transactions the connected books hold"
          },
          "pending_to_date_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: debits less credits through the span's end, from transactions not yet in the connected books"
          },
          "net_to_date_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: posted and pending to date together, every posting since the first"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "LedgerAccount": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "kind",
          "inactive_at",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ledger_account"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ],
            "x-enum-labels": [
              "Asset",
              "Liability",
              "Equity",
              "Revenue",
              "Cost of goods sold",
              "Expense"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quickbooks_assignment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "quickbooks_id",
              "origin"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "quickbooks_id": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "enum": [
                  "matched",
                  "created",
                  "manual"
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "LedgerAccountLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "posted_on",
          "activity",
          "accounting_transaction_status",
          "memo",
          "purpose",
          "purpose_label",
          "description",
          "home_debit_cents",
          "home_credit_cents",
          "home_net_to_date_cents",
          "home_currency_code",
          "home_currency_exponent",
          "accounting_transaction",
          "source",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ledger_account_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "posted_on": {
            "type": "string",
            "format": "date"
          },
          "activity": {
            "type": "string",
            "enum": [
              "receipt",
              "issue",
              "scrap",
              "value_adjustment",
              "quantity_adjustment",
              "acquisition",
              "chargeout",
              "accrual",
              "settlement",
              "transfer_out",
              "transfer_in",
              "write_off",
              "return_release",
              "core_charge",
              "lease_writedown",
              "return_credit",
              "labor",
              "invoice",
              "credit_memo",
              "correction",
              "bill",
              "vendor_credit",
              "voucher_correction"
            ]
          },
          "accounting_transaction_status": {
            "type": "string",
            "enum": [
              "pending",
              "posted",
              "failed",
              "skipped"
            ]
          },
          "memo": {
            "type": [
              "string",
              "null"
            ]
          },
          "purpose": {
            "type": "string"
          },
          "purpose_label": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "home_debit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "home_credit_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "home_net_to_date_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency: debits less credits to the account through this line, in posting order"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "accounting_transaction": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AccountingTransactionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/InventoryEntryStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The document the posting came from: for an inventory movement, the invoice, voucher, exchange or return behind it, or the inventory entry where none is; for labor, the work order it was clocked to"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "entity": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "Listing": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_number",
          "alternate_part_numbers",
          "description",
          "condition",
          "traceability",
          "quantity_available",
          "unit_of_measure",
          "manufacturer",
          "cage_code",
          "serial_number",
          "trace_source",
          "unit_price_cents",
          "inventory_line_identifier",
          "currency_code",
          "organization",
          "part",
          "sellable"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "listing"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The listing's own; `sellable` names the line or vendor row it lists, which a catalog lists once"
          },
          "part_number": {
            "type": "string"
          },
          "alternate_part_numbers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Part numbers this part can stand in for, from either end of a two-way pair and the newer end of a one-way one, in order"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "code",
              "name"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "description": "The marketplace's own condition the line was sent as, kept as sent when its mapping changes"
          },
          "traceability": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "code",
              "name"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "description": "The marketplace's own tag type the line was sent as; null for none"
          },
          "quantity_available": {
            "type": "number"
          },
          "unit_of_measure": {
            "type": "string"
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ]
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency: the price the last refresh sent, the active outright part price for every customer at one unit, in the line's condition or any condition, the line's own condition winning; null unless the marketplace `includes_prices`, or when no such price exists"
          },
          "inventory_line_identifier": {
            "type": [
              "string",
              "null"
            ],
            "description": "The line of ours it lists, kept once the line is deleted; null for a vendor's row"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sellable": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it lists: a line of ours, or a vendor's inventory row naming the vendor; null once it is deleted, until the next refresh drops it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "ListingRefresh": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "trigger",
          "status",
          "outcome",
          "outcome_detail",
          "error",
          "listed_count",
          "added_count",
          "dropped_count",
          "quantity_changed_count",
          "omitted_count",
          "started_at",
          "completed_at",
          "marketplace_integration",
          "marketplace_catalog",
          "export",
          "requester",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "listing_refresh"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "trigger": {
            "type": "string",
            "enum": [
              "scheduled",
              "requested"
            ],
            "description": "`scheduled`: The integration's schedule came due; `requested`: A person or an API caller asked for it",
            "x-enum-descriptions": [
              "The integration's schedule came due",
              "A person or an API caller asked for it"
            ],
            "x-enum-labels": [
              "Scheduled",
              "Requested"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "building",
              "completed",
              "failed"
            ],
            "description": "`pending`: Queued, and nothing built yet; `building`: Building the listings file; `completed`: Built the file and counted what changed since the last refresh; `failed`: Stopped by an error, before or after its file was built",
            "x-enum-descriptions": [
              "Queued, and nothing built yet",
              "Building the listings file",
              "Built the file and counted what changed since the last refresh",
              "Stopped by an error, before or after its file was built"
            ],
            "x-enum-labels": [
              "Pending",
              "Building",
              "Completed",
              "Failed"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ready_to_download",
              "sent",
              "under_review",
              "delivered",
              "withheld",
              "failed",
              null
            ],
            "description": "`ready_to_download`: The file waits to be downloaded and uploaded by hand; `sent`: Sent to the marketplace, which is still processing the file; `under_review`: The marketplace's team is reviewing the file by hand; `delivered`: The marketplace took the file; `withheld`: Built in a sandbox, which never sends listings anywhere; `failed`: The file couldn't be built or sent",
            "x-enum-descriptions": [
              "The file waits to be downloaded and uploaded by hand",
              "Sent to the marketplace, which is still processing the file",
              "The marketplace's team is reviewing the file by hand",
              "The marketplace took the file",
              "Built in a sandbox, which never sends listings anywhere",
              "The file couldn't be built or sent",
              "Not set"
            ],
            "x-enum-labels": [
              "Ready to download",
              "Sent",
              "Under review",
              "Delivered",
              "Withheld",
              "Failed",
              "Not set"
            ]
          },
          "outcome_detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where the file went, in a sentence written for the person reading it"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it failed, in a sentence written for the person reading it; null unless it failed"
          },
          "listed_count": {
            "type": "integer",
            "description": "Listings in the file it built: inventory lines, or parts for a capabilities catalog"
          },
          "added_count": {
            "type": "integer",
            "description": "Listings now that the run before didn't list"
          },
          "dropped_count": {
            "type": "integer",
            "description": "Listings the run before listed that this one doesn't"
          },
          "quantity_changed_count": {
            "type": "integer",
            "description": "Inventory lines listed both times with a different quantity; 0 for a capabilities catalog"
          },
          "omitted_count": {
            "type": "integer",
            "description": "Listings left out, each a row of its export's `omissions`"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "marketplace_integration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MarketplaceIntegrationStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace_catalog": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "export": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ExportStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "requester": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Manifest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "label",
          "quantity_expected",
          "quantity_received",
          "quantity_rejected",
          "quantity_pending",
          "quantity_scrapped",
          "quantity_cancelled",
          "quantity_outstanding",
          "status",
          "open",
          "line_count",
          "receipt_count",
          "import_count",
          "export_count",
          "inventory_name",
          "funding",
          "source_unit",
          "migration_hold",
          "document_forms",
          "organization",
          "inventory_code",
          "open_receipt",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "manifest"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "description": "Its inventory code and name, as an import or export onto it names it"
          },
          "quantity_expected": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_rejected": {
            "type": "number"
          },
          "quantity_pending": {
            "type": "number"
          },
          "quantity_scrapped": {
            "type": "number"
          },
          "quantity_cancelled": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "complete",
              "cancelled"
            ],
            "description": "Complete or cancelled as it was closed; else open while a line is still expected or none is listed, complete once none is",
            "x-enum-descriptions": [
              "A line is still expected, some of it neither received, scrapped nor cancelled, or none is listed yet",
              "Nothing more is expected: every line is received, scrapped or cancelled, or the manifest was completed",
              "Called off: no line on it is receivable any more"
            ],
            "x-enum-labels": [
              "Open",
              "Complete",
              "Cancelled"
            ]
          },
          "open": {
            "type": "boolean"
          },
          "line_count": {
            "type": "integer",
            "description": "Every line, a cancelled one too"
          },
          "receipt_count": {
            "type": "integer",
            "description": "Its receipts, a trashed one left out"
          },
          "import_count": {
            "type": "integer",
            "description": "The spreadsheets imported onto it"
          },
          "export_count": {
            "type": "integer",
            "description": "The files exported from it"
          },
          "inventory_name": {
            "type": "string",
            "description": "Its inventory code's name"
          },
          "funding": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The purchase or repair order whose package or teardown it expects; null for one made by hand"
          },
          "source_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit a teardown breaks down; null for any other manifest"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the manifest came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the manifest prints on, each by the `form` `POST /documents` takes"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt its lines are coming in on, which `POST /manifests/{uuid}/create_receipt` opens and adds lines to; null until one is open"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "import_lines",
                    "create_receipt"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "lines": {
            "$ref": "#/components/schemas/ManifestLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "warehouse",
        "x-role": "document"
      },
      "ManifestLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "serial_number",
          "note",
          "status",
          "quantity",
          "quantity_scrapped",
          "quantity_received",
          "quantity_pending",
          "quantity_rejected",
          "quantity_outstanding",
          "resolved",
          "cancelled",
          "cancelled_at",
          "receipt_lines",
          "manifest",
          "part",
          "condition",
          "warehouse",
          "bin",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "manifest_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "outstanding",
              "complete",
              "cancelled"
            ],
            "description": "`outstanding`: Expected still: some is neither received, scrapped nor cancelled; `complete`: All of it received or scrapped; `cancelled`: No longer expected",
            "x-enum-descriptions": [
              "Expected still: some is neither received, scrapped nor cancelled",
              "All of it received or scrapped",
              "No longer expected"
            ],
            "x-enum-labels": [
              "Outstanding",
              "Complete",
              "Cancelled"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "quantity_scrapped": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_pending": {
            "type": "number"
          },
          "quantity_rejected": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "resolved": {
            "type": "boolean"
          },
          "cancelled": {
            "type": "boolean"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "receipt_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "ordinal": {
                  "type": "number"
                },
                "received": {
                  "type": "boolean"
                },
                "receipt": {
                  "$ref": "#/components/schemas/ReceiptStub"
                },
                "receipt_status": {
                  "type": "string"
                }
              },
              "required": [
                "uuid",
                "ordinal",
                "received",
                "receipt",
                "receipt_status"
              ],
              "additionalProperties": false
            }
          },
          "manifest": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "scrap"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "warehouse",
        "x-role": "line"
      },
      "Manufacturer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "cage_code",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "manufacturer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceCatalog": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "lists",
          "buyer_group",
          "inactive_at",
          "marketplace_integration",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_catalog"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "lists": {
            "type": "string",
            "enum": [
              "inventory",
              "capabilities"
            ],
            "description": "What the catalog lists. Fixed once kept",
            "x-enum-descriptions": [
              "Our inventory lines, one listing per line",
              "Our repair capabilities, one listing per part"
            ],
            "x-enum-labels": [
              "Inventory",
              "Capabilities"
            ]
          },
          "buyer_group": {
            "type": [
              "string",
              "null"
            ],
            "description": "The marketplace's id for the buyers this catalog is for; null for the general catalog every buyer sees. Fixed once kept"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "marketplace_integration": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/MarketplaceIntegrationStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "refresh_listings"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceCondition": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_conditions",
          "answering_conditions",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_condition"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The condition's code as the marketplace spells it"
          },
          "name": {
            "type": "string"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "listed_conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "answering_conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Marketplace": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "known_as",
          "takes_listings",
          "includes_prices",
          "includes_vendor_inventory",
          "seller_id_label",
          "credential_fields",
          "marketplace_conditions",
          "marketplace_tag_types",
          "marketplace_measurement_units",
          "marketplace_repair_services",
          "inactive_at",
          "external_system",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "known_as": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ils",
              "partsbase",
              "the145",
              "b2b_aero",
              null
            ],
            "description": "The marketplace the app knows whose published conditions and tag types this one was added from; null for one added by hand",
            "x-enum-descriptions": [
              "ILS, the conditions its inventory upload takes and the tag types its RFQ quotes name",
              "PartsBase, its API lists of conditions and traceabilities",
              "The145, a repair marketplace whose repair RFQs arrive by email",
              "B2B-Aero (OneAero), a repair marketplace whose repair RFQs arrive by email",
              "Not set"
            ],
            "x-enum-labels": [
              "ILS",
              "PartsBase",
              "The145",
              "B2B-Aero",
              "Not set"
            ]
          },
          "takes_listings": {
            "type": "boolean",
            "description": "Whether Smart Listing lists inventory on it; false for one the app only reads RFQs from, such as The145"
          },
          "includes_prices": {
            "type": "boolean",
            "description": "Whether its listings carry each part's price for every customer; off until told"
          },
          "includes_vendor_inventory": {
            "type": "boolean",
            "description": "Whether its listings carry each vendor's outright inventory row inside its dates, beside our own lines; off until told"
          },
          "seller_id_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "What its file calls the code it assigned the seller, which each organization keeps as its external key under `external_system`; null when its file needs none"
          },
          "credential_fields": {
            "type": "array",
            "description": "The credentials its API asks for, in the order to enter them; empty when it lists by file alone",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "key",
                "label"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Its key in an integration's `credentials` on a write"
                },
                "label": {
                  "type": "string"
                }
              }
            }
          },
          "marketplace_conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceCondition"
            },
            "description": "The conditions it defines, in its own order, each as `/marketplace_conditions` lists it"
          },
          "marketplace_tag_types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceTagType"
            },
            "description": "The tag types it names, in its own order, each as `/marketplace_tag_types` lists it"
          },
          "marketplace_measurement_units": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceMeasurementUnit"
            },
            "description": "The units of measure it takes, in its own order, each as `/marketplace_measurement_units` lists it"
          },
          "marketplace_repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceRepairService"
            },
            "description": "The repair services it names, in its own order, each as `/marketplace_repair_services` lists it"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The system each organization's ID from this marketplace is kept under, as an organization's external key; null when its file needs none"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceIntegration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "mode",
          "schedule",
          "credential_fields",
          "last_refresh",
          "signed_out_at",
          "sign_in_refusal",
          "paused_until",
          "inactive_at",
          "organization",
          "marketplace",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "mode": {
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ],
            "description": "`manual`: Refreshes its listings when asked, its file downloaded and uploaded to the marketplace by hand; `automatic`: Refreshes its listings on its schedule, sending the file through the marketplace's API",
            "x-enum-descriptions": [
              "Refreshes its listings when asked, its file downloaded and uploaded to the marketplace by hand",
              "Refreshes its listings on its schedule, sending the file through the marketplace's API"
            ],
            "x-enum-labels": [
              "Manual",
              "Automatic"
            ]
          },
          "schedule": {
            "type": "string",
            "enum": [
              "daily",
              "weekly"
            ],
            "description": "`daily`: An automatic integration refreshes its listings once a day; `weekly`: An automatic integration refreshes its listings once a week, in the week from Monday",
            "x-enum-descriptions": [
              "An automatic integration refreshes its listings once a day",
              "An automatic integration refreshes its listings once a week, in the week from Monday"
            ],
            "x-enum-labels": [
              "Daily",
              "Weekly"
            ]
          },
          "credential_fields": {
            "type": "array",
            "description": "The credentials the marketplace's API asks for, each with whether one is kept; a value is never sent back",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "key",
                "label",
                "set"
              ],
              "properties": {
                "key": {
                  "type": "string",
                  "description": "Its key in `credentials` on a write"
                },
                "label": {
                  "type": "string"
                },
                "set": {
                  "type": "boolean"
                }
              }
            }
          },
          "last_refresh": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ListingRefresh"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its general inventory catalog's newest run, the one `refresh_listings` starts; null before the first"
          },
          "signed_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the marketplace refused the saved login and it was cleared, for as long as no login is saved again; null otherwise"
          },
          "sign_in_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the login was signed out, in a sentence; null unless signed out"
          },
          "paused_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Until when nothing is asked of the marketplace, after it couldn't be reached several times in a row; null when not paused"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "refresh_listings",
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceMeasurementUnit": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_measurement_units",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_measurement_unit"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The unit's code as the marketplace spells it"
          },
          "name": {
            "type": "string"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "listed_measurement_units": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceRepairService": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_repair_services",
          "answering_repair_services",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_repair_service"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The service's code as the marketplace spells it"
          },
          "name": {
            "type": "string"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "listed_repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "answering_repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MarketplaceTagType": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "listed_tag_types",
          "answering_tag_types",
          "marketplace",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "marketplace_tag_type"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "description": "The tag type's code as the marketplace spells it; a PartsBase traceability is its catalog id"
          },
          "name": {
            "type": "string"
          },
          "listed_tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "faa_easa_dual",
                "faa_uk_dual",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "A dual release: one tag releasing the part under both the FAA and EASA",
                "A dual release: one tag releasing the part under both the FAA and the UK CAA",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "FAA/EASA dual release",
                "FAA/UK CAA dual release",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Our tag types that list as it; each lists as at most one of the marketplace's"
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "faa_easa_dual",
                "faa_uk_dual",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "A dual release: one tag releasing the part under both the FAA and EASA",
                "A dual release: one tag releasing the part under both the FAA and the UK CAA",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "FAA/EASA dual release",
                "FAA/UK CAA dual release",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Our tag types that satisfy an RFQ asking for it"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MeasurementUnit": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "dimension",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "measurement_unit"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dimension": {
            "type": "string",
            "enum": [
              "count",
              "length",
              "weight",
              "volume",
              "time"
            ],
            "description": "`count`: Counted in whole or part units, such as each or kit; `length`: Measured along one dimension, such as inches or meters; `weight`: Weighed, such as pounds or kilograms; `volume`: Measured by volume, such as gallons or liters; `time`: Measured in time, such as hours of labor",
            "x-enum-descriptions": [
              "Counted in whole or part units, such as each or kit",
              "Measured along one dimension, such as inches or meters",
              "Weighed, such as pounds or kilograms",
              "Measured by volume, such as gallons or liters",
              "Measured in time, such as hours of labor"
            ],
            "x-enum-labels": [
              "Count",
              "Length",
              "Weight",
              "Volume",
              "Time"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "MeasurementUnitListing": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace",
          "measurement_unit",
          "marketplace_measurement_unit",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "measurement_unit_listing"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace_measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Membership": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "kind",
          "inactive_at",
          "has_avatar",
          "away_until",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "membership"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "user",
              "bot",
              "staff"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "has_avatar": {
            "type": "boolean",
            "description": "Whether `GET /memberships/{uuid}/avatar` serves the person's picture, a redirect to the image at a link that lapses in minutes"
          },
          "away_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this person's current time away ends: back-to-back or overlapping away events and closures count as one stretch, looking ahead at most 90 days. An all-day stretch ends at the start of the business day after its last. Round robin passes over someone away. Null when they aren't away now"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "resend_invitation",
                    "invite"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "access": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "email_address",
              "has_login",
              "tier",
              "roles"
            ],
            "description": "Who the seat signs in as, its access tier and the roles it holds, which only `settings:manage` reads. Present when `expand[]=access` asked for it",
            "properties": {
              "email_address": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The login's address, or for a person with no login the address an invitation would go to; null for a bot, which signs in as no one"
              },
              "has_login": {
                "type": "boolean",
                "description": "Whether a login holds the seat: false for a person added without an invitation, who signs in as no one until `POST /memberships/{uuid}/invite`, and for a bot"
              },
              "tier": {
                "type": "string",
                "enum": [
                  "owner",
                  "admin",
                  "standard"
                ],
                "description": "`owner` and `admin` hold every grant; `standard` reads, and does what its roles bundle"
              },
              "roles": {
                "type": "array",
                "description": "The roles the seat holds, by name",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "name"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system the person came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none. Only `settings:manage` reads them. Present when `expand[]=source_fields` asked for it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Message": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "channel",
          "kind",
          "subject",
          "label",
          "from_address",
          "from_name",
          "to_addresses",
          "cc_addresses",
          "delivered_to_address",
          "internet_message_id",
          "in_reply_to",
          "occurred_at",
          "body_plain",
          "body_html",
          "status",
          "status_reason",
          "status_reason_label",
          "attachments",
          "attachments_left_out",
          "suspected_malware",
          "suspected_spam",
          "sender_check",
          "first_from_address",
          "sender_rule_effect",
          "sender_domain_block_refusal",
          "sender_domain_allow_refusal",
          "passes",
          "imitated_domain",
          "conversation",
          "marketplace",
          "suggested_conversation",
          "imitated_company",
          "company",
          "contact",
          "logged_by",
          "delivery",
          "reading",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "message"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone",
              "chat"
            ],
            "description": "How it was said: `email`, or a `phone` call or `chat` a person logged",
            "x-enum-descriptions": [
              "Received or sent as email",
              "Said on a phone call, as a person logged it",
              "Said in a chat (WhatsApp, SMS, Teams and the like), as a person logged it or pasted it"
            ],
            "x-enum-labels": [
              "Email",
              "Phone",
              "Chat"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound"
            ],
            "x-enum-labels": [
              "Received",
              "Sent"
            ],
            "description": "`inbound` for what the counterparty said to the organization, `outbound` for what the organization said to them"
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "label": {
            "type": "string",
            "description": "What the Inbox calls it: an email's subject, or a logged call or chat by who it was with (`Call from Acme Aero`)"
          },
          "from_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "from_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "to_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "delivered_to_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The intake address it arrived at"
          },
          "internet_message_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "in_reply_to": {
            "type": [
              "string",
              "null"
            ]
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it was said: an email's own Date header, or the moment a person logged it for"
          },
          "body_plain": {
            "type": [
              "string",
              "null"
            ],
            "description": "The text: an email's plain body, or what a person wrote down or pasted"
          },
          "body_html": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pending",
              "processing",
              "completed",
              "failed",
              "ignored",
              "held",
              null
            ],
            "description": "Where processing a message the organization received stands; null on one it sent",
            "x-enum-descriptions": [
              "Received and waiting for its first pass",
              "A pass is reading it now",
              "Processed and passed on to what its address is for",
              "The last pass hit an error; a person can process it again",
              "Left alone: mail no person needs to read, a copy of an earlier email, Gmail's forwarding confirmation, or ignored by a person",
              "Waiting for a person: to place it in a conversation, or to judge an email the mail scan suspected or that failed its sender's domain's authentication",
              "Not set"
            ],
            "x-enum-labels": [
              "Pending",
              "Processing",
              "Completed",
              "Failed",
              "Ignored",
              "Held",
              "Not set"
            ]
          },
          "status_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "by_hand",
              "copy_of_earlier_message",
              "footer_from_stranger",
              "unmatched_reply",
              "suspected_malware",
              "failed_authentication",
              "suspected_spam",
              "unconfirmed_sender",
              "blocked_sender",
              "marked_spam",
              "forwarding_confirmation",
              "own_email",
              "automatic_reply",
              "bulk",
              "bounce",
              "over_model_limit",
              null
            ],
            "description": "Why the latest pass ignored, held or failed it; null otherwise",
            "x-enum-descriptions": [
              "A person ignored it",
              "A copy of an email already received",
              "Quotes our email from outside the conversation it quotes",
              "A reply to an email we can't find",
              "The mail scan found a virus in it: never read, and its files download only behind a warning",
              "It failed the DMARC check of the domain in its From, which asks for such mail to be quarantined or rejected, and none of your own domains forwarded it; Reprocess reads it when it is genuine",
              "The mail scan marked it as spam; Reprocess reads it when the scan is wrong",
              "It names a conversation only by answering one of our emails, at the reply address or by its headers, from a sender that failed its domain's check or whose domain looks like one of your companies'; Move places it in that conversation when it is genuine",
              "Its From address, or that address's domain, is blocked on Sender rules: never read while the block stands, and read by Reprocess once it is unblocked",
              "A person marked it as spam, which also blocked its From address",
              "Google asking to confirm a Gmail account's forwarding to this address: never read, and its link shown on the Smart Quoting page",
              "Our own email delivered back to us",
              "An out-of-office or other message a machine sent",
              "Bulk or junk mail",
              "A bounce or delivery report",
              "Not read: Smart Quoting had reached this month's model limit; it is read once the limit is raised or the month turns",
              "Not set"
            ],
            "x-enum-labels": [
              "By hand",
              "A copy of an earlier email",
              "Quotes our email from outside its conversation",
              "A reply to an email we can't find",
              "Suspected malware",
              "Failed its domain's authentication",
              "Suspected spam",
              "Couldn't confirm its sender",
              "From a blocked sender",
              "Marked as spam",
              "Gmail forwarding confirmation",
              "Our own email",
              "Automatic reply",
              "Bulk mail",
              "Bounce",
              "Over this month's model limit",
              "Not set"
            ]
          },
          "status_reason_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "The status reason in words, as the Inbox says it"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "filename",
                "content_type",
                "inline",
                "byte_size"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Fetched from `GET /message_files/{uuid}/content`"
                },
                "filename": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "content_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "inline": {
                  "type": "boolean",
                  "description": "Shown inside the body, as a signature's logo is, rather than attached"
                },
                "byte_size": {
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              }
            }
          },
          "attachments_left_out": {
            "type": "integer",
            "description": "How many files came with a received email but weren't kept beside it: each over 25 MB, and any past the first 30. They are still in the original, `GET /messages/{uuid}/content`"
          },
          "suspected_malware": {
            "type": "boolean",
            "description": "Whether the mail scan found a virus in a received email: it is never read, and its files and original download only, never opening in the browser"
          },
          "suspected_spam": {
            "type": "boolean",
            "description": "Whether the mail scan marked a received email as spam: it is held for a person unless a sender rule allows its sender, and the app shows its web links as text until a pass a person started reads it and completes it"
          },
          "sender_check": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "verified",
              "unverified",
              "failed",
              null
            ],
            "description": "Whether a received email shows it came from the domain in its From, as the mail service's checks found; null on one sent or logged",
            "x-enum-descriptions": [
              "The domain in its From signed it (DKIM), so it came from that domain",
              "Nothing shows it came from the domain in its From: that domain didn't sign it, and its DMARC check didn't fail, or failed only because one of your own domains forwarded it",
              "It failed the DMARC check of the domain in its From, unsigned by that domain and not forwarded by one of your own: held when the domain asks for such mail to be quarantined or rejected",
              "Not set"
            ],
            "x-enum-labels": [
              "Verified",
              "Unverified",
              "Failed authentication",
              "Not set"
            ]
          },
          "first_from_address": {
            "type": "boolean",
            "description": "Whether a received email was the first the tenant received from its From address; false when its From names no address, and on one sent or logged"
          },
          "sender_rule_effect": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "block",
              "allow",
              null
            ],
            "description": "What the sender rule a received email's From answers to does, its address's own or else its nearest domain's: `allow` when an administrator vouched for the sender, so the app shows no first-email or lookalike warning; null when no rule covers it",
            "x-enum-descriptions": [
              "Its email is held unread, as From a blocked sender, until it is unblocked",
              "Its email isn't held when the mail scan marks it as spam, and shows no first-email or lookalike warning; it is still held for malware or a failed authentication, and is never treated as confirmed to come from them",
              "Not set"
            ],
            "x-enum-labels": [
              "Blocked",
              "Allowed",
              "Not set"
            ]
          },
          "sender_domain_block_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why `block_sender` with `kind` `domain` can't block a received email's From domain, such as a free email service or one a sender rule already names; null when it can, and on one sent or logged"
          },
          "sender_domain_allow_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why `allow_sender` with `kind` `domain` can't allow a received email's From domain, such as a free email service or one a sender rule already names; null when it can, and on one sent or logged"
          },
          "passes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "started_at",
                "ended_at",
                "status",
                "reason",
                "reason_label",
                "error",
                "started_by"
              ],
              "properties": {
                "started_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "ended_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "processing",
                    "completed",
                    "ignored",
                    "held",
                    "failed"
                  ]
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the pass ignored, held or failed the message; null for a failure with no reason of its own"
                },
                "reason_label": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The reason in words, as the message's activity says it"
                },
                "error": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why a failed pass failed, in a sentence for a person to read"
                },
                "started_by": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The person who asked for the pass; null for one that ran on arrival"
                }
              }
            },
            "description": "Each time the app processed it, oldest first"
          },
          "imitated_domain": {
            "type": [
              "string",
              "null"
            ],
            "description": "The domain on file that a received email's From domain looks like, judged against the companies and contacts on file now and updated when one of them changes, so every email from that domain says the same; null when it looks like none"
          },
          "conversation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConversationStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggested_conversation": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConversationStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "imitated_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company a received email's From domain looks like without being one on file for it: a letter or a lookalike character away from a domain the company or one of its contacts uses, or the same name under another ending; null when it looks like none"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "logged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "state",
              "recipients",
              "copies"
            ],
            "properties": {
              "state": {
                "type": "string",
                "enum": [
                  "sending",
                  "sent",
                  "delayed",
                  "delivered",
                  "rejected",
                  "failed",
                  "bounced",
                  "complained"
                ],
                "description": "How the email's delivery stands, its most troubled recipient's state first: `sending` until the mail service takes it, then `sent`, `delayed`, `delivered`, or `rejected`, `failed`, `bounced` or `complained`"
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "email_address",
                    "field",
                    "state",
                    "reason",
                    "state_changed_at"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The recipient, whose `GET /message_recipients/{uuid}/junk_help` says what to do if the email went to junk"
                    },
                    "email_address": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string",
                      "enum": [
                        "to",
                        "cc",
                        "bcc"
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "sending",
                        "sent",
                        "delayed",
                        "delivered",
                        "rejected",
                        "failed",
                        "bounced",
                        "complained"
                      ]
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "What became of it there, in a sentence for a person to read; null when it went as it should"
                    },
                    "state_changed_at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                },
                "description": "Each address it went to, in the order it was sent to them, and what became of it there"
              },
              "copies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "occurred_at",
                    "delivered_to_address"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "format": "uuid",
                      "description": "The copy, fetched from `GET /messages/{uuid}`"
                    },
                    "occurred_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When it was received"
                    },
                    "delivered_to_address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The intake address it arrived at"
                    }
                  }
                },
                "description": "Copies of it delivered back to the organization's own addresses, such as the sender's Bcc copy, oldest first; each is a message ignored as `own_email`, which the list of messages leaves out"
              }
            }
          },
          "reading": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "verdict",
              "status",
              "question",
              "error",
              "reason",
              "rfq",
              "read_at",
              "template",
              "model",
              "provider",
              "input_tokens",
              "output_tokens",
              "cache_read_tokens",
              "cache_write_tokens",
              "truncated",
              "file_readings",
              "sheets",
              "customer_quote"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "verdict": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "rfq",
                  "amendment",
                  "separate_request",
                  "repair_request",
                  "negotiation",
                  "not_an_rfq",
                  null
                ],
                "description": "`rfq`: Asks us to quote one or more parts for sale; `amendment`: Changes a request already made on its thread; `separate_request`: Asks for a second quote, apart from the request its thread carries; `repair_request`: Asks us to repair or overhaul a unit the customer owns; `negotiation`: About a request already made, without changing it; `not_an_rfq`: Requests no part and discusses no request",
                "x-enum-descriptions": [
                  "Asks us to quote one or more parts for sale",
                  "Changes a request already made on its thread",
                  "Asks for a second quote, apart from the request its thread carries",
                  "Asks us to repair or overhaul a unit the customer owns",
                  "About a request already made, without changing it",
                  "Requests no part and discusses no request",
                  "Not set"
                ],
                "x-enum-labels": [
                  "RFQ",
                  "Amendment",
                  "Separate request",
                  "Repair request",
                  "Negotiation",
                  "Not an RFQ",
                  "Not set"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "succeeded",
                  "needs_clarification",
                  "no_rfq_found",
                  "failed"
                ],
                "description": "`succeeded`: The request was read; `needs_clarification`: The request points at something that couldn't be read, such as a file that couldn't be opened; `no_rfq_found`: Read, and asks for no quote; `failed`: The model declined to read it, or answered outside its schema",
                "x-enum-descriptions": [
                  "The request was read",
                  "The request points at something that couldn't be read, such as a file that couldn't be opened",
                  "Read, and asks for no quote",
                  "The model declined to read it, or answered outside its schema"
                ],
                "x-enum-labels": [
                  "Read",
                  "Needs clarification",
                  "No RFQ found",
                  "Failed"
                ]
              },
              "question": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "What to ask the customer for when the request points at something that couldn't be read"
              },
              "error": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Why a failed reading failed, in a sentence for a person to read"
              },
              "reason": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The reader's one sentence on what the message asks for"
              },
              "rfq": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "rfq_number",
                  "quote_wanted_by",
                  "priority",
                  "customer_comment",
                  "buyer"
                ],
                "properties": {
                  "rfq_number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "quote_wanted_by": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "format": "date",
                    "description": "YYYY-MM-DD, the date the quote is wanted by."
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "routine",
                      "expedite",
                      "critical",
                      "aog"
                    ]
                  },
                  "customer_comment": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "buyer": {
                    "description": "Who is asking, as the message states it; null when it names nobody.",
                    "anyOf": [
                      {
                        "type": "null"
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "company_name",
                          "contact_name",
                          "email_address"
                        ],
                        "properties": {
                          "company_name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The buying company, only as written; never guessed from a domain."
                          },
                          "contact_name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "email_address": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The buyer's own address; never a marketplace's or the seller's."
                          }
                        }
                      }
                    ]
                  }
                },
                "description": "The request as it stands after this message, for an RFQ, an amendment or a repair request; null for every other verdict. Its lines are the message's `rfq_reading_lines`"
              },
              "read_at": {
                "type": "string",
                "format": "date-time"
              },
              "template": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "ils",
                  "partsbase",
                  "the145",
                  "b2b_aero",
                  null
                ],
                "description": "The marketplace whose RFQ notification template read the message, in code and with no model call; null when a model read it"
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The model that read the message; null when its marketplace's template read it"
              },
              "provider": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "anthropic",
                  "openai",
                  null
                ],
                "description": "Who served `model`; null once the model has left the app's roster"
              },
              "input_tokens": {
                "type": "integer",
                "description": "Summed over every model call the reading made"
              },
              "output_tokens": {
                "type": "integer",
                "description": "Summed over every model call the reading made"
              },
              "cache_read_tokens": {
                "type": "integer",
                "description": "Summed over every model call the reading made"
              },
              "cache_write_tokens": {
                "type": "integer",
                "description": "Summed over every model call the reading made"
              },
              "truncated": {
                "type": "boolean",
                "description": "The message was longer than the reader reads, so only its start was read"
              },
              "file_readings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "message_file",
                    "outcome",
                    "failure",
                    "sent_as",
                    "unit",
                    "kept_count",
                    "found_count"
                  ],
                  "properties": {
                    "message_file": {
                      "$ref": "#/components/schemas/MessageFileStub",
                      "description": "One of the message's `attachments`"
                    },
                    "outcome": {
                      "type": "string",
                      "enum": [
                        "read",
                        "truncated",
                        "failed"
                      ],
                      "description": "`read`: Read whole; `truncated`: Read in part: the rest was past what one reading takes; `failed`: Not read; `failure` says why",
                      "x-enum-descriptions": [
                        "Read whole",
                        "Read in part: the rest was past what one reading takes",
                        "Not read; `failure` says why"
                      ],
                      "x-enum-labels": [
                        "Read",
                        "Truncated",
                        "Failed"
                      ]
                    },
                    "failure": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "too_large",
                        "unreadable",
                        "unsupported",
                        "over_limit",
                        null
                      ],
                      "description": "`too_large`: The file is larger than the reader opens; `unreadable`: The file couldn't be opened; `unsupported`: The reader doesn't read files of this kind; `over_limit`: Past what one reading takes, after the files before it",
                      "x-enum-descriptions": [
                        "The file is larger than the reader opens",
                        "The file couldn't be opened",
                        "The reader doesn't read files of this kind",
                        "Past what one reading takes, after the files before it",
                        "Not set"
                      ],
                      "x-enum-labels": [
                        "Too large",
                        "Unreadable",
                        "Unsupported",
                        "Over limit",
                        "Not set"
                      ]
                    },
                    "sent_as": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "text",
                        "image",
                        "document",
                        null
                      ],
                      "description": "`text`: Its rows or its pages' text, inside the message; `image`: As an image the model looked at; `document`: As a document the model looked at page by page",
                      "x-enum-descriptions": [
                        "Its rows or its pages' text, inside the message",
                        "As an image the model looked at",
                        "As a document the model looked at page by page",
                        "Not set"
                      ],
                      "x-enum-labels": [
                        "Text",
                        "Image",
                        "Document",
                        "Not set"
                      ]
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "rows",
                        "pages",
                        null
                      ],
                      "description": "`rows`: The counts are a sheet's rows, its header among them; `pages`: The counts are a PDF's pages",
                      "x-enum-descriptions": [
                        "The counts are a sheet's rows, its header among them",
                        "The counts are a PDF's pages",
                        "Not set"
                      ],
                      "x-enum-labels": [
                        "Rows",
                        "Pages",
                        "Not set"
                      ]
                    },
                    "kept_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "How much of it the model was given: rows or pages as `unit` says, 1 for an image; null when it failed"
                    },
                    "found_count": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "How much the file holds: rows or pages as `unit` says, 1 for an image; null when it failed"
                    }
                  }
                },
                "description": "Each file the reader was given, in the order they came, and what became of it; a file it ignores, such as a signature's logo, is not here"
              },
              "sheets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "message_file",
                    "sheet",
                    "part_of_request",
                    "columns",
                    "rows_read",
                    "line_count",
                    "unread_row_count"
                  ],
                  "properties": {
                    "message_file": {
                      "$ref": "#/components/schemas/MessageFileStub",
                      "description": "The file the sheet is in, one of the reading's `file_readings`"
                    },
                    "sheet": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The sheet's tab name; null for a file with one unnamed sheet"
                    },
                    "part_of_request": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Whether the sheet lists parts asked for; null when its columns couldn't be worked out"
                    },
                    "columns": {
                      "type": [
                        "array",
                        "null"
                      ],
                      "description": "What each column its rows were read by holds; null when its columns couldn't be worked out, so no row was read",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "fact",
                          "header"
                        ],
                        "properties": {
                          "fact": {
                            "type": "string",
                            "enum": [
                              "part_number",
                              "alternate_part_numbers",
                              "quantity",
                              "conditions",
                              "part_description",
                              "need_by",
                              "customer_comment",
                              "services",
                              "tag_types"
                            ]
                          },
                          "header": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "rows_read": {
                      "type": "integer",
                      "description": "How many rows under the header were read; 0 for a sheet that lists no parts asked for"
                    },
                    "line_count": {
                      "type": "integer",
                      "description": "How many of the request's lines its rows became"
                    },
                    "unread_row_count": {
                      "type": "integer",
                      "description": "How many of its rows couldn't be read in full, each one of the message's `unread_sheet_rows`"
                    }
                  }
                },
                "description": "How each spreadsheet sheet with a header was read, row by row, for a reading with a request; empty otherwise"
              },
              "customer_quote": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CustomerQuoteStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "ignore",
                    "move",
                    "reprocess",
                    "block_sender",
                    "allow_sender",
                    "mark_as_spam"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "rfq_reading_lines": {
            "$ref": "#/components/schemas/RfqReadingLineList",
            "description": "Present when `expand[]=rfq_reading_lines` asked for it: the first page, continued on `/messages/{uuid}/rfq_reading_lines`"
          },
          "unread_sheet_rows": {
            "$ref": "#/components/schemas/UnreadSheetRowList",
            "description": "Present when `expand[]=unread_sheet_rows` asked for it: the first page, continued on `/messages/{uuid}/unread_sheet_rows`"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "Migration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "system_of_record_switched_at",
          "comparisons",
          "external_system",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "migration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "switched"
            ],
            "description": "`open`: Its system keeps the records, and what its imports created can be changed only there; `switched`: CorePilot is the system of record in its system's place",
            "x-enum-descriptions": [
              "Its system keeps the records, and what its imports created can be changed only there",
              "CorePilot is the system of record in its system's place"
            ],
            "x-enum-labels": [
              "Open",
              "Switched"
            ]
          },
          "system_of_record_switched_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When CorePilot became the system of record in its system's place; null while open"
          },
          "comparisons": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "family",
                "source_count",
                "source_totals",
                "brought_over_count",
                "brought_over_totals",
                "skipped_count",
                "skipped_with_reason_count",
                "matches",
                "stated_at"
              ],
              "properties": {
                "family": {
                  "type": "string",
                  "enum": [
                    "parts",
                    "companies",
                    "contacts",
                    "company_addresses",
                    "facilities",
                    "warehouses",
                    "bins",
                    "inventories",
                    "inventory_lines",
                    "alternates",
                    "customer_part_prices",
                    "vendor_inventory_lines",
                    "vendor_part_prices",
                    "customer_quotes",
                    "sales_orders",
                    "sales_order_lines",
                    "sales_order_shipments",
                    "purchase_orders",
                    "purchase_order_lines",
                    "purchase_order_receipts",
                    "invoices",
                    "members"
                  ],
                  "description": "The import type whose records it compares"
                },
                "source_count": {
                  "type": "integer",
                  "description": "How many of the family's records the system holds, as it states them"
                },
                "source_totals": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer"
                  },
                  "description": "The family's totals as the system states them, each in whole cents, or a per-currency total (`ordered_value_usd`) in its currency's minor units"
                },
                "brought_over_count": {
                  "type": "integer",
                  "description": "The active records CorePilot holds under the system's IDs; once switched, as the switch counted them"
                },
                "brought_over_totals": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "integer"
                  },
                  "description": "Those records' totals, keyed and denominated as `source_totals` are; a per-currency total appears for each currency the records are in"
                },
                "skipped_count": {
                  "type": "integer",
                  "description": "The source records the migration's imports of the family skipped, each counted once; once switched, as the switch counted them"
                },
                "skipped_with_reason_count": {
                  "type": "integer",
                  "description": "Those skipped with a reason, given or found by the check, which account for a difference"
                },
                "matches": {
                  "type": "boolean",
                  "description": "Whether what came over agrees with the stated figures, unless rows skipped with a reason account for the difference"
                },
                "stated_at": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the figures were last stated"
                }
              }
            },
            "description": "Each family's figures as its system states them, beside what came over; switching waits while one differs"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The system its records come from, whose IDs its imports name them by"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "switch_system_of_record"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "MyWorkItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "urgency",
          "headline",
          "due_on",
          "due_label",
          "detail",
          "reasons",
          "subject"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "my_work_item"
          },
          "urgency": {
            "type": "string",
            "enum": [
              "overdue",
              "today",
              "week"
            ],
            "description": "`overdue`: Past the day it fell due; `today`: Falls due today, as an AOG order with no promise passed does; `week`: Waiting on you, with no day passed yet",
            "x-enum-descriptions": [
              "Past the day it fell due",
              "Falls due today, as an AOG order with no promise passed does",
              "Waiting on you, with no day passed yet"
            ],
            "x-enum-labels": [
              "Overdue",
              "Today",
              "Week"
            ]
          },
          "headline": {
            "type": "string",
            "description": "What the record is called where it is listed: its customer, vendor or part"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day it fell or falls due in the tenant's zone: a quote's valid-until, an order's earliest open promise, a core's due day, a leased unit's due-back day, a release's requested ship day, a work order's promise unless an open humidity and temperature check falls due before it, a purchase order's earliest late promise, a vendor quote's valid-until, or an approved voucher's payment due day; null when the record waits on no day"
          },
          "due_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the due day is, as the row names it: `Promised`, `Valid until`, `Core due`, `Due back`, `Ship requested`, `Check due` or `Payment due`; null when there is no due day"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "rfq_to_quote",
                "customer_replied",
                "expired",
                "expires_today",
                "aog",
                "critical",
                "ready_to_release",
                "at_vendor",
                "core_overdue",
                "unit_overdue",
                "shipping",
                "unresolved",
                "assigned",
                "task_assigned",
                "check_due",
                "past_promise",
                "vendor_late",
                "awaiting_promise",
                "to_send",
                "vendor_quoted",
                "vendor_core_overdue",
                "unapproved",
                "payment_overdue"
              ],
              "x-enum-descriptions": [
                "A draft quote with an RFQ line not yet answered, a line not yet priced, or nothing quoted yet",
                "A sent quote whose customer replied, with no one yet marking the reply handled",
                "A sent quote past its valid-until, neither won nor lost",
                "A sent quote whose valid-until is today",
                "An open AOG order not yet shipped",
                "An open critical order not yet shipped",
                "An order whose parts are in stock and on no release yet",
                "A repair still at the vendor past its promise",
                "An exchange's core not returned by its due day",
                "A leased unit not returned by its due-back day",
                "An open release whose requested ship day has come",
                "A rejection awaiting a disposition",
                "An open work order with a technician on it",
                "An open work order with an open task assigned to a technician",
                "An open work order holding an open humidity and temperature check whose due day has come",
                "An open work order past the day promised to its customer",
                "A sent purchase order with a part line the vendor promised before today and still owes",
                "A sent purchase order with a part line still owed that has no promise date",
                "A draft quote with every line priced or no-quoted, or a purchase order with lines, not yet sent; or a purchase order changed since it went out",
                "A sent RFQ the vendor quoted, with a quoted line not yet ordered and the quote still valid",
                "An exchange's core we owe the vendor, not shipped back by its due day",
                "A voucher still being entered from the vendor's bill, not yet approved",
                "An approved voucher still owed past its due date"
              ],
              "x-enum-labels": [
                "RFQ to quote",
                "Customer replied",
                "Expired",
                "Expires today",
                "AOG",
                "Critical",
                "Ready to release",
                "At vendor",
                "Core overdue",
                "Unit overdue",
                "Shipping",
                "Unresolved",
                "Assigned",
                "Task assigned",
                "Check due",
                "Past promise",
                "Vendor late",
                "Awaiting promise",
                "To send",
                "Vendor quoted",
                "Vendor core overdue",
                "Unapproved",
                "Payment overdue"
              ]
            },
            "description": "`rfq_to_quote`: A draft quote with an RFQ line not yet answered, a line not yet priced, or nothing quoted yet; `customer_replied`: A sent quote whose customer replied, with no one yet marking the reply handled; `expired`: A sent quote past its valid-until, neither won nor lost; `expires_today`: A sent quote whose valid-until is today; `aog`: An open AOG order not yet shipped; `critical`: An open critical order not yet shipped; `ready_to_release`: An order whose parts are in stock and on no release yet; `at_vendor`: A repair still at the vendor past its promise; `core_overdue`: An exchange's core not returned by its due day; `unit_overdue`: A leased unit not returned by its due-back day; `shipping`: An open release whose requested ship day has come; `unresolved`: A rejection awaiting a disposition; `assigned`: An open work order with a technician on it; `task_assigned`: An open work order with an open task assigned to a technician; `check_due`: An open work order holding an open humidity and temperature check whose due day has come; `past_promise`: An open work order past the day promised to its customer; `vendor_late`: A sent purchase order with a part line the vendor promised before today and still owes; `awaiting_promise`: A sent purchase order with a part line still owed that has no promise date; `to_send`: A draft quote with every line priced or no-quoted, or a purchase order with lines, not yet sent; or a purchase order changed since it went out; `vendor_quoted`: A sent RFQ the vendor quoted, with a quoted line not yet ordered and the quote still valid; `vendor_core_overdue`: An exchange's core we owe the vendor, not shipped back by its due day; `unapproved`: A voucher still being entered from the vendor's bill, not yet approved; `payment_overdue`: An approved voucher still owed past its due date"
          },
          "subject": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer quote's own stub where it is one; a release's own stub where it is one; a sales order's own stub where it is one; a rejection's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one; a purchase order's own stub where it is one; a vendor RFQ's own stub where it is one; a vendor exchange's own stub where it is one; a voucher's own stub where it is one"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Notification": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "reason",
          "read_at",
          "event",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "notification"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "enum": [
              "administered",
              "approval",
              "triggered",
              "watched"
            ],
            "description": "`administered`: It concerns a setting you administer; `approval`: It waits on your approval; `triggered`: A work order trigger tells a team you are on; `watched`: It changed a record you hold or have worked on",
            "x-enum-descriptions": [
              "It concerns a setting you administer",
              "It waits on your approval",
              "A work order trigger tells a team you are on",
              "It changed a record you hold or have worked on"
            ],
            "x-enum-labels": [
              "Administered",
              "Approval",
              "Triggered",
              "Watched"
            ]
          },
          "read_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "event": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EventStub"
              },
              {
                "$ref": "#/components/schemas/Event"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole event when `expand[]=event` asked for it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "read"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "NotificationPreferences": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "topics"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "notification_preferences"
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "topic",
                "group",
                "name",
                "required",
                "email"
              ],
              "properties": {
                "topic": {
                  "type": "string",
                  "description": "Which kind of email, as a stop link and `PATCH` name it"
                },
                "group": {
                  "type": "string",
                  "description": "What the email is about"
                },
                "name": {
                  "type": "string",
                  "description": "Which emails about it, in a sentence"
                },
                "required": {
                  "type": "boolean",
                  "description": "Whether it is always sent, since it signs you in or keeps your account safe"
                },
                "email": {
                  "type": "string",
                  "enum": [
                    "on",
                    "off"
                  ],
                  "description": "`on` while it is emailed to the person, `off` means the person stopped it"
                }
              }
            },
            "description": "Every kind of email your seat is sent here, in the order the settings list them"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "OauthAuthorization": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "application",
          "scopes",
          "resource",
          "status",
          "last_used_at",
          "revoked_at",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "oauth_authorization"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "application": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "host",
              "verified"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "host": {
                "type": "string",
                "description": "Where the app lives, read off how it registered"
              },
              "verified": {
                "type": "boolean",
                "description": "Whether the app is named by a metadata document at its own address, rather than registered by itself"
              }
            }
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "write",
                "admin",
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ]
            }
          },
          "resource": {
            "type": "string",
            "description": "The address the approval reaches: the MCP server, its read-only twin, the API, or all of them"
          },
          "status": {
            "type": "string",
            "enum": [
              "live",
              "revoked"
            ],
            "description": "`live`: Acts as its member until someone disconnects it; `revoked`: Refused since someone disconnected it",
            "x-enum-descriptions": [
              "Acts as its member until someone disconnects it",
              "Refused since someone disconnected it"
            ],
            "x-enum-labels": [
              "Connected",
              "Disconnected"
            ]
          },
          "last_used_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The seat the app acts as; null once that seat is gone"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Onboarding": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "steps_done",
          "steps_skipped",
          "steps_total",
          "next_step",
          "complete",
          "dismissed_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "onboarding"
          },
          "steps_done": {
            "type": "integer",
            "description": "The steps done, by the data or confirmed by hand"
          },
          "steps_skipped": {
            "type": "integer"
          },
          "steps_total": {
            "type": "integer"
          },
          "next_step": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "letterhead",
              "companies",
              "parts",
              "inventory",
              "payment_term",
              "team",
              "sending_domain",
              "first_quote",
              null
            ],
            "description": "The first step neither done nor skipped, as `/onboarding_steps/{key}` names it; null once every step is"
          },
          "complete": {
            "type": "boolean",
            "description": "Whether every step is done or skipped"
          },
          "dismissed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the asking seat put Get started away; null while it shows. Each seat's own"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "dismiss",
                    "undismiss"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "OnboardingStep": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "key",
          "title",
          "summary",
          "detail",
          "state",
          "done_at",
          "confirmable",
          "organization",
          "answer"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "onboarding_step"
          },
          "key": {
            "type": "string",
            "enum": [
              "letterhead",
              "companies",
              "parts",
              "inventory",
              "payment_term",
              "team",
              "sending_domain",
              "first_quote"
            ]
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the account has now, where the step reads a setting"
          },
          "state": {
            "type": "string",
            "enum": [
              "done",
              "skipped",
              "to_do"
            ]
          },
          "done_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the change that completed it was made, or it was confirmed; null while it isn't, or where nothing recorded when"
          },
          "confirmable": {
            "type": "boolean",
            "description": "Whether a person says it is done (`confirm`), since nothing in the data can"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization whose settings the step measures, which its page opens on; null where it measures none"
          },
          "answer": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "kind",
              "answered_at",
              "answered_by"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "confirmed",
                  "skipped"
                ]
              },
              "answered_at": {
                "type": "string",
                "format": "date-time"
              },
              "answered_by": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Stub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "confirm",
                    "skip",
                    "reopen"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Organization": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "code",
          "legal_name",
          "print_name",
          "tax_id",
          "phone",
          "email_address",
          "website",
          "lines",
          "has_logo",
          "logo_version",
          "logo_height_mm",
          "automatic_invoices_at",
          "default_notes_to_shop",
          "inspection_required_for",
          "default_shipping_address",
          "primary_billing_address"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "organization"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "description": "What you trade as"
          },
          "code": {
            "type": "string",
            "description": "The short code the app shows for this organization"
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name your documents print, where it differs from `name`"
          },
          "print_name": {
            "type": "string",
            "description": "The name documents print: `legal_name`, else `name`"
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your tax ID (an EIN, or a VAT or EORI number), printed under the exporter on a commercial invoice"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The letterhead's phone number"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The letterhead's email address"
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "The letterhead's website"
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The letterhead's address, its primary billing address as its country prints it, line by line; empty with none"
          },
          "has_logo": {
            "type": "boolean",
            "description": "Whether `GET /organizations/{organization_uuid}/logo` serves the logo, a redirect to the image at a link that lapses in minutes"
          },
          "logo_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "The logo's bytes, digested: it changes when the logo does, and is null with none. Sent as `v` to `GET /organizations/{organization_uuid}/logo`, it draws a replaced logo anew"
          },
          "logo_height_mm": {
            "type": "integer",
            "minimum": 8,
            "maximum": 30,
            "default": 11,
            "description": "The logo's printed height on every document's letterhead, in millimeters (8–30). Its width follows its proportions, narrowed to fit beside the address"
          },
          "automatic_invoices_at": {
            "type": "string",
            "description": "The time of day, `HH:MM` on the 24-hour clock in the organization's time zone, after which each day's draft invoices for customers who take them by email are issued and emailed; a draft that can't be emailed stays a draft"
          },
          "default_notes_to_shop": {
            "type": [
              "string",
              "null"
            ],
            "description": "What a new repair order says to the shop until edited on the order, where its vendor has no default notes to shop of its own"
          },
          "inspection_required_for": {
            "type": "string",
            "enum": [
              "every_line",
              "marked_parts"
            ],
            "description": "Which lines received against an order require a receiving inspection: every line, or only those whose part is marked `inspection_required`. A line requiring one lands on the Inspection hold until it passes or someone releases it",
            "x-enum-descriptions": [
              "Every line received against an order requires a receiving inspection",
              "Only a line whose part is marked Inspection required requires a receiving inspection"
            ],
            "x-enum-labels": [
              "Every line",
              "Only parts marked Inspection required"
            ]
          },
          "default_shipping_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The facility new orders ship from and new warehouses sit at"
          },
          "primary_billing_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BillingAddressStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The billing address the letterhead prints and a new purchase order or vendor RFQ bills to; `/billing_addresses` lists the rest"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "upload_logo",
                    "remove_logo"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "OrganizationLedgerDefault": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "organization_ledger_default"
          },
          "key": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "usage": {
            "type": "string"
          },
          "expected_kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ]
          },
          "ledger_account_inactive": {
            "type": "boolean"
          },
          "mismatched": {
            "type": "boolean"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the purpose's account came from holds it, refusing a change while that system is the system of record; null for one no outside system holds"
          },
          "ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "setting"
      },
      "PartClassification": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "part_classification"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Part": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_number",
          "description",
          "keywords",
          "notes",
          "ata_chapter",
          "nsn",
          "shelf_life_months",
          "eccn",
          "hts_code",
          "country_of_origin",
          "un_number",
          "hazmat_shipping_name",
          "hazmat_class",
          "usml_category",
          "weight",
          "length",
          "width",
          "height",
          "lead_time_days",
          "serialized",
          "life_limited",
          "hazmat",
          "pma",
          "inspection_required",
          "inspection_instructions",
          "export_controlled",
          "hot",
          "tool",
          "calibration_required",
          "calibration_interval_months",
          "inactive_at",
          "source_fields",
          "country_of_origin_name",
          "ata_chapter_name",
          "quantity_on_hand",
          "quantity_available",
          "migration_hold",
          "unsent_to_avsight",
          "repair_services",
          "manufacturer",
          "classification",
          "measurement_unit",
          "weight_unit",
          "dimension_unit",
          "preferred_vendor",
          "tax_category",
          "revenue_ledger_account",
          "applicabilities",
          "hidden_marketplaces",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_number": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_chapter": {
            "type": [
              "string",
              "null"
            ]
          },
          "nsn": {
            "type": [
              "string",
              "null"
            ]
          },
          "shelf_life_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "eccn": {
            "type": [
              "string",
              "null"
            ]
          },
          "hts_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_of_origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "un_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_shipping_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_class": {
            "type": [
              "string",
              "null"
            ],
            "description": "The hazard class or division its dangerous goods ship under, such as 3 or 2.1"
          },
          "usml_category": {
            "type": [
              "string",
              "null"
            ],
            "description": "The US Munitions List category it falls under, I to XXI, with its paragraph letter where known, such as XI(a)"
          },
          "weight": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "length": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "width": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "height": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "lead_time_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "serialized": {
            "type": "boolean"
          },
          "life_limited": {
            "type": "boolean"
          },
          "hazmat": {
            "type": "boolean"
          },
          "pma": {
            "type": "boolean"
          },
          "inspection_required": {
            "type": "boolean",
            "description": "Units arriving against an order require a receiving inspection, whichever lines its organization requires one for, and land on the Inspection hold until it passes or someone releases them"
          },
          "inspection_instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "What an inspector checks on this part at receiving, shown at the top of its receiving inspection; null when none is written"
          },
          "export_controlled": {
            "type": "boolean"
          },
          "hot": {
            "type": "boolean",
            "description": "Marked as a part in high demand"
          },
          "tool": {
            "type": "boolean"
          },
          "calibration_required": {
            "type": "boolean"
          },
          "calibration_interval_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "country_of_origin_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_chapter_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_on_hand": {
            "type": "number"
          },
          "quantity_available": {
            "type": "number"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the part came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "unsent_to_avsight": {
            "type": "boolean",
            "description": "Whether AvSight, keeping the records, doesn't hold the part yet, so the first quote sent with a line for it makes it there"
          },
          "repair_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The repair services the part can be sent out for; set by `repair_service_uuids`, and one left out is retired"
          },
          "manufacturer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Manufacturer"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole manufacturer when `expand[]=manufacturer` asked for it"
          },
          "classification": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/PartClassification"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole part classification when `expand[]=classification` asked for it"
          },
          "measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/MeasurementUnit"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole measurement unit when `expand[]=measurement_unit` asked for it"
          },
          "weight_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/MeasurementUnit"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole measurement unit when `expand[]=weight_unit` asked for it"
          },
          "dimension_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/MeasurementUnit"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole measurement unit when `expand[]=dimension_unit` asked for it"
          },
          "preferred_vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Company"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole company when `expand[]=preferred_vendor` asked for it"
          },
          "tax_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/TaxCategory"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole tax category when `expand[]=tax_category` asked for it"
          },
          "revenue_ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/LedgerAccount"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole ledger account when `expand[]=revenue_ledger_account` asked for it"
          },
          "applicabilities": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Stub"
                },
                {
                  "$ref": "#/components/schemas/Applicability"
                }
              ]
            },
            "description": "Stubs, or each whole applicability when `expand[]=applicabilities` asked for them"
          },
          "hidden_marketplaces": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CodedStub"
                },
                {
                  "$ref": "#/components/schemas/Marketplace"
                }
              ]
            },
            "description": "Stubs, or each whole marketplace when `expand[]=hidden_marketplaces` asked for them"
          },
          "requirements": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Stub"
                },
                {
                  "$ref": "#/components/schemas/Requirement"
                }
              ]
            },
            "description": "The standing requirements a unit of the part received is checked against"
          },
          "quickbooks_assignment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "quickbooks_id",
              "origin"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "quickbooks_id": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "enum": [
                  "matched",
                  "created",
                  "manual"
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "update"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "quantity_by_condition": {
            "type": "array",
            "description": "The part's units by condition: on hand, on order and at repair, a condition holding none left out. Present when `expand[]=quantity_by_condition` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "condition",
                "on_hand",
                "on_order",
                "on_repair"
              ],
              "properties": {
                "condition": {
                  "type": "string",
                  "description": "The condition's code, or an em dash for units graded with none"
                },
                "on_hand": {
                  "type": "number",
                  "description": "Sellable units on open inventory lines"
                },
                "on_order": {
                  "type": "number",
                  "description": "Units still to arrive on sent purchase orders"
                },
                "on_repair": {
                  "type": "number",
                  "description": "Units out at repair vendors, coming back"
                }
              }
            }
          },
          "inventory_lines": {
            "$ref": "#/components/schemas/InventoryLineList",
            "description": "Present when `expand[]=inventory_lines` asked for it: the first page"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "publications": {
            "$ref": "#/components/schemas/PublicationList",
            "description": "Present when `expand[]=publications` asked for it: the first page"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "PartRepairService": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "part",
          "repair_service",
          "work_order_templates",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "part_repair_service"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_order_templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The work order templates made for the part's service, by name"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "PartTally": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "part_number",
          "description",
          "requests",
          "quantity_requested",
          "no_quotes",
          "part",
          "no_quote_reason"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "part_tally"
          },
          "part_number": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "requests": {
            "type": "integer",
            "description": "Requests asking for the part"
          },
          "quantity_requested": {
            "type": "number"
          },
          "no_quotes": {
            "type": "integer",
            "description": "Requests that answered the part No quote"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null for a number typed that no catalog part holds"
          },
          "no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The reason it was most often answered No quote"
          }
        },
        "x-area": "selling",
        "x-role": "report"
      },
      "PasswordConfirmation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "confirmed_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "password_confirmation"
          },
          "confirmed_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the password was confirmed"
          }
        },
        "x-role": "master_data"
      },
      "PayableApplication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "payable_application"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "payment",
              "credit"
            ],
            "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
            "x-enum-descriptions": [
              "Money the counterparty paid, or we paid them",
              "A credit memo or vendor credit's line, applied to the bill"
            ],
            "x-enum-labels": [
              "Payment",
              "Credit"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "recorded",
              "voided",
              "applied"
            ],
            "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
            "x-enum-descriptions": [
              "A payment that counts toward the bill's settlement",
              "Its payment was voided, so it counts for nothing",
              "A credit that counts toward the bill's settlement"
            ],
            "x-enum-labels": [
              "Recorded",
              "Voided",
              "Applied"
            ]
          },
          "applied_on": {
            "type": "string",
            "format": "date"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "The payment's reference; null on a credit, whose vendor credit is `credit`"
          },
          "voided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why an outside system holds the application's payment, one that came from it or through the order it waits on or a voucher it paid, refusing the payment's void while that system is the system of record; null on a credit, or a payment no outside system holds"
          },
          "payment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorPaymentStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "credit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a consignor statement's own stub where it is one; an investor statement's own stub where it is one; a voucher's own stub where it is one"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "voided_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "PaymentTerm": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "net_days",
          "prepayment_required",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "payment_term"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "net_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "prepayment_required": {
            "type": "boolean",
            "description": "The customer pays before the order ships; generating a release warns until payments cover the order"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "PrintNodeIntegration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "configured",
          "connected",
          "connected_at",
          "client_download_url"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "print_node_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The integration's, as its events name it"
          },
          "configured": {
            "type": "boolean",
            "description": "Whether this installation holds a PrintNode key; without one, nothing connects or prints"
          },
          "connected": {
            "type": "boolean"
          },
          "connected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "client_download_url": {
            "type": "string",
            "description": "Where the PrintNode client that each computer beside the printers runs is downloaded"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "connect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "sign_in": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "email_address",
              "password"
            ],
            "description": "What the PrintNode client on each computer beside the printers signs in with, which only `settings:manage` reads; null until connected. Present when `expand[]=sign_in` asked for it",
            "properties": {
              "email_address": {
                "type": "string"
              },
              "password": {
                "type": "string"
              }
            }
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "PrintNodePrinter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "print_node_id",
          "name",
          "state",
          "computer_name",
          "computer_state",
          "printer"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "print_node_printer"
          },
          "print_node_id": {
            "type": "integer",
            "description": "PrintNode's id for it, which adding a printer names"
          },
          "name": {
            "type": "string",
            "description": "What the computer calls it"
          },
          "state": {
            "type": "string",
            "description": "PrintNode's word for it, such as `online`, `offline` or `disconnected`"
          },
          "computer_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "computer_state": {
            "type": [
              "string",
              "null"
            ],
            "description": "PrintNode's word for it, such as `online`, `offline` or `disconnected`"
          },
          "printer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The printer already added from it, inactive ones included; null while none is"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "PrintRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "reason",
          "title",
          "forms",
          "document_count",
          "left_out",
          "error",
          "expires_at",
          "sent_at",
          "printed_at",
          "failed_at",
          "expired_at",
          "printer",
          "creator",
          "organization",
          "resumes",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "print_request"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "sent",
              "printed",
              "failed",
              "expired"
            ],
            "description": "`queued`: Waiting for its documents to be generated, or to be sent to PrintNode; `sent`: Handed to PrintNode, which hasn't yet said it reached the printer's computer; `printed`: Reached the print queue of the printer's computer; `failed`: Not printed; `error` says why; `expired`: Not printed within an hour of being asked for, so dropped",
            "x-enum-descriptions": [
              "Waiting for its documents to be generated, or to be sent to PrintNode",
              "Handed to PrintNode, which hasn't yet said it reached the printer's computer",
              "Reached the print queue of the printer's computer",
              "Not printed; `error` says why",
              "Not printed within an hour of being asked for, so dropped"
            ],
            "x-enum-labels": [
              "Queued",
              "Sent",
              "Printed",
              "Failed",
              "Expired"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "manual",
              "test_page"
            ],
            "description": "`manual`: Someone printed documents; `test_page`: A printer's test page",
            "x-enum-descriptions": [
              "Someone printed documents",
              "A printer's test page"
            ],
            "x-enum-labels": [
              "Manual",
              "Test page"
            ]
          },
          "title": {
            "type": "string",
            "description": "What it prints: the first document's record reference and form, and how many more follow; while a print of a list's matches is still being placed, how many records and the form; or the test page"
          },
          "forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                }
              }
            },
            "description": "The forms it prints, each once, in the order each first prints, by the `form` `POST /documents` takes; while a print of a list's matches is still being placed, the form each will print; empty for a test page"
          },
          "document_count": {
            "type": "integer",
            "description": "How many documents it prints, each counted once whatever its copies; 0 while a print of a list's matches is still being placed"
          },
          "left_out": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "count",
                "reason",
                "sentence"
              ],
              "properties": {
                "count": {
                  "type": "integer"
                },
                "reason": {
                  "type": "string",
                  "enum": [
                    "form",
                    "organization"
                  ]
                },
                "sentence": {
                  "type": "string"
                }
              }
            },
            "description": "What a print of a list's `matching` records left out, by why: `form`, records that don't print the form, or `organization`, records of another organization than the printer's; empty when it left nothing out or named its `documents`"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it failed, in words; null unless `failed`"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it is dropped as `expired` if it hasn't reached the computer's print queue by then"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was handed to PrintNode, which may not have taken it yet; one PrintNode never takes turns `failed`"
          },
          "printed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "failed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expired_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "printer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whose documents it prints, and so which organization's printers may print them"
          },
          "resumes": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The print this one resumes, printing the rest after the last of its documents that came out"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "resume"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "documents": {
            "$ref": "#/components/schemas/PrintRequestDocumentList",
            "description": "Present when `expand[]=documents` asked for it: the first page, continued on `/print_requests/{uuid}/documents`"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "PrintRequestDocument": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "copies",
          "reprint",
          "title",
          "document",
          "record",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "print_request_document"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where it prints among the request's documents, from 1"
          },
          "copies": {
            "type": "integer"
          },
          "reprint": {
            "type": "boolean",
            "description": "Whether an earlier print had already printed, or was printing, its record's form when this one was asked for"
          },
          "title": {
            "type": "string",
            "description": "The record's reference and the form"
          },
          "document": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The generation it prints"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the document was printed off"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Printer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "kind",
          "dpi",
          "label_size",
          "print_node_id",
          "computer_name",
          "inactive_at",
          "facility",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "printer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "label"
            ],
            "description": "What it prints: `document`, full-page forms such as quotes and invoices, or `label`, labels",
            "x-enum-descriptions": [
              "Prints documents, such as quotes and packing lists",
              "Prints labels"
            ],
            "x-enum-labels": [
              "Document",
              "Label"
            ]
          },
          "dpi": {
            "type": [
              "integer",
              "null"
            ],
            "description": "A label printer's resolution in dots per inch, 203 or 300, that labels are drawn at; null on a document printer"
          },
          "label_size": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "4x6",
              "4x3",
              null
            ],
            "description": "The labels a label printer is loaded with, width by length in inches; null on a document printer",
            "x-enum-descriptions": [
              "The common shipping label, 4 inches wide and 6 long",
              "4 inches wide and 3 long",
              "Not set"
            ],
            "x-enum-labels": [
              "4 × 6 in",
              "4 × 3 in",
              "Not set"
            ]
          },
          "print_node_id": {
            "type": "integer",
            "description": "PrintNode's id for the printer, one `/print_node_integration/printers` lists; named on create and never changed"
          },
          "computer_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The computer it hangs off, as PrintNode named it when the printer was added"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The organization whose facility it stands at, and whose records print to it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "update",
                    "test"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Profile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "title",
          "phone",
          "email_signature",
          "email_address",
          "time_zone",
          "has_avatar",
          "avatar_version",
          "has_signature",
          "signature_version",
          "nav_item_order",
          "hidden_nav_items",
          "calendar_feed_issued_at",
          "calendar_feed_url",
          "employee",
          "default_facility"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "profile"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Your seat's, as `/memberships/{uuid}` names it"
          },
          "name": {
            "type": "string",
            "description": "How your teammates see you on quotes, orders and activity"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your job title, which a signature's `sender_title` chip prints on the emails you send; null prints nothing there"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your phone number, which a signature's `sender_phone` chip prints on the emails you send; null prints nothing there"
          },
          "email_signature": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Your own signature, which takes the place of your organization's signature design in its layout's signature block on the emails you send, with the sender's `field`s filled from yours; null signs with your organization's design, and a layout with no signature block prints neither",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "sender_name",
                                          "sender_title",
                                          "sender_phone"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "sender_name",
                                                      "sender_title",
                                                      "sender_phone"
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your sign-in address, shared across your accounts; null for a bot, which signs in as no one"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ],
            "description": "The IANA zone your own times read in, across every account; null follows whichever device you are on, and a bot keeps none"
          },
          "has_avatar": {
            "type": "boolean",
            "description": "Whether `GET /profile/avatar` serves your photo, a redirect to the image at a link that lapses in minutes"
          },
          "avatar_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your photo's bytes, digested: it changes when the photo does, and is null with none. Sent as `v` to `GET /profile/avatar`, it draws a replaced photo anew"
          },
          "has_signature": {
            "type": "boolean",
            "description": "Whether `GET /profile/signature` serves the signature image that prints when you sign a certificate in your own session; only an employee's seat keeps one"
          },
          "signature_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your signature image's bytes, digested: it changes when the image does, and is null with none"
          },
          "nav_item_order": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The web app's sidebar items you moved, in the order you put them"
          },
          "hidden_nav_items": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The web app's sidebar items you hid, still reachable from search and by link"
          },
          "calendar_feed_issued_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When your calendar feed's secret address was issued, which Google Calendar or Outlook subscribe to; null before one is, and always to a token, which is no browser"
          },
          "calendar_feed_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Your calendar feed's secret address, which Google Calendar or Outlook subscribe to and only you can read in a browser; null before `issue_calendar_feed` issues one, and always to a token, which is no browser. Issuing another stops this one"
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The employee your seat is, who signs certificates in your session; null for a seat that is no employee, which keeps no signature"
          },
          "default_facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where you work: purchase and repair orders you raise ship to and return here"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "upload_avatar",
                    "remove_avatar",
                    "upload_signature",
                    "remove_signature",
                    "issue_calendar_feed"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ProtectionReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "protection_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "PublicationCategory": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "publication_category"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Publication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "reference",
          "description",
          "ata_zone",
          "url",
          "published_on",
          "expires_on",
          "inactive_at",
          "ata_zone_label",
          "expired",
          "verified",
          "verification_due",
          "verification_verified_on",
          "verification_due_on",
          "parts",
          "category",
          "manufacturer",
          "superseded_by",
          "bin",
          "facility",
          "verifier_skill",
          "current_revision",
          "verification_employee",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "publication"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ata_zone_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "expired": {
            "type": "boolean"
          },
          "verified": {
            "type": "boolean"
          },
          "verification_due": {
            "type": "boolean"
          },
          "verification_verified_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "verification_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartStub"
            },
            "description": "The parts the publication covers; set by `part_uuids`"
          },
          "category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "manufacturer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "superseded_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The facility its bin is at"
          },
          "verifier_skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "current_revision": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PublicationRevisionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "verification_employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "supersede",
                    "verify"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "overview_counts": {
            "type": "object",
            "description": "What is on file for the publication: its revisions and its verifications. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "revisions": {
                "type": "integer"
              },
              "verifications": {
                "type": "integer"
              }
            },
            "required": [
              "revisions",
              "verifications"
            ]
          },
          "supersedes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The publications this one replaced, each pointing at it as `superseded_by`. Present when `expand[]=supersedes` asked for it"
          },
          "verifications": {
            "$ref": "#/components/schemas/PublicationVerificationList",
            "description": "Present when `expand[]=verifications` asked for it: the first page"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "PublicationRevision": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "revision",
          "name",
          "url",
          "published_on",
          "effective_on",
          "expires_on",
          "received_on",
          "temporary",
          "current",
          "expired",
          "effective",
          "publication",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "publication_revision"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "temporary": {
            "type": "boolean"
          },
          "current": {
            "type": "boolean"
          },
          "expired": {
            "type": "boolean"
          },
          "effective": {
            "type": "boolean"
          },
          "publication": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "adopt"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "PublicationVerification": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "verified_on",
          "due_on",
          "due",
          "employee",
          "publication",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "publication_verification"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "verified_on": {
            "type": "string",
            "format": "date"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due": {
            "type": "boolean"
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "PurchaseOrder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_reference",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "sent_at",
          "amended_at",
          "closed_at",
          "cancelled_at",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "editable",
          "currency_locked",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "contact_email_address",
          "total_cents",
          "home_total_cents",
          "paid_cents",
          "tax_cents",
          "subtotal_cents",
          "line_count",
          "quantity_ordered",
          "quantity_received",
          "quantity_outstanding",
          "fully_received",
          "receiving",
          "receivable",
          "consignment",
          "inventory_kind",
          "inventory_name",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "priority",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "inventory_code",
          "sourced_for",
          "package_manifest",
          "open_receipt",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "purchase_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "closed",
              "cancelled"
            ],
            "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
            "x-enum-descriptions": [
              "Being written; not yet sent to the vendor",
              "Sent to the vendor; what it orders is due in",
              "Finished; nothing more is expected on it",
              "Called off; nothing will arrive on it"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Closed",
              "Cancelled"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "vendor_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "shipper",
              "recipient",
              "third_party",
              "collect",
              "on_invoice",
              null
            ],
            "description": "`shipper`: Prepaid: the shipper pays the carrier; `recipient`: Billed to the recipient's own carrier account; `third_party`: Billed to a third party's carrier account; `collect`: Collect: the recipient pays the carrier on delivery; `on_invoice`: Prepaid and added: the shipper pays and bills the freight on its invoice",
            "x-enum-descriptions": [
              "Prepaid: the shipper pays the carrier",
              "Billed to the recipient's own carrier account",
              "Billed to a third party's carrier account",
              "Collect: the recipient pays the carrier on delivery",
              "Prepaid and added: the shipper pays and bills the freight on its invoice",
              "Not set"
            ],
            "x-enum-labels": [
              "Shipper",
              "Recipient",
              "Third party",
              "Collect",
              "On invoice",
              "Not set"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "amended_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "fx_rate_missing": {
            "type": "boolean"
          },
          "editable": {
            "type": "boolean"
          },
          "currency_locked": {
            "type": "boolean"
          },
          "vendor_approved": {
            "type": "boolean"
          },
          "vendor_approval_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "approved",
              "lapsing",
              "lapsed",
              "pending",
              "not_approved",
              null
            ],
            "description": "`approved`: Approved, and nothing it rests on runs out within 30 days; `lapsing`: Approved, but its end date or a certificate it rests on runs out within 30 days; `lapsed`: Approved, but its end date or a certificate it rests on has passed; `pending`: Not yet reviewed; counts as unapproved; `not_approved`: Reviewed and not approved to buy from",
            "x-enum-descriptions": [
              "Approved, and nothing it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on has passed",
              "Not yet reviewed; counts as unapproved",
              "Reviewed and not approved to buy from",
              "Not set"
            ],
            "x-enum-labels": [
              "Approved",
              "Lapsing",
              "Lapsed",
              "Pending",
              "Not approved",
              "Not set"
            ]
          },
          "vendor_approval_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the vendor's approval doesn't cover this purchase order today, or a part on it"
          },
          "vendor_approval_lapses_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_approvable": {
            "type": "boolean",
            "description": "Whether approving the vendor would lift what stands in this order's way: it isn't approved, or its approval ran out on its end date with no certificate backing purchase orders expired"
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "paid_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` we have paid the vendor toward the order: payments applied to its vouchers, and what waits unapplied on the order"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "subtotal_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "line_count": {
            "type": "integer"
          },
          "quantity_ordered": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "fully_received": {
            "type": "boolean"
          },
          "receiving": {
            "type": "boolean"
          },
          "receivable": {
            "type": "boolean",
            "description": "Sent, with parts still to arrive or a package's manifest to receive"
          },
          "consignment": {
            "type": "boolean"
          },
          "inventory_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "cost_pool",
              "consignment",
              null
            ],
            "description": "`cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale",
            "x-enum-descriptions": [
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Not set"
            ],
            "x-enum-labels": [
              "Cost pool",
              "Consignment",
              "Not set"
            ]
          },
          "inventory_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "unvouchered_receipts": {
            "type": "boolean"
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The email address of the person at the drop-ship destination, printed with its address; `drop_ship_address`'s `attn` names them"
          },
          "drop_ship_customer_mismatched": {
            "type": "boolean"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the order came from holds it, refusing every verb on it and its lines while that system is the system of record; null for one no outside system holds"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the order prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /purchase_orders/{uuid}/email` would offer to send it to: the order's contact, else the contact's email address as typed on the order; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /purchase_orders/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the purchase order"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /purchase_orders/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the purchase order",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The purchase order's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /purchase_orders/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the purchase order",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "purchase_order",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the purchase order sends, each attaching its own PDF (`purchase_order` the Purchase Order); `kind` names it to send it again. Null for a reply sent in the purchase order's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourced_for": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CustomerQuoteStub"
                },
                {
                  "$ref": "#/components/schemas/SalesOrderStub"
                },
                {
                  "$ref": "#/components/schemas/PurchaseOrderStub"
                },
                {
                  "$ref": "#/components/schemas/RepairOrderStub"
                },
                {
                  "$ref": "#/components/schemas/WorkOrderStub"
                }
              ]
            },
            "description": "The quotes and orders its lines were sourced for, each once, in their sourcing requests' order"
          },
          "package_manifest": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/Manifest"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole manifest when `expand[]=package_manifest` asked for it"
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt in progress for the order's parts, made when they arrive by Receiving's Receive or `POST /purchase_orders/{uuid}/create_receipt`; a line added later joins it; a lot order's is on its package's manifest; null until one is open"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "resend",
                    "create_receipt",
                    "voucher",
                    "record_payment",
                    "return",
                    "add_package",
                    "issue",
                    "close",
                    "email",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "record_payment": "create_vendor_payment",
              "issue": "create_issued_part"
            }
          },
          "receiving_rollup": {
            "type": "object",
            "description": "Units across the order's part lines: ordered, reserved to sales orders and received; billable, the units ordered on lines a voucher bills (never a lease or any line of a consignment order); and vouchered, the billable units billed on a vendor's voucher or by the system a migration came from. Present when `expand[]=receiving_rollup` asked for it",
            "additionalProperties": false,
            "properties": {
              "ordered": {
                "type": "number"
              },
              "claimed": {
                "type": "number"
              },
              "received": {
                "type": "number"
              },
              "billable": {
                "type": "number"
              },
              "vouchered": {
                "type": "number"
              }
            },
            "required": [
              "ordered",
              "claimed",
              "received",
              "billable",
              "vouchered"
            ]
          },
          "overview_counts": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "lines",
              "allocations",
              "exchanges",
              "cores_owed",
              "leases",
              "returns",
              "unvouchered",
              "unresolved",
              "unpriced",
              "unconditioned",
              "unpromised"
            ],
            "properties": {
              "lines": {
                "type": "integer"
              },
              "allocations": {
                "type": "integer"
              },
              "exchanges": {
                "type": "integer"
              },
              "cores_owed": {
                "type": "number"
              },
              "leases": {
                "type": "integer"
              },
              "returns": {
                "type": "integer"
              },
              "unvouchered": {
                "type": "number"
              },
              "unresolved": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "first_line"
                ],
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "first_line": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The first such line, in line order"
                  }
                }
              },
              "unpriced": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "first_line"
                ],
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "first_line": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The first such line, in line order"
                  }
                }
              },
              "unconditioned": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "first_line"
                ],
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "first_line": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The first such line, in line order"
                  }
                }
              },
              "unpromised": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "first_line"
                ],
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "first_line": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The first such line, in line order"
                  }
                }
              }
            },
            "description": "What hangs off the order: its lines, the claims on their units, its exchanges and the cores they still owe, its returns and the received units no voucher bills yet; and the lines receiving still needs a part, a cost or a condition on, and the lines still owed with no promise date, with the first of each. Present when `expand[]=overview_counts` asked for it"
          },
          "progress": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "line_count",
              "billable_line_count",
              "received_count",
              "vouchered_count",
              "draft_voucher"
            ],
            "description": "How far its lines have come from receiving to vouchering, each count the lines at or past a step, so a vouchered line was received; charge lines count in none. Present when `expand[]=progress` asked for it",
            "properties": {
              "line_count": {
                "type": "integer",
                "description": "Its part and package lines: every line that arrives"
              },
              "billable_line_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines a voucher bills: none on a consignment order, and no lease, which bills by the period"
              },
              "received_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines whose whole quantity was received"
              },
              "vouchered_count": {
                "type": "integer",
                "description": "Of `billable_line_count`, the lines received in full with every received unit on a voucher not cancelled"
              },
              "draft_voucher": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/VoucherStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its first voucher still a draft; null when none is"
              }
            }
          },
          "returnable_receipt_lines": {
            "type": "array",
            "description": "The received units the vendor can still take back, by receipt, each with what a return can take of it: the `receipt_line_uuid` `POST /purchase_orders/{uuid}/return` takes. Present when `expand[]=returnable_receipt_lines` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "receipt_line",
                "receipt",
                "inventory_line",
                "part_number",
                "part",
                "condition_code",
                "serial_number",
                "quantity_received",
                "quantity_returnable",
                "quantity_customer_returned"
              ],
              "properties": {
                "receipt_line": {
                  "$ref": "#/components/schemas/ReceiptLineStub"
                },
                "receipt": {
                  "$ref": "#/components/schemas/ReceiptStub"
                },
                "inventory_line": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "part_number": {
                  "type": "string"
                },
                "part": {
                  "$ref": "#/components/schemas/PartStub"
                },
                "condition_code": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_received": {
                  "type": "number"
                },
                "quantity_returnable": {
                  "type": "number"
                },
                "quantity_customer_returned": {
                  "type": "number",
                  "description": "Of what is returnable, the units a customer sent back to us"
                }
              }
            }
          },
          "unvouchered_receipt_lines": {
            "type": "array",
            "description": "The received units no vendor voucher bills yet, oldest first: what `POST /purchase_orders/{uuid}/voucher` bills. Present when `expand[]=unvouchered_receipt_lines` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "receipt_line",
                "receipt",
                "inventory_line",
                "part_number",
                "part",
                "condition_code",
                "serial_number",
                "received_at",
                "protection_reason",
                "protected",
                "quantity_received",
                "quantity_unvouchered",
                "unvouchered_cents"
              ],
              "properties": {
                "receipt_line": {
                  "$ref": "#/components/schemas/ReceiptLineStub"
                },
                "receipt": {
                  "$ref": "#/components/schemas/ReceiptStub"
                },
                "inventory_line": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "part_number": {
                  "type": "string"
                },
                "part": {
                  "$ref": "#/components/schemas/PartStub"
                },
                "condition_code": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "received_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "protection_reason": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "protected": {
                  "type": "boolean"
                },
                "quantity_received": {
                  "type": "number"
                },
                "quantity_unvouchered": {
                  "type": "number"
                },
                "unvouchered_cents": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "What the units no voucher bills yet cost at the order's price, in the purchase order's currency"
                }
              }
            }
          },
          "releasable_allocations": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "cores",
              "returns",
              "issues"
            ],
            "properties": {
              "cores": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "object",
                    "uuid",
                    "unit"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "allocation"
                    },
                    "uuid": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "unit": {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    }
                  }
                }
              },
              "returns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "object",
                    "uuid",
                    "unit"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "allocation"
                    },
                    "uuid": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "unit": {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    }
                  }
                }
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "object",
                    "uuid",
                    "unit"
                  ],
                  "properties": {
                    "object": {
                      "type": "string",
                      "const": "allocation"
                    },
                    "uuid": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "unit": {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    }
                  }
                }
              }
            },
            "description": "The reserved units no release carries yet, each named by the unit, that `POST /releases` with this order's `purchase_order_uuid` ships to the vendor: exchange cores owed back, units on its returns, and parts issued to it. Present when `expand[]=releasable_allocations` asked for it"
          },
          "unlinked_part_numbers": {
            "type": "array",
            "description": "The part numbers typed on the order's lines that no catalog part names yet, one row per number however it was typed, with the lines typing it and the part already holding it: `matches` a part to link to, `inactive` a retired one, `new` none, `unusable` a number with no letter or digit. `POST /purchase_orders/{uuid}/resolve_part_numbers` links them. Present when `expand[]=unlinked_part_numbers` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "part_number_raw",
                "description",
                "lines",
                "part",
                "status"
              ],
              "properties": {
                "part_number_raw": {
                  "type": "string",
                  "description": "The number as the first line typing it typed it"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first description one of those lines carries"
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CustomerQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/CustomerRfqLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/InvoiceLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/SalesOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorRfqLineStub"
                      }
                    ]
                  }
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part already holding the number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "matches",
                    "inactive",
                    "new",
                    "unusable"
                  ]
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /purchase_orders/{uuid}/email` can send, each template filled from the purchase order, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "purchase_order"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the purchase order sends, each attaching its own PDF (`purchase_order` the Purchase Order); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the purchase order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "vendor_reference",
                                            "total",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the purchase order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "vendor_reference",
                                                "total",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "vendor_reference",
                                                            "total",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "vendor_reference",
                          "total",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this purchase order"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /purchase_orders/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "requirements": {
            "$ref": "#/components/schemas/PurchaseOrderRequirementList",
            "description": "Present when `expand[]=requirements` asked for it: the first page, continued on `/purchase_orders/{uuid}/requirements`"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "lines": {
            "$ref": "#/components/schemas/PurchaseOrderLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "buying",
        "x-role": "document"
      },
      "PurchaseOrderLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "unit_cost_cents",
          "tax_cents",
          "request_type",
          "priority",
          "external_notes",
          "internal_notes",
          "period_starts_on",
          "period_ends_on",
          "reported_hours",
          "reported_cycles",
          "quantity",
          "quantity_reserved",
          "quantity_received",
          "quantity_outstanding",
          "quantity_held",
          "awaited_requirements",
          "line_total_cents",
          "receivable",
          "received",
          "arrived",
          "quantity_available",
          "part_description",
          "sourcing_request_closed",
          "removal_refusal",
          "billed_lease_removal_refusal",
          "currency_code",
          "currency_exponent",
          "order_status",
          "need_by",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "warranty_days",
          "source_fields",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "hold_reason",
          "sold_on",
          "tagged_by",
          "purchase_order",
          "vendor",
          "part",
          "charge",
          "condition",
          "warehouse",
          "inventory_code",
          "vendor_offer",
          "vendor_rfq",
          "arrival_receipt",
          "sourcing_request",
          "vendor_lease",
          "billed_lease",
          "period_lines",
          "exchange",
          "lease",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "purchase_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge",
              "package"
            ]
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "period_starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The first day a lease's period charge covers; null on any other line"
          },
          "period_ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day a lease's period charge covers"
          },
          "reported_hours": {
            "type": [
              "number",
              "null"
            ],
            "description": "The hours reported for the period this charge covers"
          },
          "reported_cycles": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The cycles reported for the period this charge covers"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_reserved": {
            "type": "number",
            "x-internal": true
          },
          "quantity_received": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "quantity_held": {
            "type": "number",
            "description": "What it received that is still on hand under a protection hold, so not yet usable"
          },
          "awaited_requirements": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The names of the order's requirements its held units wait on, each not yet met or waived; empty when none holds them"
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "receivable": {
            "type": "boolean"
          },
          "received": {
            "type": "boolean"
          },
          "arrived": {
            "type": "boolean"
          },
          "quantity_available": {
            "type": "number",
            "x-internal": true
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourcing_request_closed": {
            "type": "boolean",
            "x-internal": true
          },
          "removal_refusal": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "received",
              "on_receipt",
              "vouchered",
              "reserved",
              "issued_parts",
              "returned_parts",
              null
            ],
            "description": "`received`: Inventory has arrived against the line; `on_receipt`: The open receipt holds a rejection against the line; `vouchered`: The charge on the line has been vouchered; `reserved`: Orders are reserved against the line's incoming supply; `issued_parts`: Parts have been issued to the vendor against the line; `returned_parts`: Parts issued to the vendor against the line came back to inventory; the release that shipped them keeps the line",
            "x-enum-descriptions": [
              "Inventory has arrived against the line",
              "The open receipt holds a rejection against the line",
              "The charge on the line has been vouchered",
              "Orders are reserved against the line's incoming supply",
              "Parts have been issued to the vendor against the line",
              "Parts issued to the vendor against the line came back to inventory; the release that shipped them keeps the line",
              "Not set"
            ],
            "x-enum-labels": [
              "Received",
              "On receipt",
              "Vouchered",
              "Reserved",
              "Issued parts",
              "Returned parts",
              "Not set"
            ]
          },
          "billed_lease_removal_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why this line's lease charge, a period or the outright purchase, can't come off the order now; null when it can, or on a line charging no lease"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "order_status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "closed",
              "cancelled"
            ],
            "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; what it orders is due in; `closed`: Finished; nothing more is expected on it; `cancelled`: Called off; nothing will arrive on it",
            "x-enum-descriptions": [
              "Being written; not yet sent to the vendor",
              "Sent to the vendor; what it orders is due in",
              "Finished; nothing more is expected on it",
              "Called off; nothing will arrive on it"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Closed",
              "Cancelled"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who the vendor says the unit traces to, such as the airline it came off"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When the vendor says the unit was tagged"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The warranty the vendor gives on the line, in days: null states no term, and 0 is none (as is). Refused on a charge line, and dropped when a line becomes one"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "hold_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The protection reason its held units share; null when none is held, or they are held for different reasons"
          },
          "sold_on": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderLineStub"
            }
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company the vendor says tagged the unit, such as a repair station; null where none is picked"
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The inventory the line's units land in, which its receipt lines take: the order's own on a consignment, else the line's; null on a charge or a lot's package, whose parts land through its manifest"
          },
          "vendor_offer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorInventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor's offer this line buys: a quote line its RFQ converted, or an inventory row a sale ordered; null on any other line, or once the offer is gone"
          },
          "vendor_rfq": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "arrival_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "vendor_lease": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "billed_lease": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor lease this charge bills: one of its periods, or its outright purchase"
          },
          "period_lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLineStub"
            },
            "description": "Every line charging the same lease period as this one, itself included, which come off the order together; empty on any other line"
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "core_charge_cents",
              "core_due_days",
              "expected_core_part_number",
              "expected_core_part_description",
              "expected_core_condition",
              "expected_core_part",
              "vendor_exchange"
            ],
            "properties": {
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of `currency_code`"
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_part_description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_condition": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected_core_part": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PartStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The catalog part `expected_core_part_number` names; null where none is typed or none matches it"
              },
              "vendor_exchange": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/VendorExchangeStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "rate_unit",
              "minimum_days",
              "included_hours",
              "included_cycles",
              "hour_fee_cents",
              "cycle_fee_cents",
              "outright_price_cents",
              "due_days"
            ],
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ],
                "description": "The period `unit_cost_cents` is the vendor's rate for, and the allowance and fees below are counted over",
                "x-enum-descriptions": [
                  "The rate is per day, and any allowance of hours and cycles is per day",
                  "The rate is per week, and any allowance of hours and cycles is per week",
                  "The rate is per month, and any allowance of hours and cycles is per month",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Day",
                  "Week",
                  "Month",
                  "Not set"
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fewest days the vendor bills for"
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The hours each period's rate includes"
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The cycles each period's rate includes"
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the vendor charges for each hour over the allowance"
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the vendor charges for each cycle over the allowance"
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What we pay to keep the unit"
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days after it arrives the unit is due back to the vendor"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "allocate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "PurchaseOrderRequirement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "purchase_order_requirement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "enum": [
              "vendor",
              "part",
              "condition",
              "every_order",
              "order",
              "sales_order"
            ],
            "description": "`vendor`, `part`, `condition` or `every_order` for a copy of a standing requirement, removed only with `settings:requirements`; `order` for one added on the order; `sales_order` for a customer's requirement copied from a sales order the order's lines are allocated to, removed only with `sales:write`",
            "x-enum-descriptions": [
              "Copied from the vendor's standing requirements",
              "Copied from the standing requirements of the part some of the order's lines name; it holds those lines' units",
              "Copied from the standing requirements of the condition some of the order's lines buy; it holds those lines' units",
              "Copied because the requirement stands on every purchase order",
              "Added on the purchase order itself",
              "Copied from a sales order some of the order's lines are allocated to; it holds that part's units"
            ],
            "x-enum-labels": [
              "From the vendor",
              "From a part",
              "From a condition",
              "Every order",
              "Added on the order",
              "From a sales order"
            ]
          },
          "met": {
            "type": "boolean",
            "description": "Whether every unit received on the lines it holds meets it; a document on the order meets it before any arrives, a fact only once one has"
          },
          "state": {
            "type": "string",
            "enum": [
              "met",
              "waived",
              "not_met"
            ],
            "description": "`met`; `waived` for a warning someone waived, which stops counting once the requirement blocks; else `not_met`, which holds the units it covers under Awaiting documents, or Shelf life short when only their shelf life falls short",
            "x-enum-descriptions": [
              "Every unit received on the lines it holds satisfies it, or the document it asks for is on the order",
              "Someone waived it with a note while it only warns, so the units it holds can be released without it",
              "Not yet satisfied; a unit it holds arrives under Awaiting documents, or Shelf life short when only its shelf life falls short, and stays held until it is met or waived"
            ],
            "x-enum-labels": [
              "Met",
              "Waived",
              "Not met"
            ]
          },
          "told_vendor": {
            "type": "boolean",
            "description": "False for a sales order's copy added to a sent order after it was sent or last resent, when the purchase order the vendor has doesn't already print that requirement for that part; else true"
          },
          "waived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "waiver_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "requirement": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Requirement"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole requirement when `expand[]=requirement` asked for it"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a sales order's copy, the sales order whose requirement it carries, whose waiver counts here too; else null"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a copy from a part's list or a sales order, the part whose lines' units it holds; else null"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a copy from a condition's list, the condition whose lines' units it holds; else null"
          },
          "added_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "waived_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "waive",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "QuickbooksAccount": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "quickbooks_id",
          "name",
          "code",
          "account_type"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_account"
          },
          "quickbooks_id": {
            "type": "string",
            "description": "QuickBooks' own id for the account, which a link names"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its full name, the accounts it sits under first, as QuickBooks shows it"
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its account number"
          },
          "account_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "QuickBooks' type for the account: Income, Expense, Bank and the rest"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuickbooksAssignment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quickbooks_id",
          "quickbooks_entity_type",
          "origin",
          "linked_at",
          "record",
          "linker",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_assignment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quickbooks_id": {
            "type": "string"
          },
          "quickbooks_entity_type": {
            "type": "string"
          },
          "origin": {
            "type": "string",
            "enum": [
              "matched",
              "created",
              "manual"
            ],
            "description": "`matched`: Found in QuickBooks by name; `created`: Made in QuickBooks from this record; `manual`: Picked by hand",
            "x-enum-descriptions": [
              "Found in QuickBooks by name",
              "Made in QuickBooks from this record",
              "Picked by hand"
            ],
            "x-enum-labels": [
              "Matched",
              "Created",
              "Manual"
            ]
          },
          "linked_at": {
            "type": "string",
            "format": "date-time"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a coded stub where the record is quoted by its code; a part's own stub where it is one"
          },
          "linker": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "QuickbooksCustomer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "quickbooks_id",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_customer"
          },
          "quickbooks_id": {
            "type": "string",
            "description": "QuickBooks' own id for the customer, which a link names"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name QuickBooks shows for the customer"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuickbooksIntegration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "connected",
          "sandbox",
          "realm_id",
          "company_name",
          "home_currency_code",
          "multi_currency_enabled",
          "books_closed_through",
          "cutover_on",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "last_synced_at",
          "last_sync_error",
          "problems",
          "connection_refusal",
          "authorize_url"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The integration's, as its events name it"
          },
          "connected": {
            "type": "boolean"
          },
          "sandbox": {
            "type": "boolean",
            "description": "Whether the company is one of Intuit's developer sandboxes rather than real books; while disconnected, whether connecting reaches one"
          },
          "realm_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "QuickBooks' id for the company, kept after a disconnect as history"
          },
          "company_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "home_currency_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The currency QuickBooks keeps the company's books in"
          },
          "multi_currency_enabled": {
            "type": "boolean"
          },
          "books_closed_through": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day QuickBooks has closed the books through"
          },
          "cutover_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Nothing dated before this posts, so what was entered in QuickBooks by hand is never posted twice"
          },
          "connected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "disconnected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "signed_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When QuickBooks refused the connection's sign-in and ended it, for as long as it stays disconnected; null after a disconnect someone asked for"
          },
          "last_synced_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_sync_error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last read of the roster from QuickBooks fell short"
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What stands between the connection and clean posting, in words"
          },
          "connection_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why nothing here reaches QuickBooks (this installation holds no keys for the Intuit app the tenant's kind picks), said to every seat whatever its grants"
          },
          "authorize_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where to send the person's browser to approve the connection at Intuit, answered to `connect` alone; it lapses in minutes, so no tag names it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "connect",
                    "sync",
                    "disconnect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "roster_links": {
            "type": "array",
            "description": "How much of each roster an invoice or a bill names is linked to QuickBooks. Present when `expand[]=roster_links` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "roster",
                "linked",
                "total"
              ],
              "properties": {
                "roster": {
                  "type": "string",
                  "enum": [
                    "ledger_accounts",
                    "payment_terms",
                    "combined_tax_rates"
                  ]
                },
                "linked": {
                  "type": "integer",
                  "description": "Its active rows linked to their twins in QuickBooks"
                },
                "total": {
                  "type": "integer",
                  "description": "Its active rows"
                }
              }
            }
          },
          "posting": {
            "type": "object",
            "description": "The transactions waiting to post to QuickBooks, and those that failed and wait on someone to repost or skip them. Present when `expand[]=posting` asked for it",
            "additionalProperties": false,
            "properties": {
              "waiting": {
                "type": "integer"
              },
              "failed": {
                "type": "integer"
              }
            },
            "required": [
              "waiting",
              "failed"
            ]
          },
          "items": {
            "type": "array",
            "description": "QuickBooks' own products and services, read from QuickBooks on each ask, by name; empty while disconnected or when QuickBooks can't be reached. No tag names them, so they never refuse a write. Present when `expand[]=items` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "quickbooks_id",
                "name",
                "ledger_account",
                "catalog_count"
              ],
              "properties": {
                "quickbooks_id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "ledger_account": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CodedStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The GL account whose revenue the item posts to, where it is linked"
                },
                "catalog_count": {
                  "type": "integer",
                  "description": "The parts and charges posting through the item"
                }
              }
            }
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuickbooksItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "quickbooks_id",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_item"
          },
          "quickbooks_id": {
            "type": "string",
            "description": "QuickBooks' own id for the item, which a link names"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuickbooksTaxCode": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "quickbooks_id",
          "name",
          "description"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_tax_code"
          },
          "quickbooks_id": {
            "type": "string",
            "description": "QuickBooks' own id for the tax code, which a link names"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuickbooksVendor": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "quickbooks_id",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quickbooks_vendor"
          },
          "quickbooks_id": {
            "type": "string",
            "description": "QuickBooks' own id for the vendor, which a link names"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name QuickBooks shows for the vendor"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "QuoteResponseTime": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "bucket",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "quote_response_time"
          },
          "bucket": {
            "type": "string",
            "enum": [
              "under_1h",
              "1_8h",
              "8_24h",
              "over_1d",
              "never"
            ]
          },
          "label": {
            "type": "string"
          },
          "requests": {
            "type": "integer",
            "description": "Requests received"
          },
          "quoted": {
            "type": "integer",
            "description": "Requests sent with a price"
          },
          "no_quote": {
            "type": "integer",
            "description": "Requests that priced nothing and answered something No quote"
          },
          "sent": {
            "type": "integer",
            "description": "Requests whose quote was sent"
          },
          "won": {
            "type": "integer",
            "description": "Sent quotes converted to an order"
          },
          "lost": {
            "type": "integer",
            "description": "Sent quotes marked lost and not won"
          },
          "open": {
            "type": "integer",
            "description": "Sent quotes neither won nor lost"
          },
          "win_rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Won over sent, from 0 to 1; null where none was sent"
          }
        },
        "x-area": "selling",
        "x-role": "report"
      },
      "Receipt": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "internal_notes",
          "order_internal_notes",
          "counterparty_role",
          "external_notes",
          "shipped_via",
          "tracking_number",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "source_label",
          "pool_code",
          "funding",
          "packages",
          "quantity",
          "quantity_held",
          "line_count",
          "received_count",
          "inspection_required_count",
          "inspected_count",
          "drop_ship",
          "fx_rate",
          "home_currency_code",
          "source_fields",
          "document_forms",
          "organization",
          "company",
          "source",
          "receiving_inspection_checklist",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "receipt"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "received",
              "cancelled"
            ],
            "description": "`open`: Arriving; its lines are still being checked in; `received`: Received; its ready lines are in inventory; `cancelled`: Called off before anything was received",
            "x-enum-descriptions": [
              "Arriving; its lines are still being checked in",
              "Received; its ready lines are in inventory",
              "Called off before anything was received"
            ],
            "x-enum-labels": [
              "Open",
              "Received",
              "Cancelled"
            ]
          },
          "currency_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "order_internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "The internal notes of the order it receives, on a manifest's receipt of the order funding the manifest; null on a receipt of no order",
            "x-internal": true
          },
          "counterparty_role": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "vendor",
              "customer",
              null
            ],
            "description": "Which side `company` stands on: a vendor's order or a manifest, or a customer's; null on a direct, import or migration receipt",
            "x-enum-descriptions": [
              "The goods come from a vendor",
              "The goods come from a customer",
              "Not set"
            ],
            "x-enum-labels": [
              "Vendor",
              "Customer",
              "Not set"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_via": {
            "type": [
              "string",
              "null"
            ]
          },
          "tracking_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_label": {
            "type": "string"
          },
          "pool_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "funding": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "On a manifest's receipt, the purchase or repair order funding the manifest; null on any other"
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "line_total_cents": {
                  "type": "number"
                },
                "arrived": {
                  "type": "boolean"
                },
                "inventory_code": {
                  "type": "string"
                },
                "manifest_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "uuid",
                "description",
                "line_total_cents",
                "arrived",
                "inventory_code",
                "manifest_uuid"
              ],
              "additionalProperties": false
            }
          },
          "quantity": {
            "type": "number"
          },
          "quantity_held": {
            "type": "number"
          },
          "line_count": {
            "type": "integer",
            "description": "The lines the receipt checks in"
          },
          "received_count": {
            "type": "integer",
            "description": "Of `line_count`, the lines received into inventory"
          },
          "inspection_required_count": {
            "type": "integer",
            "description": "The lines requiring a receiving inspection, as each line's `inspection_required` says"
          },
          "inspected_count": {
            "type": "integer",
            "description": "Of `inspection_required_count`, the lines whose receiving inspection is completed, passed or failed"
          },
          "drop_ship": {
            "type": "boolean"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "home_currency_code": {
            "type": "string"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the receipt prints on, each by the `form` `POST /documents` takes"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whom the goods come from: the order's vendor or the customer, and on a manifest's receipt the vendor of the order funding it; null on a direct, import or migration receipt, or a manifest nothing funds"
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AvsightMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CorepilotLegacyMigrationStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/ImportStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; an AvSight migration's own stub where it is one; a CorePilot legacy migration's own stub where it is one; a customer exchange's own stub where it is one; a customer lease's own stub where it is one; a customer return's own stub where it is one; an import's own stub where it is one; a manifest's own stub where it is one; a sales order's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one"
          },
          "receiving_inspection_checklist": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receiving checklist each line requiring an inspection answers before Receive, its organization's; null where it runs none"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "receive",
                    "receive_and_ship",
                    "list_part",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "receiving_check": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "unready_lines",
              "expired_lines",
              "short_lines",
              "customer_unit_lines",
              "pending_lines",
              "unplaced_count",
              "blocks"
            ],
            "description": "What `POST /receipts/{uuid}/receive` would do, read before it runs; empty once the receipt is no longer open. Present when `expand[]=receiving_check` asked for it",
            "properties": {
              "unready_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part_number",
                    "part",
                    "serial_number",
                    "quantity",
                    "missing_facts",
                    "from_manifest"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string"
                    },
                    "part_number": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "serial_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "missing_facts": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "condition",
                          "serial",
                          "quantity",
                          "shelf_life"
                        ]
                      }
                    },
                    "from_manifest": {
                      "type": "boolean",
                      "description": "The line came off a manifest, so it moves to the manifest's next receipt"
                    }
                  }
                },
                "description": "Lines missing a fact receiving needs: `leave_unready` moves them to the next receipt"
              },
              "expired_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part_number",
                    "part",
                    "serial_number",
                    "shelf_life_expires_on"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string"
                    },
                    "part_number": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "serial_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "shelf_life_expires_on": {
                      "type": "string",
                      "format": "date"
                    }
                  }
                },
                "description": "Ready lines whose shelf life has run out, which the receive refuses until each is rejected"
              },
              "short_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part_number",
                    "part",
                    "quantity",
                    "quantity_outstanding"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string"
                    },
                    "part_number": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "quantity_outstanding": {
                      "type": "number",
                      "description": "What its order line still has on order; the rest stays on order"
                    }
                  }
                },
                "description": "Lines checking in fewer units than their order line still has on order"
              },
              "customer_unit_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part_number",
                    "part",
                    "serial_number",
                    "sales_order"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "description": "The line `returned_as_is_line_uuids` takes"
                    },
                    "part_number": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "serial_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sales_order": {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    }
                  }
                },
                "description": "A customer's units back from the repair shop, which the receive may take back as is"
              },
              "pending_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part_number",
                    "part",
                    "serial_number",
                    "quantity",
                    "placed",
                    "placement_required",
                    "unmet_requirements",
                    "from_manifest",
                    "inspection_required",
                    "inspection_outcome",
                    "hold"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "description": "The line `line_uuids` names as arrived"
                    },
                    "part_number": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "serial_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "placed": {
                      "type": "boolean",
                      "description": "It has a bin, or the receive puts it in the reader's `suggested_bin`; unplaced, its inventory mints unplaced"
                    },
                    "placement_required": {
                      "oneOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "name",
                            "enforcement"
                          ],
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "enforcement": {
                              "type": "string",
                              "enum": [
                                "warn",
                                "block"
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The placed requirement asking this unplaced line for a bin, a block ahead of a warning: a block refuses the receive and a warning lets it through; null when none asks or the line is placed"
                    },
                    "unmet_requirements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "name",
                          "enforcement",
                          "met_by"
                        ],
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "enforcement": {
                            "type": "string",
                            "enum": [
                              "warn",
                              "block"
                            ]
                          },
                          "met_by": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "tag_types",
                                "attachments",
                                "shelf_life_expires_on"
                              ]
                            },
                            "description": "The line's fields that meet it: its tag types, a file attached to it, or its shelf-life expiry"
                          }
                        }
                      },
                      "description": "The order's requirements this line's unit doesn't meet yet, besides a bin: received now, it arrives held until each is met or waived"
                    },
                    "from_manifest": {
                      "type": "boolean",
                      "description": "The line came off a manifest, so it stays outstanding there if it didn't arrive"
                    },
                    "inspection_required": {
                      "type": "boolean",
                      "description": "Counted in the receipt's `inspection_required_count`: unless `inspection_outcome` is `passed` or `failed`, the receive lands it on the Inspection hold"
                    },
                    "inspection_outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "in_progress",
                        "passed",
                        "failed",
                        null
                      ],
                      "description": "Where its receiving inspection stands, null where none is started"
                    },
                    "hold": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The hold its unit lands on when received, null where it lands free"
                    }
                  }
                },
                "description": "Every line still to receive: those `line_uuids` leaves out come off as didn't arrive"
              },
              "unplaced_count": {
                "type": "integer",
                "description": "Lines with no bin, none suggested to the reader and no placed requirement asking for one, whose inventory mints unplaced"
              },
              "blocks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "kind",
                    "reason"
                  ],
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "migration",
                        "order",
                        "placement",
                        "expired"
                      ]
                    },
                    "reason": {
                      "type": "string"
                    }
                  }
                },
                "description": "Each reason `POST /receipts/{uuid}/receive` refuses now, the first of them the one it refuses with, each by where it is resolved: `migration` the outside system holding it, `order` the order it receives, `placement` a line's bin, `expired` a line whose shelf life has run out"
              }
            }
          },
          "receiving_outcome": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "lines_moved",
              "moved_to",
              "orders_waiting"
            ],
            "description": "Once received, what the receive did: the lines that weren't ready and the receipt they moved to, and the orders its units didn't cover, still waiting on inventory; null until it's received. Present when `expand[]=receiving_outcome` asked for it",
            "properties": {
              "lines_moved": {
                "type": "integer",
                "description": "Lines `leave_unready` moved to the next receipt"
              },
              "moved_to": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReceiptStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The receipt they moved to"
              },
              "orders_waiting": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderStub"
                    }
                  ]
                }
              }
            }
          },
          "issue_splits": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "part_number",
                "part",
                "receipt_line_uuids",
                "quantity_shipped",
                "quantity_to_issue_by_default",
                "quantity_to_issue",
                "quantity_to_put_back"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "description": "The issued part, whose plan `PATCH /issued_parts/{uuid}` sets"
                },
                "part_number": {
                  "type": "string"
                },
                "part": {
                  "$ref": "#/components/schemas/PartStub"
                },
                "receipt_line_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "This receipt's lines bringing back the order line it was issued to"
                },
                "quantity_shipped": {
                  "type": "number",
                  "description": "What is at the vendor"
                },
                "quantity_to_issue_by_default": {
                  "type": "number",
                  "description": "What receiving issues with no plan set: its share of everything this receipt brings back for the order line, capped at what is at the vendor"
                },
                "quantity_to_issue": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The plan's issue, null until one is set"
                },
                "quantity_to_put_back": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The plan's put-back, null until one is set"
                }
              }
            },
            "description": "The parts issued to the order lines this receipt brings back, each with what is at the vendor and the plan receiving confirms; empty once the receipt is no longer open, or on a receipt of no purchase or repair order. Present when `expand[]=issue_splits` asked for it"
          },
          "drop_ship_chain": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "destination",
              "address",
              "sales_orders"
            ],
            "description": "On a drop-shipped receipt, where its units go straight on to and the orders they cover once it lands; null on any other. Present when `expand[]=drop_ship_chain` asked for it",
            "properties": {
              "destination": {
                "$ref": "#/components/schemas/Stub"
              },
              "address": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Address"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sales_orders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "sales_order",
                    "customer"
                  ],
                  "properties": {
                    "sales_order": {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    "customer": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Stub"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The order's customer; null on an order with none yet"
                    }
                  }
                }
              }
            }
          },
          "drop_shipment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "sales_orders",
              "held_lines",
              "drafts_invoice",
              "releases"
            ],
            "description": "On a drop-shipped receipt, what `POST /receipts/{uuid}/receive_and_ship` ships on, read before it runs; null on any other. Present when `expand[]=drop_shipment` asked for it",
            "properties": {
              "sales_orders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "sales_order",
                    "customer"
                  ],
                  "properties": {
                    "sales_order": {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    "customer": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Stub"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The order's customer; null on an order with none yet"
                    }
                  }
                },
                "description": "The orders it ships to, a release each: those its ready lines are allocated to, once received those its units are"
              },
              "held_lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "uuid",
                    "part",
                    "hold",
                    "release"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string"
                    },
                    "part": {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    "hold": {
                      "type": "string",
                      "description": "The hold its unit lands on, so it can't ship on"
                    },
                    "release": {
                      "type": "string",
                      "description": "What takes it off that hold, so it ships, in words to follow \"to ship it,\""
                    }
                  }
                },
                "description": "Ready lines whose unit would land on a hold: left out, they stay on order; cleared, they ship"
              },
              "drafts_invoice": {
                "type": "boolean",
                "description": "Whether each shipped release drafts its invoice, as the account's Invoice on ship says"
              },
              "releases": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReleaseStub"
                },
                "description": "Once received, the releases that shipped its units on"
              }
            }
          },
          "ready_to_release": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sales_order",
                "customer"
              ],
              "properties": {
                "sales_order": {
                  "$ref": "#/components/schemas/SalesOrderStub"
                },
                "customer": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The order's customer; null on an order with none yet"
                }
              }
            },
            "description": "Once received, the open orders its units wait on a release for, until a release holds them; a drop-shipped receipt's are its `drop_ship_chain`. Present when `expand[]=ready_to_release` asked for it"
          },
          "lines": {
            "$ref": "#/components/schemas/ReceiptLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "warehouse",
        "x-role": "document"
      },
      "ReceiptLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "trace_type",
          "tag_types",
          "quantity",
          "serial_number",
          "protected",
          "received",
          "missing_facts",
          "expected_serials",
          "from_manifest",
          "rejection_reason_names",
          "inventory_line_protected",
          "inventory_line_awaited_requirements",
          "inventory_line_release_refusal",
          "inspection_required",
          "inspection_not_required_reason",
          "inspection_outcome",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "tag_number",
          "certificate_number",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "effective_shelf_life_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "tail_number",
          "engine_serial_number",
          "internal_notes",
          "shelf_life",
          "tool",
          "calibration_due_on",
          "calibration_result",
          "calibration_certificate_number",
          "destinations",
          "inventory_kind",
          "custody_reason",
          "part_description",
          "inventory_code_refusal",
          "quantity_vouchered",
          "quantity_unvouchered",
          "unvouchered_cents",
          "home_unvouchered_cents",
          "currency_code",
          "line_position",
          "order_line",
          "company",
          "order",
          "received_at",
          "serial_shared_with",
          "inventory_line_protection_reason",
          "inspection",
          "tagged_by",
          "part",
          "condition",
          "warehouse",
          "bin",
          "suggested_warehouse",
          "suggested_bin",
          "inventory_code",
          "protection_reason",
          "rejection",
          "inventory_line",
          "owner_company",
          "receipt",
          "manifest",
          "return",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "receipt_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ],
            "x-enum-labels": [
              "Air carrier",
              "Repair station",
              "OEM",
              "Distributor",
              "Government",
              "Other",
              "Not set"
            ]
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Every release or certificate the unit's tag carries; empty where it carries none"
          },
          "quantity": {
            "type": "number"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "protected": {
            "type": "boolean"
          },
          "received": {
            "type": "boolean"
          },
          "missing_facts": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "condition",
                "serial",
                "quantity",
                "shelf_life"
              ],
              "x-enum-descriptions": [
                "No condition code is set",
                "The part is serialized and no serial number is set",
                "The part is serialized, so the line must hold exactly one unit",
                "The part has a shelf life and the line, arriving against an order, has no expiry or date of manufacture"
              ],
              "x-enum-labels": [
                "Condition",
                "Serial",
                "Quantity",
                "Shelf life"
              ]
            },
            "description": "`condition`: No condition code is set; `serial`: The part is serialized and no serial number is set; `quantity`: The part is serialized, so the line must hold exactly one unit; `shelf_life`: The part has a shelf life and the line, arriving against an order, has no expiry or date of manufacture"
          },
          "expected_serials": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "from_manifest": {
            "type": "boolean"
          },
          "rejection_reason_names": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "inventory_line_protected": {
            "type": "boolean"
          },
          "inventory_line_awaited_requirements": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The names of the order's requirements the unit it minted is held for, each not yet met or waived; empty when none holds it"
          },
          "inventory_line_release_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the unit it minted can't be released from protection yet, as its `release_protection` action says; null when it isn't held or can be released"
          },
          "inspection_required": {
            "type": "boolean",
            "description": "Whether it requires a receiving inspection"
          },
          "inspection_not_required_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "part_not_marked",
              "tool",
              "customers_unit",
              "unordered",
              "brought_over",
              null
            ],
            "description": "Why it requires no receiving inspection; null when it requires one",
            "x-enum-descriptions": [
              "its organization requires inspection only for parts marked Inspection required, and this part isn't",
              "a tool lands on the Tooling hold instead",
              "the customer's own unit isn't ours to inspect",
              "it arrives against no order",
              "brought over from another system's history, where it was inspected",
              "Not set"
            ],
            "x-enum-labels": [
              "Part not marked",
              "Tool",
              "Customer's unit",
              "Unordered",
              "Brought over",
              "Not set"
            ]
          },
          "inspection_outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "in_progress",
              "passed",
              "failed",
              null
            ],
            "description": "Where its receiving inspection stands; null for none yet. Receive lands a passed line off the Inspection hold and a failed one on Failed inspection, and never waits on one in progress",
            "x-enum-descriptions": [
              "Started and not yet completed",
              "Completed with no failing item that blocks, and every failing item that warns waived",
              "Completed with a failing item that blocks",
              "Not set"
            ],
            "x-enum-labels": [
              "In progress",
              "Passed",
              "Failed",
              "Not set"
            ]
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When it was made, or for rubber its cure date, as its certificate says"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When its shelf life ends, as its certificate prints it; null leaves `effective_shelf_life_expires_on` to work it out"
          },
          "effective_shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When its shelf life ends: `shelf_life_expires_on`, or when that is null, `date_of_manufacture` plus its part's shelf life; on or before today, the line can be received only rejected, and the unit it mints carries this date"
          },
          "time_since_new_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Flight hours since the unit was new, to the hundredth, as it arrives; the unit it mints carries it"
          },
          "time_since_overhaul_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Flight hours since its last overhaul, to the hundredth; never more than `time_since_new_hours`"
          },
          "time_limit_hours": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The flight hours it may run, to the hundredth"
          },
          "cycles_since_new": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Flight cycles since the unit was new, as it arrives"
          },
          "cycles_since_overhaul": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Flight cycles since its last overhaul; never more than `cycles_since_new`"
          },
          "cycle_limit": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The flight cycles it may run"
          },
          "tail_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The tail number of the aircraft the unit was removed from; the unit it mints carries it"
          },
          "engine_serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The serial number of the engine the unit was removed from; the unit it mints carries it"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes kept in-house; the unit it mints carries them",
            "x-internal": true
          },
          "shelf_life": {
            "type": "boolean",
            "description": "Its part has a shelf life"
          },
          "tool": {
            "type": "boolean"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_result": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "passed",
              "out_of_tolerance",
              "failed",
              null
            ],
            "description": "`passed`: Found within tolerance; the tool is fit for use; `out_of_tolerance`: Found outside its tolerance when checked; `failed`: Failed calibration; the tool is not fit for use",
            "x-enum-descriptions": [
              "Found within tolerance; the tool is fit for use",
              "Found outside its tolerance when checked",
              "Failed calibration; the tool is not fit for use",
              "Not set"
            ],
            "x-enum-labels": [
              "Passed",
              "Out of tolerance",
              "Failed",
              "Not set"
            ]
          },
          "calibration_certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "demand_order": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderStub"
                    }
                  ],
                  "description": "The order whose demand claims the units"
                },
                "quantity": {
                  "type": "number"
                }
              },
              "required": [
                "demand_order",
                "quantity"
              ],
              "additionalProperties": false
            },
            "description": "Where the units go once received: each order already holding some of them, and how many"
          },
          "inventory_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unit_costed",
              "cost_pool",
              "consignment",
              "custody",
              null
            ],
            "description": "`unit_costed`: Our own stock, each unit carrying its own cost; `cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale; `custody`: Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
            "x-enum-descriptions": [
              "Our own stock, each unit carrying its own cost",
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
              "Not set"
            ],
            "x-enum-labels": [
              "Unit-costed",
              "Cost pool",
              "Consignment",
              "Held for others",
              "Not set"
            ]
          },
          "custody_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repair",
              "lease",
              null
            ],
            "description": "Why a unit held for others is here: a customer's in for repair, or a vendor's we lease; null for one that isn't",
            "x-enum-descriptions": [
              "A customer's unit: held for others and not received on a lease purchase order line",
              "A vendor's unit, received on a lease purchase order line",
              "Not set"
            ],
            "x-enum-labels": [
              "Repair",
              "Lease",
              "Not set"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inventory_code_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the line's inventory code can't be changed here: a purchase order line sets it; null where the receipt line takes one"
          },
          "quantity_vouchered": {
            "type": "number",
            "description": "What vendor vouchers bill of it"
          },
          "quantity_unvouchered": {
            "type": [
              "number",
              "null"
            ],
            "description": "What no vendor voucher bills yet, less what went back to the vendor; null for a line no voucher bills: one not yet in, a consignor's, or one received against no purchase or repair order"
          },
          "unvouchered_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the units no voucher bills yet cost at the order's price"
          },
          "home_unvouchered_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency: `unvouchered_cents` at the order's rate; null where that is null or a foreign order has no rate"
          },
          "currency_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The currency of the purchase or repair order it arrived against; null for a line received against neither"
          },
          "line_position": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The position of the purchase order, repair order or manifest line it arrived against; null for any other"
          },
          "order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/ManifestLineStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The line it arrived against: a purchase or repair order's, a return's, an exchange's, a manifest's or a work order"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt's counterparty, by its company"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The purchase or repair order it arrived against, which a voucher bills it on; null for a line of neither"
          },
          "received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the receipt it arrived on was received"
          },
          "serial_shared_with": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryLineStub"
            },
            "description": "The lines of its part holding units under its serial number, whatever its case, but the unit it brings back, while it waits to be received; the same unit can come back through, so this warns and refuses nothing"
          },
          "inventory_line_protection_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the unit it minted is held now, which can differ from the `protection_reason` it arrived under; null when it isn't held"
          },
          "inspection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InspectionStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its receiving inspection: the one started on it before Receive, else its unit's; null for none yet"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company that tagged the unit, such as a repair station; null where none is picked"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggested_warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where Receive puts the line for whoever reads it, when no one has picked its bin: the warehouse it names, else theirs; null once it has a bin, is received, or nothing is suggested"
          },
          "suggested_bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bin Receive puts the line in for whoever reads it, when no one has picked one: the bin they last checked a part into at its warehouse's facility, else the facility's receiving bin, or its inspection bin for a line requiring an inspection; null once it has a bin, is received, or nothing is suggested"
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "protection_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "rejection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "$ref": "#/components/schemas/Receipt"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole receipt when `expand[]=receipt` asked for it"
          },
          "manifest": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "return": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "expected_shipment",
              "shipment_choices"
            ],
            "properties": {
              "expected_shipment": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "release_line",
                      "release",
                      "inventory_line",
                      "serial_number",
                      "condition"
                    ],
                    "properties": {
                      "release_line": {
                        "$ref": "#/components/schemas/ReleaseLineStub"
                      },
                      "release": {
                        "$ref": "#/components/schemas/ReleaseStub"
                      },
                      "inventory_line": {
                        "$ref": "#/components/schemas/InventoryLineStub"
                      },
                      "serial_number": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "condition": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/CodedStub"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The shipment the return names, which the unit in the box is checked against"
              },
              "shipment_choices": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "release_line",
                    "release",
                    "inventory_line",
                    "serial_number",
                    "condition"
                  ],
                  "properties": {
                    "release_line": {
                      "$ref": "#/components/schemas/ReleaseLineStub"
                    },
                    "release": {
                      "$ref": "#/components/schemas/ReleaseStub"
                    },
                    "inventory_line": {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    "serial_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "condition": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/CodedStub"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "description": "Every shipment of the returned line the unit in the box could be instead; empty once the line is received"
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "split",
                    "reject",
                    "unreject",
                    "inspect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "inspect": "create_inspection"
            }
          }
        },
        "x-area": "warehouse",
        "x-role": "line"
      },
      "ReceivableApplication": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "receivable_application"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "payment",
              "credit"
            ],
            "description": "`payment`: Money the counterparty paid, or we paid them; `credit`: A credit memo or vendor credit's line, applied to the bill",
            "x-enum-descriptions": [
              "Money the counterparty paid, or we paid them",
              "A credit memo or vendor credit's line, applied to the bill"
            ],
            "x-enum-labels": [
              "Payment",
              "Credit"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "recorded",
              "voided",
              "applied"
            ],
            "description": "`recorded`: A payment that counts toward the bill's settlement; `voided`: Its payment was voided, so it counts for nothing; `applied`: A credit that counts toward the bill's settlement",
            "x-enum-descriptions": [
              "A payment that counts toward the bill's settlement",
              "Its payment was voided, so it counts for nothing",
              "A credit that counts toward the bill's settlement"
            ],
            "x-enum-labels": [
              "Recorded",
              "Voided",
              "Applied"
            ]
          },
          "applied_on": {
            "type": "string",
            "format": "date"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "The payment's reference; null on a credit, whose memo is `credit`"
          },
          "voided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why an outside system holds an invoice its payment paid, refusing the payment's void while that system is the system of record; null on a credit, or a payment no outside system holds"
          },
          "payment": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerPaymentStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "credit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "voided_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "Rejection": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "note",
          "status",
          "resolution",
          "identifier",
          "resolved_at",
          "cancelled_at",
          "trashed_at",
          "part_number",
          "part_description",
          "serial_number",
          "quantity",
          "condition_code",
          "document_forms",
          "organization",
          "part",
          "clause",
          "inventory_line",
          "receipt",
          "purchase_order",
          "replacement",
          "outcome",
          "assignee",
          "reasons",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "rejection"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "resolved",
              "cancelled"
            ],
            "description": "`open`: Units held back for a problem, awaiting a decision; `resolved`: A decision was made and carried out; `cancelled`: Withdrawn; the units are released from the hold",
            "x-enum-descriptions": [
              "Units held back for a problem, awaiting a decision",
              "A decision was made and carried out",
              "Withdrawn; the units are released from the hold"
            ],
            "x-enum-labels": [
              "Open",
              "Resolved",
              "Cancelled"
            ]
          },
          "resolution": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "put_back",
              "scrapped",
              "returned",
              "added_to_repair_order",
              null
            ],
            "description": "`put_back`: Put back into stock as usable; `scrapped`: Scrapped; `returned`: Sent back to the vendor it was bought from; `added_to_repair_order`: Added to a repair order",
            "x-enum-descriptions": [
              "Put back into stock as usable",
              "Scrapped",
              "Sent back to the vendor it was bought from",
              "Added to a repair order",
              "Not set"
            ],
            "x-enum-labels": [
              "Put back",
              "Scrapped",
              "Returned",
              "Added to repair order",
              "Not set"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "resolved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "part_number": {
            "type": "string"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the rejection prints on, each by the `form` `POST /documents` takes"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "replacement": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "outcome": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryEntryStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; an inventory entry's own stub where it is one; a repair order's own stub where it is one; a vendor return's own stub where it is one"
          },
          "assignee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "put_back",
                    "scrap",
                    "return",
                    "add_to_repair_order",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "warehouse",
        "x-role": "document"
      },
      "RejectionReason": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "rejection_reason"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Release": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "urgency",
          "requested_ship_date",
          "documents_only",
          "internal_notes",
          "external_notes",
          "shipped_via",
          "pieces",
          "freight_charge_cents",
          "change_reason",
          "identifier",
          "trashed_at",
          "shipped_at",
          "changed_at",
          "worked_at",
          "total_weight",
          "weight_unit_code",
          "shipping_instructions",
          "migration_hold",
          "ship_via_label",
          "freight_account",
          "customer_po_number",
          "contact_name_raw",
          "billing_party",
          "currency_code",
          "currency_exponent",
          "line_count",
          "part_line_count",
          "picked_count",
          "verified_count",
          "qc_inspection_count",
          "awaiting_check_count",
          "shipping_status",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "tracking_references",
          "requirements",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "company",
          "contact",
          "invoice",
          "freight_term",
          "source",
          "clause",
          "outbound_qc_checklist",
          "worked_by",
          "ship_via",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "release"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "shipped",
              "cancelled"
            ],
            "description": "`open`: Planned to ship and not yet out the door; `shipped`: Shipped; its units have left; `cancelled`: Called off before it shipped",
            "x-enum-descriptions": [
              "Planned to ship and not yet out the door",
              "Shipped; its units have left",
              "Called off before it shipped"
            ],
            "x-enum-labels": [
              "Open",
              "Shipped",
              "Cancelled"
            ]
          },
          "urgency": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG"
            ]
          },
          "requested_ship_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "documents_only": {
            "type": "boolean",
            "description": "Whether it sends its documents alone, with no physical shipment, so it has nothing to pick"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_via": {
            "type": [
              "string",
              "null"
            ],
            "description": "How it went, as typed when it shipped; null until then"
          },
          "pieces": {
            "type": [
              "integer",
              "null"
            ]
          },
          "freight_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "change_reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "shipped_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "changed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "worked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "total_weight": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "weight_unit_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the release or its order came from holds it, refusing every verb on it and its lines while that system is the system of record; null for one no outside system holds"
          },
          "ship_via_label": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ship via on the sales order it ships, as text; null when it names none or ships another kind of order"
          },
          "freight_account": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's purchase order number for the order it ships; null on a release shipping to a vendor"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "The contact's name as typed on the order it ships, for a contact outside the address book; null when none was typed"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "line_count": {
            "type": "integer",
            "description": "Every line the release ships, charges included"
          },
          "part_line_count": {
            "type": "integer",
            "description": "The lines a warehouse picks and verifies: every line but a charge"
          },
          "picked_count": {
            "type": "integer",
            "description": "Of `part_line_count`, the lines picked"
          },
          "verified_count": {
            "type": "integer",
            "description": "Of `part_line_count`, the lines verified"
          },
          "qc_inspection_count": {
            "type": "integer",
            "description": "Of `part_line_count`, the lines that have started a QC checklist; each still gates Ship after its organization stops running one"
          },
          "awaiting_check_count": {
            "type": "integer",
            "description": "Of `picked_count`, the lines waiting on a QC checklist to pass before they are verified, as the `to_check` stage lists them"
          },
          "shipping_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "not_started",
              "picking",
              "waiting_on_check",
              "ready_to_ship",
              null
            ],
            "description": "Where an open release stands on its way out, as `shipping_status[]=` narrows by it; null once it shipped or was cancelled",
            "x-enum-descriptions": [
              "Open, with no line picked yet",
              "Open, with lines picked and lines still to pick",
              "Every line picked, with lines waiting on their outbound QC checklist",
              "Picked, and checked wherever an outbound QC checklist runs: ready to ship",
              "Not set"
            ],
            "x-enum-labels": [
              "Not started",
              "Picking",
              "Waiting on check",
              "Ready to ship",
              "Not set"
            ]
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the release prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "tracking_references": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "kind",
                "value"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "carrier",
                    "mawb",
                    "hawb"
                  ]
                },
                "value": {
                  "type": "string"
                }
              }
            },
            "description": "The carrier, MAWB and HAWB numbers the shipment went under, in the order given"
          },
          "requirements": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "uuid",
                "name",
                "enforcement",
                "instructions",
                "met",
                "state",
                "waived_at"
              ],
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The sales order's requirement, as `/sales_orders/{uuid}/requirements` lists it"
                },
                "name": {
                  "type": "string"
                },
                "enforcement": {
                  "type": "string",
                  "enum": [
                    "warn",
                    "block"
                  ]
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "met": {
                  "type": "boolean"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "met",
                    "waived",
                    "not_met"
                  ],
                  "description": "As the order's requirement says it, read against this release"
                },
                "waived_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                }
              }
            },
            "description": "The order's requirements before shipping, each read against this release: a document on the order or the release, the units it carries; empty on a vendor's release"
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /releases/{uuid}/email` would offer to send it to: the order's contact, else the contact's email address as typed on the order; empty for a release shipping to a vendor; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /releases/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the release"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /releases/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the release",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The release's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /releases/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the release",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "shipping_confirmation",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the release sends, each attaching its own PDF (`shipping_confirmation` the Shipping Packet); `kind` names it to send it again. Null for a reply sent in the release's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The contact on the order it ships"
          },
          "invoice": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InvoiceStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a sales order's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one"
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "outbound_qc_checklist": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The QC checklist each part line answers before it is verified, its organization's; null where it runs none"
          },
          "worked_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The ship via on the sales order it ships; null when it names none or ships another kind of order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "pick",
                    "unpick",
                    "verify",
                    "unverify",
                    "ship",
                    "unship",
                    "email",
                    "cancel",
                    "split",
                    "combine",
                    "invoice",
                    "certify",
                    "acknowledge",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "certificate_forms": {
            "type": "array",
            "description": "Each form `POST /releases/{uuid}/certify` takes, with why the release can't draft it now, or null when it can. Present when `expand[]=certificate_forms` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "refusal"
              ],
              "properties": {
                "form": {
                  "type": "string",
                  "enum": [
                    "conformance",
                    "material_certification",
                    "true_copy",
                    "split_statement"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "refusal": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "shipping_blocks": {
            "type": "array",
            "description": "Each reason `POST /releases/{uuid}/ship` refuses now, the first of them the `ship` action's reason, each by where it is resolved: `migration` the outside system holding it, `units` its lines' units, `order` the order it ships, `requirement` the order's requirements, `qc` its lines' QC checklists; empty unless open. Present when `expand[]=shipping_blocks` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "reason"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "migration",
                    "units",
                    "order",
                    "requirement",
                    "qc"
                  ]
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /releases/{uuid}/email` can send, each template filled from the release, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "shipping_confirmation"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the release sends, each attaching its own PDF (`shipping_confirmation` the Shipping Packet); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the release, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "order_number",
                                            "customer_po_number",
                                            "ship_date",
                                            "shipped_via",
                                            "tracking_numbers",
                                            "lines_shipped",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the release, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "order_number",
                                                "customer_po_number",
                                                "ship_date",
                                                "shipped_via",
                                                "tracking_numbers",
                                                "lines_shipped",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "order_number",
                                                            "customer_po_number",
                                                            "ship_date",
                                                            "shipped_via",
                                                            "tracking_numbers",
                                                            "lines_shipped",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "order_number",
                          "customer_po_number",
                          "ship_date",
                          "shipped_via",
                          "tracking_numbers",
                          "lines_shipped",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this release"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /releases/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/ReleaseLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "warehouse",
        "x-role": "document"
      },
      "ReleaseLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "position",
          "home_unit_cost_cents",
          "quantity",
          "description",
          "unit_price_cents",
          "customs_value_cents",
          "printed_customs_value_cents",
          "sells_at_zero",
          "settles_at_sale",
          "charge_code",
          "part_number",
          "part_description",
          "serial_number",
          "serial_missing",
          "condition_code",
          "inventory_kind",
          "custody_reason",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "picked_at",
          "verified_at",
          "hazmat",
          "life_limited",
          "hazmat_shipping_name",
          "un_number",
          "hazmat_class",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "customer_warranty_expires_on",
          "calibration_due_on",
          "calibration_state",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "warehouse",
          "bin",
          "held",
          "inspection_outcome",
          "currency_code",
          "customer_po_number",
          "urgency",
          "requested_ship_date",
          "stage",
          "answers_qc_checklist",
          "rejection_refusal",
          "unverification_refusal",
          "split_refusal",
          "migration_hold",
          "order_holds",
          "unmet_requirements",
          "sales_order_line",
          "tagged_by",
          "inventory_line",
          "inventory_code",
          "part",
          "ordered_part",
          "inspection",
          "picked_by",
          "verified_by",
          "owner_company",
          "release",
          "order",
          "company",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "release_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "position": {
            "type": "integer",
            "description": "Where the release lists it, from 1: in its order's line order, renumbered whenever lines join or leave the release; never written"
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`",
            "x-internal": true
          },
          "quantity": {
            "type": "number"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "customs_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the shipper declares one unit worth to customs, which the commercial invoice prints over the value its order line gives; null where none is stated, and always on a charge"
          },
          "printed_customs_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the commercial invoice prints as this unit's customs value: the stated value, else one derived from the order; null when none is known"
          },
          "sells_at_zero": {
            "type": "boolean"
          },
          "settles_at_sale": {
            "type": "boolean"
          },
          "charge_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_missing": {
            "type": "boolean",
            "description": "Whether it ships a unit of a serialized part with no serial yet, which refuses shipping until the serial is set"
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "inventory_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unit_costed",
              "cost_pool",
              "consignment",
              "custody",
              null
            ],
            "description": "`unit_costed`: Our own stock, each unit carrying its own cost; `cost_pool`: Parts from one lot or teardown, costed out of a shared pool as they sell; `consignment`: A consignor's parts we sell for them, owing them a share of each sale; `custody`: Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
            "x-enum-descriptions": [
              "Our own stock, each unit carrying its own cost",
              "Parts from one lot or teardown, costed out of a shared pool as they sell",
              "A consignor's parts we sell for them, owing them a share of each sale",
              "Units another company owns: a customer's in for repair, or a vendor's we lease. Never ours to sell, and no value on our books.",
              "Not set"
            ],
            "x-enum-labels": [
              "Unit-costed",
              "Cost pool",
              "Consignment",
              "Held for others",
              "Not set"
            ]
          },
          "custody_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repair",
              "lease",
              null
            ],
            "description": "Why a unit held for others is here: a customer's in for repair, or a vendor's we lease; null for one that isn't",
            "x-enum-descriptions": [
              "A customer's unit: held for others and not received on a lease purchase order line",
              "A vendor's unit, received on a lease purchase order line",
              "Not set"
            ],
            "x-enum-labels": [
              "Repair",
              "Lease",
              "Not set"
            ]
          },
          "shipped_part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "alternate_kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "alternate",
              "supersession",
              null
            ],
            "description": "`alternate`: Another part number for a part that does the same job; `supersession`: The part has a newer number: the alternate part supersedes it",
            "x-enum-descriptions": [
              "Another part number for a part that does the same job",
              "The part has a newer number: the alternate part supersedes it",
              "Not set"
            ],
            "x-enum-labels": [
              "Alternate",
              "Supersession",
              "Not set"
            ]
          },
          "alternate_interchangeability": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "two_way",
              "one_way",
              "none",
              null
            ],
            "description": "`two_way`: Either part can be used in place of the other; `one_way`: The newer or replacement part can be used in place of the other, never the reverse; `none`: Neither part is a substitute for the other",
            "x-enum-descriptions": [
              "Either part can be used in place of the other",
              "The newer or replacement part can be used in place of the other, never the reverse",
              "Neither part is a substitute for the other",
              "Not set"
            ],
            "x-enum-labels": [
              "Both ways",
              "One way",
              "Not interchangeable",
              "Not set"
            ]
          },
          "alternate_direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "replaces",
              "replaced_by",
              null
            ],
            "description": "`replaces`: The alternate part is the newer or replacement one; `replaced_by`: The part is the newer or replacement one",
            "x-enum-descriptions": [
              "The alternate part is the newer or replacement one",
              "The part is the newer or replacement one",
              "Not set"
            ],
            "x-enum-labels": [
              "Replaces",
              "Replaced by",
              "Not set"
            ]
          },
          "picked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "hazmat": {
            "type": "boolean"
          },
          "life_limited": {
            "type": "boolean"
          },
          "hazmat_shipping_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "un_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_class": {
            "type": [
              "string",
              "null"
            ]
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "When the unit's own warranty ends, as the unit carries it, never the warranty we give"
          },
          "customer_warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the warranty we give on the shipped unit ends: the business's shipping day plus the order line's `warranty_days`. Null before it ships and where the line states no term or none (0); never the unit's own warranty"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "overdue",
              "due_soon",
              "current",
              "uncalibrated",
              "not_required",
              null
            ],
            "description": "`overdue`: A tool whose calibration due date has come; `due_soon`: A tool due for calibration within 30 days; `current`: A tool calibrated and not due for more than 30 days; `uncalibrated`: A tool that requires calibration and has never had one; `not_required`: A tool whose part needs no calibration",
            "x-enum-descriptions": [
              "A tool whose calibration due date has come",
              "A tool due for calibration within 30 days",
              "A tool calibrated and not due for more than 30 days",
              "A tool that requires calibration and has never had one",
              "A tool whose part needs no calibration",
              "Not set"
            ],
            "x-enum-labels": [
              "Out of calibration",
              "Due within 30 days",
              "Current",
              "Never calibrated",
              "Calibration not required",
              "Not set"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ]
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ],
              "x-enum-descriptions": [
                "FAA Form 8130-3, the FAA's authorized release certificate",
                "EASA Form 1, the EU authorized release certificate",
                "UK CAA Form 1, the UK authorized release certificate",
                "TCCA Form One, Transport Canada's authorized release certificate",
                "CASA Form 1, Australia's authorized release certificate",
                "The CAAC's authorized release certificate (China)",
                "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
                "Another release document, named in the certificate number or notes"
              ],
              "x-enum-labels": [
                "FAA 8130-3",
                "EASA Form 1",
                "UK CAA Form 1",
                "TCCA Form One",
                "CASA Form 1",
                "CAAC Form AAC",
                "Certificate of Conformance",
                "Other"
              ]
            },
            "description": "Every release or certificate the shipped unit's tag carries; empty where it carries none"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ]
          },
          "bin": {
            "type": [
              "string",
              "null"
            ]
          },
          "held": {
            "type": "boolean"
          },
          "inspection_outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "in_progress",
              "passed",
              "failed",
              null
            ],
            "description": "Where its outbound QC inspection stands; null for a line that hasn't started one",
            "x-enum-descriptions": [
              "Started and not yet completed",
              "Completed with no failing item that blocks, and every failing item that warns waived",
              "Completed with a failing item that blocks",
              "Not set"
            ],
            "x-enum-labels": [
              "In progress",
              "Passed",
              "Failed",
              "Not set"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the release's"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's PO the order answers; null off a sales order"
          },
          "urgency": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ],
            "description": "The release's urgency",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG"
            ]
          },
          "requested_ship_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The release's requested ship date"
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "to_pick",
              "to_check",
              "to_ship",
              "shipped_today",
              null
            ],
            "description": "Where the part line stands on the floor, as `stage[]=` narrows; null on a charge, or on a release cancelled, or shipped before today",
            "x-enum-descriptions": [
              "A part line on an open release, not yet picked",
              "Picked, and waiting on its outbound QC checklist",
              "Picked and checked, or picked where no outbound QC checklist runs, on a release still open",
              "A part line on a release that shipped today",
              "Not set"
            ],
            "x-enum-labels": [
              "To pick",
              "To check",
              "To ship",
              "Shipped today",
              "Not set"
            ]
          },
          "answers_qc_checklist": {
            "type": "boolean",
            "description": "True when the line is checked by answering an outbound QC checklist; false when checking it only marks it verified, and on a charge"
          },
          "rejection_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the line can't be rejected now, in the words its `reject` verb refuses with; null while it can"
          },
          "unverification_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the line's QC can't be undone now, in the words its `unverify` verb refuses with; null while it can. The release's migration hold isn't among them: `migration_hold` carries it"
          },
          "split_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why `POST /releases/{uuid}/split` refuses to take the line off its release now, in the words it refuses with; null while it can"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system its release or the release's order came from holds the release, refusing every verb on it and its lines, `POST /releases/{uuid}/unpick` among them; null for one no outside system holds"
          },
          "order_holds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The holds standing on the sales order, each refusing its shipping until lifted"
          },
          "unmet_requirements": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "By name, the order's requirements before shipping that the release doesn't meet yet"
          },
          "sales_order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sales order line it ships; null on a purchase or repair order's release"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company that tagged the shipped unit, such as a repair station; null where none is picked"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part it ships; null on a charge"
          },
          "ordered_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inspection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InspectionStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its outbound QC inspection; null for a line that hasn't started one"
          },
          "picked_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "verified_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "release": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The release the line is on"
          },
          "order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order the release ships from"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The release's counterparty, by its company"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "reject",
                    "inspect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "inspect": "create_inspection"
            }
          }
        },
        "x-area": "warehouse",
        "x-role": "line"
      },
      "RepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_quote_number",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "estimated_total_cents",
          "contact_email_address",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "line_count",
          "releasable",
          "receivable",
          "partially_received",
          "awaiting_shipment",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "return_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "open_receipt",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "at_vendor",
              "received",
              "cancelled"
            ],
            "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
            "x-enum-descriptions": [
              "Being prepared; nothing has shipped to the repair shop",
              "Units have shipped to the repair shop",
              "Every unit has come back from the shop or been settled",
              "Called off; nothing more goes to the shop"
            ],
            "x-enum-labels": [
              "Draft",
              "Shipped to shop",
              "Received",
              "Cancelled"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "shipper",
              "recipient",
              "third_party",
              "collect",
              "on_invoice",
              null
            ],
            "description": "`shipper`: Prepaid: the shipper pays the carrier; `recipient`: Billed to the recipient's own carrier account; `third_party`: Billed to a third party's carrier account; `collect`: Collect: the recipient pays the carrier on delivery; `on_invoice`: Prepaid and added: the shipper pays and bills the freight on its invoice",
            "x-enum-descriptions": [
              "Prepaid: the shipper pays the carrier",
              "Billed to the recipient's own carrier account",
              "Billed to a third party's carrier account",
              "Collect: the recipient pays the carrier on delivery",
              "Prepaid and added: the shipper pays and bills the freight on its invoice",
              "Not set"
            ],
            "x-enum-labels": [
              "Shipper",
              "Recipient",
              "Third party",
              "Collect",
              "On invoice",
              "Not set"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "estimated_total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_approved": {
            "type": "boolean"
          },
          "vendor_approval_state": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "approved",
              "lapsing",
              "lapsed",
              "pending",
              "not_approved",
              null
            ],
            "description": "`approved`: Approved, and nothing it rests on runs out within 30 days; `lapsing`: Approved, but its end date or a certificate it rests on runs out within 30 days; `lapsed`: Approved, but its end date or a certificate it rests on has passed; `pending`: Not yet reviewed; counts as unapproved; `not_approved`: Reviewed and not approved to buy from",
            "x-enum-descriptions": [
              "Approved, and nothing it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on has passed",
              "Not yet reviewed; counts as unapproved",
              "Reviewed and not approved to buy from",
              "Not set"
            ],
            "x-enum-labels": [
              "Approved",
              "Lapsing",
              "Lapsed",
              "Pending",
              "Not approved",
              "Not set"
            ]
          },
          "vendor_approval_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the vendor's approval doesn't cover this repair order today, or a part or service on it"
          },
          "vendor_approval_lapses_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_approvable": {
            "type": "boolean",
            "description": "Whether approving the vendor would lift what stands in this order's way: it isn't approved, or its approval ran out on its end date with no certificate backing repair orders expired"
          },
          "line_count": {
            "type": "integer"
          },
          "releasable": {
            "type": "boolean",
            "description": "Has a unit allocated and not yet on a release to the shop"
          },
          "receivable": {
            "type": "boolean",
            "description": "At the vendor, with a unit out at the shop to receive back"
          },
          "partially_received": {
            "type": "boolean"
          },
          "awaiting_shipment": {
            "type": "boolean",
            "description": "Has a release to the shop generated and not yet shipped"
          },
          "unvouchered_receipts": {
            "type": "boolean"
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The email address of the person at the drop-ship destination, printed with its address; `drop_ship_address`'s `attn` names them"
          },
          "drop_ship_customer_mismatched": {
            "type": "boolean"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the order came from holds it, refusing every verb on it and its lines while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the order prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "return_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /repair_orders/{uuid}/email` would offer to send it to: the order's contact, else the contact's email address as typed on the order; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /repair_orders/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the repair order"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /repair_orders/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the repair order",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The repair order's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /repair_orders/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the repair order",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "repair_order",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the repair order sends, each attaching its own PDF (`repair_order` the Repair Order); `kind` names it to send it again. Null for a reply sent in the repair order's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt in progress for the units coming back from the shop, made when they arrive by Receiving's Receive or `POST /repair_orders/{uuid}/create_receipt`; units shipped later join it; null until one is open"
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_promise",
                    "release",
                    "create_receipt",
                    "voucher",
                    "issue",
                    "email",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "release": "create_release",
              "issue": "create_issued_part"
            }
          },
          "status_changes": {
            "type": "array",
            "description": "Every status the repair order entered, oldest first, a re-entry included. Present when `expand[]=status_changes` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "status",
                "time_tracking",
                "entered_at",
                "entered_by",
                "hours"
              ],
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "at_vendor",
                    "received",
                    "cancelled"
                  ]
                },
                "time_tracking": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "accountable",
                    "not_accountable",
                    null
                  ],
                  "description": "Whether the time from this change to the next counts toward turnaround, as its status's time tracking said when it was entered; null tracks none"
                },
                "entered_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "entered_by": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The member who moved it, null for the system"
                },
                "hours": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Hours from this change to the next, or to now for the status it is in, whatever its time tracking; `turnaround` sums them by this row's `time_tracking`. Null for a received or cancelled one, whose time has stopped"
                }
              }
            }
          },
          "turnaround": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "accountable_hours",
              "not_accountable_hours"
            ],
            "properties": {
              "accountable_hours": {
                "type": "number",
                "description": "Hours spent in statuses tracked as accountable"
              },
              "not_accountable_hours": {
                "type": "number",
                "description": "Hours spent in statuses tracked as not accountable"
              }
            },
            "description": "The hours the repair order has spent in accountable statuses beside those in not accountable ones, each stay counted with the time tracking its status had when entered, the status it is in counting until now. Present when `expand[]=turnaround` asked for it"
          },
          "progress": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "line_count",
              "estimating_line_count",
              "shipped_count",
              "estimated_count",
              "approved_count",
              "final_cost_count",
              "received_count",
              "open_release",
              "owed_by"
            ],
            "description": "How far its part lines have come through the shop, each count the lines at or past a stage as the lines' `stage` reads it, so a received or scrapped line has passed every step; charge lines count in none, and a teardown, which takes no estimate, only in shipped and received. Present when `expand[]=progress` asked for it",
            "properties": {
              "line_count": {
                "type": "integer",
                "description": "Its part lines, every line but a charge"
              },
              "estimating_line_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines that take the shop's estimate: every one but a teardown"
              },
              "shipped_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines shipped to the shop"
              },
              "estimated_count": {
                "type": "integer",
                "description": "Of `estimating_line_count`, the lines whose estimate is in"
              },
              "approved_count": {
                "type": "integer",
                "description": "Of `estimating_line_count`, the lines whose estimate is approved"
              },
              "final_cost_count": {
                "type": "integer",
                "description": "Of `estimating_line_count`, the lines whose final cost is in"
              },
              "received_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines with no unit left at the shop, each back, scrapped or torn down"
              },
              "open_release": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReleaseStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its first release to the shop still waiting to ship; null when none is"
              },
              "owed_by": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "record_estimate",
                  "approve_estimate",
                  "record_final_cost"
                ],
                "description": "For each estimate verb, the first part line in line order whose stage owes it, with why the line refuses it now; null where none does",
                "properties": {
                  "record_estimate": {
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "uuid",
                          "position",
                          "estimated_unit_cost_cents",
                          "refusal"
                        ],
                        "properties": {
                          "uuid": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "estimated_unit_cost_cents": {
                            "type": "integer",
                            "description": "The line's estimate, in the order's currency"
                          },
                          "refusal": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Why the line refuses the verb now, as its `actions` say; null when it may"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "approve_estimate": {
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "uuid",
                          "position",
                          "estimated_unit_cost_cents",
                          "refusal"
                        ],
                        "properties": {
                          "uuid": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "estimated_unit_cost_cents": {
                            "type": "integer",
                            "description": "The line's estimate, in the order's currency"
                          },
                          "refusal": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Why the line refuses the verb now, as its `actions` say; null when it may"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "record_final_cost": {
                    "oneOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "uuid",
                          "position",
                          "estimated_unit_cost_cents",
                          "refusal"
                        ],
                        "properties": {
                          "uuid": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "estimated_unit_cost_cents": {
                            "type": "integer",
                            "description": "The line's estimate, in the order's currency"
                          },
                          "refusal": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Why the line refuses the verb now, as its `actions` say; null when it may"
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /repair_orders/{uuid}/email` can send, each template filled from the repair order, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "repair_order"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the repair order sends, each attaching its own PDF (`repair_order` the Repair Order); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the repair order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "vendor_quote_number",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the repair order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "vendor_quote_number",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "vendor_quote_number",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "vendor_quote_number",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this repair order"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /repair_orders/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "requirements": {
            "$ref": "#/components/schemas/RepairOrderRequirementList",
            "description": "Present when `expand[]=requirements` asked for it: the first page, continued on `/repair_orders/{uuid}/requirements`"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "lines": {
            "$ref": "#/components/schemas/RepairOrderLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "repair",
        "x-role": "document"
      },
      "RepairOrderLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "purpose",
          "non_oem_allowance",
          "position",
          "expected_part_number_raw",
          "estimated_unit_cost_cents",
          "final_unit_cost_cents",
          "initial_estimated_unit_cost_cents",
          "estimate_received_on",
          "estimate_approved_on",
          "final_cost_received_on",
          "description",
          "part_description",
          "external_notes",
          "internal_notes",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_outstanding",
          "at_vendor",
          "settled",
          "teardown",
          "teardown_completed",
          "releasable",
          "supply_part_number",
          "quantity_available",
          "currency_code",
          "order_status",
          "promised_on",
          "claims",
          "allocations",
          "stage",
          "quantity_at_vendor",
          "owner_company",
          "for",
          "repair_order",
          "vendor",
          "charge",
          "repair_service",
          "expected_condition",
          "expected_part",
          "supply_part",
          "teardown_inventory_code",
          "teardown_manifest",
          "supply",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "purpose": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inventory",
              "customer_unit",
              "exchange_core",
              "calibration",
              "rejection",
              "teardown",
              "work_order_part",
              null
            ],
            "description": "`inventory`: Our own stock, sent out for repair; `customer_unit`: A customer's unit we hold, sent out on its repair sales order line; `exchange_core`: A core a customer returned on an exchange; `calibration`: A tool sent out to be calibrated; `rejection`: A unit quarantined on a rejection, sent out to resolve it; `teardown`: A unit converted into a cost pool, sent out to be taken apart; `work_order_part`: A part a work order took off the customer's unit, sent out for its material and coming back to it",
            "x-enum-descriptions": [
              "Our own stock, sent out for repair",
              "A customer's unit we hold, sent out on its repair sales order line",
              "A core a customer returned on an exchange",
              "A tool sent out to be calibrated",
              "A unit quarantined on a rejection, sent out to resolve it",
              "A unit converted into a cost pool, sent out to be taken apart",
              "A part a work order took off the customer's unit, sent out for its material and coming back to it",
              "Not set"
            ],
            "x-enum-labels": [
              "Inventory",
              "Customer unit",
              "Exchange core",
              "Calibration",
              "Rejection",
              "Teardown",
              "Work order part",
              "Not set"
            ]
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ],
            "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
            "x-enum-descriptions": [
              "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
              "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
              "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
              "PMA parts and DER repairs both allowed",
              "Not set"
            ],
            "x-enum-labels": [
              "OEM only",
              "PMA parts",
              "DER repairs",
              "PMA parts and DER repairs",
              "Not set"
            ]
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_unit_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "final_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "initial_estimated_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "estimate_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the shop's latest estimate came in"
          },
          "estimate_approved_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the estimate was approved, which puts the unit in repair"
          },
          "final_cost_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the shop's final cost came in"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the line's part; null where no part names the line"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "quantity": {
            "type": "number"
          },
          "quantity_allocated": {
            "type": "number"
          },
          "quantity_remaining": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "at_vendor": {
            "type": "boolean"
          },
          "settled": {
            "type": "boolean"
          },
          "teardown": {
            "type": "boolean"
          },
          "teardown_completed": {
            "type": "boolean"
          },
          "releasable": {
            "type": "boolean"
          },
          "supply_part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_available": {
            "type": "number",
            "x-internal": true
          },
          "currency_code": {
            "type": "string"
          },
          "order_status": {
            "type": "string",
            "enum": [
              "draft",
              "at_vendor",
              "received",
              "cancelled"
            ],
            "description": "`draft`: Being prepared; nothing has shipped to the repair shop; `at_vendor`: Units have shipped to the repair shop; `received`: Every unit has come back from the shop or been settled; `cancelled`: Called off; nothing more goes to the shop",
            "x-enum-descriptions": [
              "Being prepared; nothing has shipped to the repair shop",
              "Units have shipped to the repair shop",
              "Every unit has come back from the shop or been settled",
              "Called off; nothing more goes to the shop"
            ],
            "x-enum-labels": [
              "Draft",
              "Shipped to shop",
              "Received",
              "Cancelled"
            ]
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "claims": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "demand_order": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SalesOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderStub"
                    },
                    {
                      "$ref": "#/components/schemas/WorkOrderStub"
                    }
                  ],
                  "description": "The order whose demand claims the units"
                },
                "counterparty_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": "number"
                }
              },
              "required": [
                "uuid",
                "demand_order",
                "counterparty_name",
                "quantity"
              ],
              "additionalProperties": false
            },
            "description": "The orders that reserved the unit at repair: each order, its counterparty's name and how many"
          },
          "allocations": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string"
                },
                "supply": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/InventoryLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/PurchaseOrderLineStub"
                    },
                    {
                      "$ref": "#/components/schemas/RepairOrderLineStub"
                    }
                  ],
                  "description": "The unit or inbound line the allocation holds"
                },
                "quantity": {
                  "type": "number"
                },
                "staged": {
                  "type": "boolean"
                }
              },
              "required": [
                "uuid",
                "supply",
                "quantity",
                "staged"
              ]
            },
            "description": "Every unit the line holds now, staged on a release or not"
          },
          "stage": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "draft",
              "allocated",
              "at_vendor",
              "estimate_received",
              "in_repair",
              "ready_to_receive",
              "received",
              "scrapped",
              "torn_down",
              null
            ],
            "description": "`draft`: No unit reserved for the line yet; `allocated`: A unit is reserved and not yet shipped to the shop; `at_vendor`: The unit has shipped to the repair shop, which owes its estimate; `estimate_received`: The shop's estimate is in and waits on approval; `in_repair`: The estimate is approved and the shop is repairing the unit; `ready_to_receive`: The shop's final cost is in and the unit is due back; `received`: The unit has come back from the shop; `scrapped`: The unit was scrapped rather than repaired; `torn_down`: The unit was torn down for parts instead of repaired",
            "x-enum-descriptions": [
              "No unit reserved for the line yet",
              "A unit is reserved and not yet shipped to the shop",
              "The unit has shipped to the repair shop, which owes its estimate",
              "The shop's estimate is in and waits on approval",
              "The estimate is approved and the shop is repairing the unit",
              "The shop's final cost is in and the unit is due back",
              "The unit has come back from the shop",
              "The unit was scrapped rather than repaired",
              "The unit was torn down for parts instead of repaired",
              "Not set"
            ],
            "x-enum-labels": [
              "Draft",
              "Allocated",
              "Shipped to shop",
              "Estimate received",
              "In repair",
              "Ready to receive",
              "Received",
              "Scrapped",
              "Torn down",
              "Not set"
            ]
          },
          "quantity_at_vendor": {
            "type": "number",
            "description": "Units out at the shop now, whatever stage the line reports"
          },
          "owner_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company whose unit it is; null for our own"
          },
          "for": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sales order line, exchange, rejection or work order material the unit went out for"
          },
          "repair_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "expected_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part of the unit sent to the shop; null until a unit is attached."
          },
          "teardown_inventory_code": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "teardown_manifest": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "supply": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "record_estimate",
                    "approve_estimate",
                    "record_final_cost",
                    "scrap",
                    "complete_teardown"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "RepairOrderRequirement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order_requirement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "enum": [
              "vendor",
              "part",
              "condition",
              "every_order",
              "order",
              "sales_order"
            ],
            "description": "`vendor`, `part`, `condition` or `every_order` for a copy of a standing requirement, removed only with `settings:requirements`; `order` for one added on the order; `sales_order` for a customer's requirement copied from a sales order the order's lines are allocated to, or whose customer's unit it repairs, removed only with `sales:write`",
            "x-enum-descriptions": [
              "Copied from the vendor's standing requirements",
              "Copied from the standing requirements of the part some of the order's lines name; it holds those lines' units",
              "Copied from the standing requirements of the condition some of the order's lines expect back; it holds those lines' units",
              "Copied because the requirement stands on every repair order",
              "Added on the repair order itself",
              "Copied from a sales order some of the order's lines are allocated to, or whose customer's unit it repairs; it holds that part's units"
            ],
            "x-enum-labels": [
              "From the vendor",
              "From a part",
              "From a condition",
              "Every order",
              "Added on the order",
              "From a sales order"
            ]
          },
          "met": {
            "type": "boolean",
            "description": "Whether every unit received on the lines it holds meets it; a document on the order meets it before any arrives, a fact only once one has"
          },
          "state": {
            "type": "string",
            "enum": [
              "met",
              "waived",
              "not_met"
            ],
            "description": "`met`; `waived` for a warning someone waived, which stops counting once the requirement blocks; else `not_met`, which holds the units it covers under Awaiting documents, or Shelf life short when only their shelf life falls short",
            "x-enum-descriptions": [
              "Every unit received on the lines it holds satisfies it, or the document it asks for is on the order",
              "Someone waived it with a note while it only warns, so the units it holds can be released without it",
              "Not yet satisfied; a unit it holds arrives under Awaiting documents, or Shelf life short when only its shelf life falls short, and stays held until it is met or waived"
            ],
            "x-enum-labels": [
              "Met",
              "Waived",
              "Not met"
            ]
          },
          "told_vendor": {
            "type": "boolean",
            "description": "False for a sales order's copy added to an order at the vendor after its document was last downloaded, when that document doesn't already print that requirement for that part; else true"
          },
          "waived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "waiver_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "requirement": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Requirement"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole requirement when `expand[]=requirement` asked for it"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a sales order's copy, the sales order whose requirement it carries, whose waiver counts here too; else null"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a copy from a part's list or a sales order, the part whose lines' units it holds; else null"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "For a copy from a condition's list, the condition whose lines' units come back in it; else null"
          },
          "added_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "waived_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "waive",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "RepairOrderStage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "status",
          "time_tracking",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_order_stage"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "Its lifecycle status's name"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "at_vendor",
              "received",
              "cancelled"
            ],
            "description": "The lifecycle status it keeps the time tracking of, one per organization",
            "x-enum-descriptions": [
              "Being prepared; nothing has shipped to the repair shop",
              "Units have shipped to the repair shop",
              "Every unit has come back from the shop or been settled",
              "Called off; nothing more goes to the shop"
            ],
            "x-enum-labels": [
              "Draft",
              "Shipped to shop",
              "Received",
              "Cancelled"
            ]
          },
          "time_tracking": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accountable",
              "not_accountable",
              null
            ],
            "description": "Whether a repair order's time in it counts toward turnaround; null tracks none, as received and cancelled always do",
            "x-enum-descriptions": [
              "Time in this status counts toward the repair order's turnaround",
              "Time in this status is tracked but kept out of the turnaround",
              "Not set"
            ],
            "x-enum-labels": [
              "Accountable",
              "Not accountable",
              "Not set"
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "RepairServiceAnswer": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace_repair_service",
          "repair_service",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_service_answer"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace_repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "RepairService": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "default_condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_service"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "default_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "RepairServiceListing": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "marketplace",
          "repair_service",
          "marketplace_repair_service",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "repair_service_listing"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "marketplace": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "marketplace_repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Requirement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "step",
          "received_on",
          "kind",
          "fact",
          "minimum_shelf_life_percent",
          "enforcement",
          "every_order",
          "instructions",
          "inactive_at",
          "upload_category",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "requirement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "release",
              "ship",
              "receive"
            ],
            "description": "`release`: Before a release is generated from the sales order; `ship`: Before a release from the sales order ships; `receive`: Before a unit received on a purchase or repair order is released into inventory",
            "x-enum-descriptions": [
              "Before a release is generated from the sales order",
              "Before a release from the sales order ships",
              "Before a unit received on a purchase or repair order is released into inventory"
            ],
            "x-enum-labels": [
              "Release",
              "Ship",
              "Receive"
            ]
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ],
            "description": "Which orders' units a `receive` requirement checks; null for every other step",
            "x-enum-descriptions": [
              "Units received on a purchase order",
              "Units received back on a repair order",
              "Units received on a purchase order or a repair order",
              "Not set"
            ],
            "x-enum-labels": [
              "Purchase orders",
              "Repair orders",
              "Purchase and repair orders",
              "Not set"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "fact"
            ],
            "description": "`document`: An attachment of one upload category; `fact`: A fact the system checks on the order, its release or the unit received",
            "x-enum-descriptions": [
              "An attachment of one upload category",
              "A fact the system checks on the order, its release or the unit received"
            ],
            "x-enum-labels": [
              "Document",
              "Fact"
            ]
          },
          "fact": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "customer_po_number",
              "release_certificate",
              "dual_release",
              "shelf_life_left",
              "outbound_qc_passed",
              "picked",
              "placed",
              null
            ],
            "description": "What a fact requirement checks; null for a document requirement",
            "x-enum-descriptions": [
              "The sales order carries the customer's PO number",
              "Every part line on the release ships with, or the unit received arrives on, a release certificate, such as an 8130-3 or an EASA Form 1, never a certificate of conformance or another document: a release certificate tag type set on the unit, or a file in the FAA Form 8130-3 or EASA Form 1 category attached to it, its receipt line, its receipt or its order",
              "Every part line on the release ships with, or the unit received arrives on, a tag releasing it under both the FAA and EASA",
              "Every unit has at least the minimum percent of its part's shelf life left, counted to its expiry from the day it was received, or on a sales order from today; a part with no shelf life passes",
              "Every part line on the release has a completed outbound QC checklist that passed",
              "Every part line on the release has been picked",
              "Every unit received has a bin. A block refuses the receive until each has one; a warning shows in the receive dialog and lets it through.",
              "Not set"
            ],
            "x-enum-labels": [
              "Customer PO number",
              "Release certificate",
              "Dual release",
              "Minimum shelf life left",
              "Outbound QC passed",
              "Picked",
              "Placed",
              "Not set"
            ]
          },
          "minimum_shelf_life_percent": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The share of its part's shelf life, from 1 to 100, a unit must have left for a `shelf_life_left` fact; null for every other requirement"
          },
          "enforcement": {
            "type": "string",
            "enum": [
              "warn",
              "block"
            ],
            "description": "`warn`: Refuses the step until someone waives it; `block`: Refuses the step until it is met, with no waiver",
            "x-enum-descriptions": [
              "Refuses the step until someone waives it",
              "Refuses the step until it is met, with no waiver"
            ],
            "x-enum-labels": [
              "Warn",
              "Block"
            ]
          },
          "every_order": {
            "type": "boolean",
            "description": "Whether it stands on every order of its step's side without being listed anywhere: every sales order for `open`, `release` and `ship`; every purchase or repair order it is received on for `receive`"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "What to do to meet it, such as the customer's clause it comes from"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "upload_category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The upload category an attachment must be in to meet a document requirement; null for a fact requirement"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "RfqReadingLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "part_number",
          "alternate_part_numbers",
          "quantity",
          "conditions",
          "part_description",
          "need_by",
          "customer_comment",
          "services",
          "requested_types",
          "tag_types",
          "part",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "rfq_reading_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer",
            "description": "Where the line came in the request, from 1"
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "alternate_part_numbers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Part numbers the customer would take instead"
          },
          "quantity": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Null when no quantity is stated"
          },
          "conditions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The conditions asked for, in the customer's own words, one token each"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the customer needs the part delivered by"
          },
          "customer_comment": {
            "type": [
              "string",
              "null"
            ]
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The work a repair asks for on the customer's unit, in the request's own words (OH, Overhaul, Repair); empty for a part to buy"
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "outright",
                "exchange",
                "repair",
                "lease"
              ],
              "x-enum-descriptions": [
                "An outright sale: the unit changes hands for its price, with no core owed",
                "An exchange: a serviceable unit now, with a core unit owed back",
                "A repair of the customer's own unit",
                "Lent for a period: the same unit comes back, and the customer pays a rate per day, week or month, plus any hours and cycles over the allowance"
              ],
              "x-enum-labels": [
                "Outright",
                "Exchange",
                "Repair",
                "Lease"
              ]
            },
            "description": "How the request asks to be quoted, when it names a way (a repair, an exchange); empty when it names none"
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The release forms the part is asked to ship on, in the request's own words (8130-3, EASA Form 1); empty when it names none"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part `part_number` names; null where none is read or none matches it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "line"
      },
      "Role": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "seed",
          "grants",
          "standard",
          "member_count",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "role"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "seed": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "sales",
              "purchasing",
              "repairs",
              "warehouse",
              "inventory",
              "accounting",
              "catalog",
              "read_only",
              null
            ],
            "description": "The standard role the product seeded this as, or null for the account's own",
            "x-enum-descriptions": [
              "The standard Sales role: writes and manages quotes, sales orders, customer returns and sourcing requests",
              "The standard Purchasing role: writes and manages vendor RFQs, purchase orders and vendor returns",
              "The standard Repairs role: writes and manages repair orders and work orders",
              "The standard Warehouse role: writes and manages receiving, releases, rejections and manifests",
              "The standard Inventory role: writes and manages inventory codes and lines, allocations and cost pools",
              "The standard Accounting role: writes and manages invoices, vouchers, payments and statements",
              "The standard Catalog role: writes and manages parts and companies, and writes the reference rosters",
              "The standard Read only role: reads every record and writes none",
              "Not set"
            ],
            "x-enum-labels": [
              "Sales",
              "Purchasing",
              "Repairs",
              "Warehouse",
              "Inventory",
              "Accounting",
              "Catalog",
              "Read only",
              "Not set"
            ]
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ],
              "x-enum-descriptions": [
                "Customer quotes, sales orders, customer returns and exchanges, sourcing requests, vendor RFQs: create and edit, send, ship and receive (the everyday work)",
                "Customer quotes, sales orders, customer returns and exchanges, sourcing requests, vendor RFQs: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Vendor RFQs, vendor inventory, purchase orders, vendor returns and exchanges: create and edit, send, ship and receive (the everyday work)",
                "Vendor RFQs, vendor inventory, purchase orders, vendor returns and exchanges: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Repair orders and work orders: create and edit, send, ship and receive (the everyday work)",
                "Repair orders and work orders: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Receiving, releases (pick, verify, ship), rejections, manifests: create and edit, send, ship and receive (the everyday work)",
                "Receiving, releases (pick, verify, ship), rejections, manifests: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Inventory codes and lines, allocations, cost pools: create and edit, send, ship and receive (the everyday work)",
                "Inventory codes and lines, allocations, cost pools: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Invoices, vouchers, payments, accounting transactions, statements, exchange rates: create and edit, send, ship and receive (the everyday work)",
                "Invoices, vouchers, payments, accounting transactions, statements, exchange rates: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Parts, alternates, publications, companies, contacts, employees: create and edit, send, ship and receive (the everyday work)",
                "Parts, alternates, publications, companies, contacts, employees: close and reopen, cancel, void, trash, restore and delete (what ends or removes work)",
                "Reference rosters and the tenant's setup: create, edit and mark inactive the reference rosters (conditions, charges, payment terms, warehouses, marketplaces and the like), and set how conditions and units list on a marketplace and which conditions answer its RFQs",
                "Reference rosters and the tenant's setup: delete reference rosters, and change account settings, organizations and their addresses, templates, ledger defaults, QuickBooks, PrintNode and marketplace integrations, Smart Quoting and its triage rules, autoquote settings, Smart Listing and its marketplace catalogs, connected apps, bots, webhooks, external systems, members and roles",
                "Lift a credit, export or manual hold",
                "Adjust quantities and values, transfer and assign cost, write off",
                "Key in, correct and remove labor",
                "Set a vendor's approval status and a customer's credit limit and hold",
                "Approve a voucher",
                "Void payments; cancel and correct invoices and vouchers; repost and skip transactions",
                "Apply an import",
                "Migrate records in from the system that keeps them, with nothing sent as they arrive",
                "Create and edit requirements, and mark them inactive",
                "Create and edit inspection checklists, and mark them inactive",
                "Give your own views and dashboards to everyone, a team or a person, choose which of them opens first, and change or delete them while others see them",
                "Give, change or delete any view given to others, and choose which opens first",
                "Give, change or delete any dashboard given to others, and choose which opens first"
              ],
              "x-enum-labels": [
                "Sales: write",
                "Sales: manage",
                "Purchasing: write",
                "Purchasing: manage",
                "Repairs: write",
                "Repairs: manage",
                "Operations: write",
                "Operations: manage",
                "Inventory: write",
                "Inventory: manage",
                "Accounting: write",
                "Accounting: manage",
                "Catalog: write",
                "Catalog: manage",
                "Settings: write",
                "Settings: manage",
                "Release holds",
                "Adjust stock and cost",
                "Key in, correct and remove labor",
                "Approve vendors and credit",
                "Approve vouchers",
                "Void and correct",
                "Apply imports",
                "Migrate data",
                "Set requirements",
                "Set checklists",
                "Give views and dashboards to others",
                "Manage views given to others",
                "Manage dashboards given to others"
              ]
            },
            "description": "`sales:write`: Customer quotes, sales orders, customer returns and exchanges, sourcing requests, vendor RFQs: create and edit, send, ship and receive (the everyday work); `sales:manage`: Customer quotes, sales orders, customer returns and exchanges, sourcing requests, vendor RFQs: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `purchasing:write`: Vendor RFQs, vendor inventory, purchase orders, vendor returns and exchanges: create and edit, send, ship and receive (the everyday work); `purchasing:manage`: Vendor RFQs, vendor inventory, purchase orders, vendor returns and exchanges: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `repairs:write`: Repair orders and work orders: create and edit, send, ship and receive (the everyday work); `repairs:manage`: Repair orders and work orders: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `operations:write`: Receiving, releases (pick, verify, ship), rejections, manifests: create and edit, send, ship and receive (the everyday work); `operations:manage`: Receiving, releases (pick, verify, ship), rejections, manifests: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `inventory:write`: Inventory codes and lines, allocations, cost pools: create and edit, send, ship and receive (the everyday work); `inventory:manage`: Inventory codes and lines, allocations, cost pools: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `accounting:write`: Invoices, vouchers, payments, accounting transactions, statements, exchange rates: create and edit, send, ship and receive (the everyday work); `accounting:manage`: Invoices, vouchers, payments, accounting transactions, statements, exchange rates: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `catalog:write`: Parts, alternates, publications, companies, contacts, employees: create and edit, send, ship and receive (the everyday work); `catalog:manage`: Parts, alternates, publications, companies, contacts, employees: close and reopen, cancel, void, trash, restore and delete (what ends or removes work); `settings:write`: Reference rosters and the tenant's setup: create, edit and mark inactive the reference rosters (conditions, charges, payment terms, warehouses, marketplaces and the like), and set how conditions and units list on a marketplace and which conditions answer its RFQs; `settings:manage`: Reference rosters and the tenant's setup: delete reference rosters, and change account settings, organizations and their addresses, templates, ledger defaults, QuickBooks, PrintNode and marketplace integrations, Smart Quoting and its triage rules, autoquote settings, Smart Listing and its marketplace catalogs, connected apps, bots, webhooks, external systems, members and roles; `sales:release_hold`: Lift a credit, export or manual hold; `inventory:adjust`: Adjust quantities and values, transfer and assign cost, write off; `repairs:labor`: Key in, correct and remove labor; `catalog:approve`: Set a vendor's approval status and a customer's credit limit and hold; `accounting:approve`: Approve a voucher; `accounting:void`: Void payments; cancel and correct invoices and vouchers; repost and skip transactions; `data:import`: Apply an import; `data:migrate`: Migrate records in from the system that keeps them, with nothing sent as they arrive; `settings:requirements`: Create and edit requirements, and mark them inactive; `settings:checklists`: Create and edit inspection checklists, and mark them inactive; `settings:views`: Give your own views and dashboards to everyone, a team or a person, choose which of them opens first, and change or delete them while others see them; `settings:everyones_views`: Give, change or delete any view given to others, and choose which opens first; `settings:everyones_dashboards`: Give, change or delete any dashboard given to others, and choose which opens first"
          },
          "standard": {
            "type": "boolean",
            "description": "Whether a seeded role still holds the product's grants, following them release to release"
          },
          "member_count": {
            "type": "number",
            "description": "How many members hold the role"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "reset"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SalesOrder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "priority",
          "customer_po_number",
          "currency_code",
          "billing_party",
          "auto_charge_credit_card_fee",
          "auto_charge_wire_transfer_fee",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "paid_cents",
          "awaiting_prepayment",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "fulfillment_status",
          "billing_status",
          "on_hold",
          "contact_email_address",
          "repeated_po_orders",
          "earliest_open_promise_on",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "customer",
          "drop_ship_company",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "tax_destination",
          "customer_quote",
          "organization",
          "open_receipt",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "cancelled"
            ],
            "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
            "x-enum-descriptions": [
              "Being shipped and billed, from the moment it is created",
              "Finished: shipped and billed, or closed early by hand",
              "Called off; nothing more ships or bills"
            ],
            "x-enum-labels": [
              "Open",
              "Closed",
              "Cancelled"
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG"
            ]
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "shipper",
              "recipient",
              "third_party",
              "collect",
              "on_invoice",
              null
            ],
            "description": "`shipper`: Prepaid: the shipper pays the carrier; `recipient`: Billed to the recipient's own carrier account; `third_party`: Billed to a third party's carrier account; `collect`: Collect: the recipient pays the carrier on delivery; `on_invoice`: Prepaid and added: the shipper pays and bills the freight on its invoice",
            "x-enum-descriptions": [
              "Prepaid: the shipper pays the carrier",
              "Billed to the recipient's own carrier account",
              "Billed to a third party's carrier account",
              "Collect: the recipient pays the carrier on delivery",
              "Prepaid and added: the shipper pays and bills the freight on its invoice",
              "Not set"
            ],
            "x-enum-labels": [
              "Shipper",
              "Recipient",
              "Third party",
              "Collect",
              "On invoice",
              "Not set"
            ]
          },
          "auto_charge_credit_card_fee": {
            "type": "boolean"
          },
          "auto_charge_wire_transfer_fee": {
            "type": "boolean"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "integer"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "grand_total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "paid_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` the customer has paid toward the order: payments applied to its invoices, and what waits unapplied on the order"
          },
          "awaiting_prepayment": {
            "type": "boolean",
            "description": "Whether the order's payment term wants payment before it ships and what is paid toward it is short of its grand total"
          },
          "tax_applies": {
            "type": "boolean"
          },
          "tax_destination_source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "ship_to",
              "address",
              "customer",
              null
            ],
            "description": "`ship_to`: Picked on the ship-to address; `address`: Matched by the ship-to address's country and state; `customer`: The customer's, since the ship-to names and matches none",
            "x-enum-descriptions": [
              "Picked on the ship-to address",
              "Matched by the ship-to address's country and state",
              "The customer's, since the ship-to names and matches none",
              "Not set"
            ],
            "x-enum-labels": [
              "Ship to",
              "Address",
              "Customer",
              "Not set"
            ]
          },
          "tax_suppressed": {
            "type": "boolean"
          },
          "tax_exemption": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "reason": {
                "type": "string"
              },
              "statement": {
                "type": "string"
              },
              "expired": {
                "type": "boolean"
              }
            },
            "required": [
              "reason",
              "statement",
              "expired"
            ],
            "additionalProperties": false
          },
          "fulfillment_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unshipped",
              "partially_shipped",
              "shipped",
              null
            ],
            "description": "`unshipped`: None of the ordered parts have shipped; `partially_shipped`: Some ordered parts have shipped and some remain; `shipped`: Every ordered part has shipped",
            "x-enum-descriptions": [
              "None of the ordered parts have shipped",
              "Some ordered parts have shipped and some remain",
              "Every ordered part has shipped",
              "Not set"
            ],
            "x-enum-labels": [
              "Unshipped",
              "Partially shipped",
              "Shipped",
              "Not set"
            ]
          },
          "billing_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unbilled",
              "partially_billed",
              "billed",
              null
            ],
            "description": "`unbilled`: None of the shipped parts are on a sent invoice; `partially_billed`: Some shipped parts are on a sent invoice and some are not; `billed`: Every shipped part is on a sent invoice",
            "x-enum-descriptions": [
              "None of the shipped parts are on a sent invoice",
              "Some shipped parts are on a sent invoice and some are not",
              "Every shipped part is on a sent invoice",
              "Not set"
            ],
            "x-enum-labels": [
              "Unbilled",
              "Partially billed",
              "Billed",
              "Not set"
            ]
          },
          "on_hold": {
            "type": "boolean"
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "repeated_po_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderStub"
            },
            "description": "The customer's other live orders on this customer PO; a second order on one PO is usually a double entry"
          },
          "earliest_open_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The soonest date promised on a part line that hasn't fully shipped"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the order came from holds it, refusing every verb on it and its lines but a copy while that system is the system of record; null for one no outside system holds"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the order prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship": {
            "type": "boolean",
            "description": "Whether the parts ship straight from the vendor to `drop_ship_company` at `drop_ship_address`, on every purchase and repair order cut from this one; switched on with no destination, the customer at the ship-to is named"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The email address of the person at the drop-ship destination, printed with its address; `drop_ship_address`'s `attn` names them"
          },
          "drop_ship_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /sales_orders/{uuid}/email` would offer to send it to: the order's contact, else the contact's email address as typed on the order; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /sales_orders/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the sales order"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /sales_orders/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the sales order",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The sales order's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /sales_orders/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the sales order",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "customer_order_acknowledgement",
                  "proforma_invoice",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the sales order sends, each attaching its own PDF (`customer_order_acknowledgement` the Order Acknowledgement, `proforma_invoice` the Proforma Invoice); `kind` names it to send it again. Null for a reply sent in the sales order's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "salesperson": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "tax_destination": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt the customer's units sent for repair are coming in on, which `POST /sales_orders/{uuid}/create_receipt` opens; null until one is open"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_lines",
                    "hold",
                    "release",
                    "record_payment",
                    "cancel",
                    "close",
                    "suppress_tax",
                    "apply_tax",
                    "create_receipt",
                    "return",
                    "email",
                    "copy",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "hold": "create_sales_order_hold",
              "release": "create_release",
              "record_payment": "create_customer_payment"
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /sales_orders/{uuid}/email` can send, each template filled from the sales order, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "customer_order_acknowledgement",
                    "proforma_invoice"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the sales order sends, each attaching its own PDF (`customer_order_acknowledgement` the Order Acknowledgement, `proforma_invoice` the Proforma Invoice); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the sales order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "customer_po_number",
                                            "total",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the sales order, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "customer_po_number",
                                                "total",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "customer_po_number",
                                                            "total",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "customer_po_number",
                          "total",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this sales order"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /sales_orders/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "fulfillment_rollup": {
            "type": "object",
            "description": "Units across the order's part lines: ordered, reserved from inventory, claimed on inbound orders, staged on a release, shipped, and what is ready to release. Present when `expand[]=fulfillment_rollup` asked for it",
            "additionalProperties": false,
            "properties": {
              "ordered": {
                "type": "number"
              },
              "on_order": {
                "type": "number"
              },
              "allocated": {
                "type": "number"
              },
              "released": {
                "type": "number"
              },
              "shipped": {
                "type": "number"
              },
              "releasable": {
                "type": "number"
              },
              "releasable_charges": {
                "type": "integer"
              }
            },
            "required": [
              "ordered",
              "on_order",
              "allocated",
              "released",
              "shipped",
              "releasable",
              "releasable_charges"
            ]
          },
          "overview_counts": {
            "type": "object",
            "description": "What hangs off the order: its releases, returns and invoices (drafts among them), the cores its exchanges still owe, and the customer units its repair lines still await. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "cores_owed": {
                "type": "number"
              },
              "units_awaiting": {
                "type": "number"
              },
              "releases": {
                "type": "integer"
              },
              "returns": {
                "type": "integer"
              },
              "invoices": {
                "type": "integer"
              },
              "draft_invoices": {
                "type": "integer"
              }
            },
            "required": [
              "cores_owed",
              "units_awaiting",
              "releases",
              "returns",
              "invoices",
              "draft_invoices"
            ]
          },
          "billing_rollup": {
            "type": "object",
            "description": "Sent invoices and credit memos, converted to the account's currency; null where a rate to convert one is missing. Present when `expand[]=billing_rollup` asked for it",
            "additionalProperties": false,
            "properties": {
              "home_billed_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of `home_currency_code`, the account's currency"
              },
              "home_credited_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of `home_currency_code`, the account's currency"
              },
              "home_net_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of `home_currency_code`, the account's currency"
              }
            },
            "required": [
              "home_billed_cents",
              "home_credited_cents",
              "home_net_cents"
            ]
          },
          "progress": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "line_count",
              "billable_line_count",
              "allocated_count",
              "released_count",
              "shipped_count",
              "invoiced_count",
              "open_release",
              "unbilled_release",
              "draft_invoice",
              "owed_allocation"
            ],
            "description": "How far its part lines have come from allocation to invoicing, each count the lines at or past a step, so a shipped line was allocated and released; charge lines count in none. Present when `expand[]=progress` asked for it",
            "properties": {
              "line_count": {
                "type": "integer",
                "description": "Its part lines that name a part: every line a release can ship"
              },
              "billable_line_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines an invoice bills: every one but a lease, which bills by the period"
              },
              "allocated_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines whose whole quantity is allocated, from inventory or an inbound order, or shipped"
              },
              "released_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines whose whole quantity is on a release not cancelled, shipped or not"
              },
              "shipped_count": {
                "type": "integer",
                "description": "Of `line_count`, the lines whose whole quantity has shipped"
              },
              "invoiced_count": {
                "type": "integer",
                "description": "Of `billable_line_count`, the lines whose whole quantity is on sent invoices"
              },
              "open_release": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReleaseStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its first release still waiting to ship; null when none is"
              },
              "unbilled_release": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReleaseStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its first shipped release no live invoice bills, which `POST /releases/{uuid}/invoice` can; null when none is"
              },
              "draft_invoice": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/InvoiceStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Its first invoice not yet sent; null when none is"
              },
              "owed_allocation": {
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "uuid",
                      "position",
                      "refusal"
                    ],
                    "properties": {
                      "uuid": {
                        "type": "string",
                        "format": "uuid"
                      },
                      "position": {
                        "type": "integer"
                      },
                      "refusal": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Why the line refuses `allocate` now, as its `actions` say; null when it may"
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The first part line in line order not wholly allocated, with why it refuses `allocate` now; null when none is, or none takes it"
              }
            }
          },
          "returnable_release_lines": {
            "type": "array",
            "description": "The shipped release lines the customer can still send back, in line order, each with what a return can take of it: the `release_line_uuid` and `sales_order_line_uuid` `POST /sales_orders/{uuid}/return` takes. Present when `expand[]=returnable_release_lines` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "release_line",
                "sales_order_line",
                "release",
                "inventory_line",
                "line_position",
                "part_number",
                "part",
                "serial_number",
                "condition_code",
                "quantity_shipped",
                "quantity_returned",
                "quantity_returnable"
              ],
              "properties": {
                "release_line": {
                  "$ref": "#/components/schemas/ReleaseLineStub"
                },
                "sales_order_line": {
                  "$ref": "#/components/schemas/SalesOrderLineStub"
                },
                "release": {
                  "$ref": "#/components/schemas/ReleaseStub"
                },
                "inventory_line": {
                  "$ref": "#/components/schemas/InventoryLineStub"
                },
                "line_position": {
                  "type": "integer"
                },
                "part_number": {
                  "type": "string",
                  "description": "The part of the unit that shipped"
                },
                "part": {
                  "$ref": "#/components/schemas/PartStub",
                  "description": "The part of the unit that shipped"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_code": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_shipped": {
                  "type": "number"
                },
                "quantity_returned": {
                  "type": "number",
                  "description": "What returns already took back of it, a return naming no shipment included"
                },
                "quantity_returnable": {
                  "type": "number",
                  "description": "What a return can still take of it, capped by what its order line can take"
                }
              }
            }
          },
          "unlinked_part_numbers": {
            "type": "array",
            "description": "The part numbers typed on the order's lines that no catalog part names yet, one row per number however it was typed, with the lines typing it and the part already holding it: `matches` a part to link to, `inactive` a retired one, `new` none, `unusable` a number with no letter or digit. `POST /sales_orders/{uuid}/resolve_part_numbers` links them. Present when `expand[]=unlinked_part_numbers` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "part_number_raw",
                "description",
                "lines",
                "part",
                "status"
              ],
              "properties": {
                "part_number_raw": {
                  "type": "string",
                  "description": "The number as the first line typing it typed it"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first description one of those lines carries"
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CustomerQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/CustomerRfqLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/InvoiceLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/SalesOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorRfqLineStub"
                      }
                    ]
                  }
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part already holding the number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "matches",
                    "inactive",
                    "new",
                    "unusable"
                  ]
                }
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/SalesOrderLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page, continued on `/sales_orders/{uuid}/lines`"
          },
          "holds": {
            "$ref": "#/components/schemas/SalesOrderHoldList",
            "description": "Present when `expand[]=holds` asked for it: the first page, continued on `/sales_orders/{uuid}/holds`"
          },
          "requirements": {
            "$ref": "#/components/schemas/SalesOrderRequirementList",
            "description": "Present when `expand[]=requirements` asked for it: the first page, continued on `/sales_orders/{uuid}/requirements`"
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "SalesOrderHold": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order_hold"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "credit",
              "export",
              "manual"
            ],
            "description": "`credit`: The customer's account is on stop; nothing ships until it clears; `export`: Compliance review pending; neither the goods nor the invoice leave; `manual`: Any other reason to stop shipping, said in the note",
            "x-enum-descriptions": [
              "The customer's account is on stop; nothing ships until it clears",
              "Compliance review pending; neither the goods nor the invoice leave",
              "Any other reason to stop shipping, said in the note"
            ],
            "x-enum-labels": [
              "Credit",
              "Export",
              "Manual"
            ]
          },
          "label": {
            "type": "string"
          },
          "placed_by_hand": {
            "type": "boolean",
            "description": "False when the customer's credit_hold flag placed it; the flag lifts only those"
          },
          "lifted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "placed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lifted_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "lift"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "SalesOrderLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "external_notes",
          "internal_notes",
          "customer_reference",
          "customer_reference_line",
          "staged",
          "shipped",
          "quantity_shipped",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_returnable",
          "part_quantity_available",
          "priority",
          "warranty_days",
          "source_fields",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "currency_code",
          "order_status",
          "quoted_serial_number",
          "need_by",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "period_starts_on",
          "period_ends_on",
          "sales_order",
          "customer",
          "part",
          "charge",
          "condition",
          "purchase_order_line",
          "purchase_order",
          "customer_quote_line",
          "customer_quote",
          "combined_tax_rate",
          "billed_lease",
          "sourcing_request",
          "tax_origins",
          "exchange",
          "lease",
          "repair",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the line's part; null where no part names the line"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`",
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's own reference for the line, such as the PO it is ordered on"
          },
          "customer_reference_line": {
            "type": [
              "string",
              "null"
            ],
            "description": "The line of the customer's own reference this line answers"
          },
          "staged": {
            "type": "boolean"
          },
          "shipped": {
            "type": "boolean"
          },
          "quantity_shipped": {
            "type": "number"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_allocated": {
            "type": "number"
          },
          "quantity_remaining": {
            "type": "number"
          },
          "quantity_returnable": {
            "type": "number"
          },
          "part_quantity_available": {
            "type": [
              "number",
              "null"
            ],
            "description": "What of the line's part is on hand and not reserved, across every inventory; null where no part names the line",
            "x-internal": true
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The warranty we give on the line, in days from shipment: null states no term, and 0 is none (as is). Never the unit's own warranty, and refused on a charge line"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "tax_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "tax_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "taxes": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": "string"
                },
                "taxable_cents": {
                  "type": "number"
                },
                "tax_cents": {
                  "type": "number"
                }
              },
              "required": [
                "name",
                "percentage",
                "taxable_cents",
                "tax_cents"
              ]
            }
          },
          "currency_code": {
            "type": "string"
          },
          "order_status": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "cancelled"
            ],
            "description": "`open`: Being shipped and billed, from the moment it is created; `closed`: Finished: shipped and billed, or closed early by hand; `cancelled`: Called off; nothing more ships or bills",
            "x-enum-descriptions": [
              "Being shipped and billed, from the moment it is created",
              "Finished: shipped and billed, or closed early by hand",
              "Called off; nothing more ships or bills"
            ],
            "x-enum-labels": [
              "Open",
              "Closed",
              "Cancelled"
            ]
          },
          "quoted_serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "period_starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The first day a lease's period bill covers; null on any other line"
          },
          "period_ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day a lease's period bill covers"
          },
          "sales_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase_order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "customer_quote_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "combined_tax_rate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "billed_lease": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer lease this charge bills: one of its periods, its outright sale, or an extra charge billed on it"
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "tax_origins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "type",
              "core_charge_cents",
              "core_due_days",
              "expected_core_part_number",
              "expected_core_part_description",
              "expected_core_serial",
              "core_disposition",
              "return_disposition",
              "core_repair_nte_cents",
              "expected_core_condition",
              "expected_core_part",
              "customer_exchange"
            ],
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of the sales order's `currency_code`"
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_part_description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "core_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "overhaul",
                  "serviceable",
                  "as_is",
                  null
                ],
                "description": "`overhaul`: The returned core is to be overhauled; `serviceable`: The returned core is to be repaired to serviceable; `as_is`: The returned core is taken as-is, with no shop work planned",
                "x-enum-descriptions": [
                  "The returned core is to be overhauled",
                  "The returned core is to be repaired to serviceable",
                  "The returned core is taken as-is, with no shop work planned",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Overhaul",
                  "Repair to serviceable",
                  "Receive as-is",
                  "Not set"
                ]
              },
              "return_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "return_to_inventory",
                  "return_to_exchange_vendor",
                  null
                ],
                "description": "`return_to_inventory`: Once received, the core goes into our own inventory; `return_to_exchange_vendor`: Once received, the core goes back to the vendor who supplied the exchange unit",
                "x-enum-descriptions": [
                  "Once received, the core goes into our own inventory",
                  "Once received, the core goes back to the vendor who supplied the exchange unit",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Return to inventory",
                  "Return to exchange vendor",
                  "Not set"
                ]
              },
              "core_repair_nte_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Minor units of the sales order's `currency_code`"
              },
              "expected_core_condition": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected_core_part": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PartStub"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The catalog part `expected_core_part_number` names; null where none is typed or none matches it"
              },
              "customer_exchange": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CustomerExchangeStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "rate_unit",
              "minimum_days",
              "included_hours",
              "included_cycles",
              "hour_fee_cents",
              "cycle_fee_cents",
              "outright_price_cents",
              "due_days"
            ],
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ],
                "description": "The period `unit_price_cents` is the rate for, and the allowance and fees below are counted over",
                "x-enum-descriptions": [
                  "The rate is per day, and any allowance of hours and cycles is per day",
                  "The rate is per week, and any allowance of hours and cycles is per week",
                  "The rate is per month, and any allowance of hours and cycles is per month",
                  "Not set"
                ],
                "x-enum-labels": [
                  "Day",
                  "Week",
                  "Month",
                  "Not set"
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The fewest days the lease bills for"
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The hours each period's rate includes"
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The cycles each period's rate includes"
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each hour over the allowance"
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Charged for each cycle over the allowance"
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "What the unit sells for if it doesn't come back"
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "How many days after it ships the unit is due back"
              }
            }
          },
          "repair": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "non_oem_allowance",
              "expected_unit_serial",
              "service_unlisted",
              "custody_status",
              "custody_outstanding",
              "actions",
              "service",
              "expected_unit_condition",
              "custody_inventory_line",
              "repair_order",
              "staged_return"
            ],
            "properties": {
              "non_oem_allowance": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "oem",
                  "pma",
                  "der",
                  "pma_der",
                  null
                ],
                "description": "`oem`: OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs; `pma`: PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval; `der`: DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved; `pma_der`: PMA parts and DER repairs both allowed",
                "x-enum-descriptions": [
                  "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
                  "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
                  "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
                  "PMA parts and DER repairs both allowed",
                  "Not set"
                ],
                "x-enum-labels": [
                  "OEM only",
                  "PMA parts",
                  "DER repairs",
                  "PMA parts and DER repairs",
                  "Not set"
                ]
              },
              "expected_unit_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "service_unlisted": {
                "type": "boolean",
                "description": "Whether the line's part lists no repair capability for the service the line asks for"
              },
              "custody_status": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "in_custody",
                  "at_repair",
                  "repaired",
                  "returned",
                  "scrapped",
                  "cancelled",
                  null
                ],
                "description": "`in_custody`: Not sent out yet: the customer's unit is due in or held with us; `at_repair`: The customer's unit is at the repair shop; `repaired`: Back from the repair shop and not yet shipped to the customer; `returned`: The unit has shipped back to the customer, repaired or unrepaired; `scrapped`: The customer's unit was scrapped at the repair shop; `cancelled`: The repair was called off",
                "x-enum-descriptions": [
                  "Not sent out yet: the customer's unit is due in or held with us",
                  "The customer's unit is at the repair shop",
                  "Back from the repair shop and not yet shipped to the customer",
                  "The unit has shipped back to the customer, repaired or unrepaired",
                  "The customer's unit was scrapped at the repair shop",
                  "The repair was called off",
                  "Not set"
                ],
                "x-enum-labels": [
                  "In custody",
                  "At repair",
                  "Repaired",
                  "Returned",
                  "Scrapped",
                  "Cancelled",
                  "Not set"
                ]
              },
              "custody_outstanding": {
                "type": "number"
              },
              "actions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "verb",
                    "allowed",
                    "reason"
                  ],
                  "properties": {
                    "verb": {
                      "type": "string",
                      "enum": [
                        "add_to_repair_order",
                        "return_to_customer"
                      ]
                    },
                    "allowed": {
                      "type": "boolean"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "description": "The verbs the customer's unit offers now it is in our hands, each allowed or refused with why; empty until it is"
              },
              "service": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Stub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected_unit_condition": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CodedStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "custody_inventory_line": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/InventoryLineStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "repair_order": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/RepairOrderStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "staged_return": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ReleaseStub"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "split",
                    "allocate",
                    "order",
                    "ask",
                    "add_to_repair_order",
                    "return_to_customer"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "purchases_held": {
            "type": "object",
            "description": "Purchase order lines of the line's part that `/purchase_order_lines?allocatable_to[]` doesn't offer it, counted by why: received into inventory, fully claimed, on consignment, leased from the vendor, on a closed or cancelled order, or on an order AvSight holds while it is the system of record. Present when `expand[]=purchases_held` asked for it",
            "additionalProperties": false,
            "properties": {
              "received": {
                "type": "integer"
              },
              "claimed": {
                "type": "integer"
              },
              "consignment": {
                "type": "integer"
              },
              "lease": {
                "type": "integer"
              },
              "closed": {
                "type": "integer"
              },
              "migrating": {
                "type": "integer"
              }
            },
            "required": [
              "received",
              "claimed",
              "consignment",
              "lease",
              "closed",
              "migrating"
            ]
          },
          "repairs_held": {
            "type": "object",
            "description": "Repair order lines of the line's part, with units out at a vendor, that `/repair_order_lines?allocatable_to[]` doesn't offer it, counted by why: on an order AvSight holds while it is the system of record. Present when `expand[]=repairs_held` asked for it",
            "additionalProperties": false,
            "properties": {
              "migrating": {
                "type": "integer"
              }
            },
            "required": [
              "migrating"
            ]
          },
          "allocations": {
            "$ref": "#/components/schemas/AllocationList",
            "description": "Present when `expand[]=allocations` asked for it: the first page, continued on `/allocations?demand[]={uuid}&status[]=live&status[]=staged`"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "SalesOrderRequirement": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "waived_at",
          "waiver_note",
          "requirement",
          "purchase_orders",
          "repair_orders",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sales_order_requirement"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "source": {
            "type": "string",
            "enum": [
              "customer",
              "every_order",
              "order"
            ],
            "description": "`customer` or `every_order` for a copy of a standing requirement, removed only with `settings:requirements`; `order` for one added on the order",
            "x-enum-descriptions": [
              "Copied from the customer's standing requirements",
              "Copied because the requirement stands on every sales order",
              "Added on the sales order itself"
            ],
            "x-enum-labels": [
              "From the customer",
              "Every order",
              "Added on the order"
            ]
          },
          "met": {
            "type": "boolean",
            "description": "Whether the order meets it now; a document counts on the order, or on every unit it holds (the unit, its receipt or the order it was bought on), and one attached only to a release counts on that release, not here"
          },
          "state": {
            "type": "string",
            "enum": [
              "met",
              "waived",
              "not_met"
            ],
            "description": "`met`; `waived` for a warning someone waived, which stops counting once the requirement blocks; else `not_met`",
            "x-enum-descriptions": [
              "The order or release satisfies the requirement",
              "Someone waived it with a note while it only warns, so its step goes ahead",
              "Not yet satisfied; its step is refused until it is met or waived"
            ],
            "x-enum-labels": [
              "Met",
              "Waived",
              "Not met"
            ]
          },
          "waived_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "waiver_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "requirement": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Requirement"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole requirement when `expand[]=requirement` asked for it"
          },
          "purchase_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderStub"
            },
            "description": "The purchase orders sourcing the sale that carry a copy of it, each holding the units it brings in for the sale's part"
          },
          "repair_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairOrderStub"
            },
            "description": "The repair orders sourcing the sale, or repairing the customer's own unit, that carry a copy of it"
          },
          "added_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "waived_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "waive",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "SalesforceIntegration": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "connected",
          "instance_url",
          "client_id",
          "org_id",
          "org_name",
          "org_edition",
          "sandbox",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "sign_in_refusal",
          "run_as_name",
          "run_as_username",
          "run_as_profile_name",
          "checking",
          "check_step",
          "check_refusal",
          "last_pulled_at",
          "streams_stopped_short_count",
          "pull_interval_minutes",
          "pull_interval_reason",
          "pull_interval_override_minutes",
          "api_calls_in_last_day",
          "api_budget",
          "api_budget_override",
          "api_budget_default",
          "api_budget_default_rule",
          "org_api_requests_used",
          "org_api_requests_max",
          "org_api_read_at",
          "org_api_ceiling",
          "org_api_ceiling_percent",
          "api_pause",
          "external_system",
          "avsight"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "salesforce_integration"
          },
          "uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The integration's, as its events name it"
          },
          "connected": {
            "type": "boolean"
          },
          "instance_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "The org's My Domain address (https://acme.my.salesforce.com), kept after a disconnect as history"
          },
          "client_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The External Client App's consumer key; `client_secret`, its consumer secret, is accepted on connect and never returned"
          },
          "org_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Salesforce's Id for the org it reached, kept after a disconnect as history"
          },
          "org_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "org_edition": {
            "type": [
              "string",
              "null"
            ],
            "description": "The org's Salesforce edition (Enterprise Edition, Developer Edition)"
          },
          "sandbox": {
            "type": "boolean",
            "description": "Whether the org is a Salesforce sandbox rather than production; meaningful only once an org has been reached"
          },
          "connected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "disconnected_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "signed_out_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When Salesforce refused a scheduled pull's sign-in for good and ended the connection, for as long as it stays disconnected; null after a disconnect someone asked for"
          },
          "sign_in_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "What Salesforce refused when it signed the integration out, and the step that fixes it, in words; null unless signed out"
          },
          "run_as_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The full name of the Run As user the External Client App acts as, as Setup's Users list shows it, read at connect and `test`; null before either has, or when Salesforce won't describe the user"
          },
          "run_as_username": {
            "type": [
              "string",
              "null"
            ],
            "description": "That user's Salesforce username, read as `run_as_name` is"
          },
          "run_as_profile_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of that user's Profile, read as `run_as_name` is"
          },
          "checking": {
            "type": "boolean",
            "description": "Whether the check connect and `test` ask for has yet to finish: it reads the org's installed packages and checks each object and field they read against the org, and no pull runs until it passes. A client waiting on it reads again until this is false"
          },
          "check_step": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "packages",
              "fields",
              null
            ],
            "description": "What the check under way is doing; null while it waits its turn, and once it has finished",
            "x-enum-descriptions": [
              "Reading the org's installed packages",
              "Checking each object and field the packages read against the org",
              "Not set"
            ],
            "x-enum-labels": [
              "Packages",
              "Fields",
              "Not set"
            ]
          },
          "check_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last finished check stops every pull, in words: what Salesforce refused, or what a package lacks that its pull can't do without. The schedule checks again once a pull would be due; null once a check passes"
          },
          "last_pulled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When a pull last read one of the org's streams to its end; null before any has"
          },
          "streams_stopped_short_count": {
            "type": "integer",
            "description": "How many of the streams a pull reads stopped short on their last pull, each saying why in its `last_pull_error`"
          },
          "pull_interval_minutes": {
            "type": "integer",
            "description": "How often, in minutes, the schedule pulls the org now, for `pull_interval_reason`; a pull still running when the next is due lets it pass, and on the day AvSight's initial load is set to finish, or once someone asks to finish it, the org is pulled once more too"
          },
          "pull_interval_reason": {
            "type": "string",
            "enum": [
              "initial_load",
              "default",
              "override"
            ],
            "description": "Why the interval is what it is: `initial_load`, once a day until AvSight's migration finishes its initial load; `override`, the interval CorePilot support set; `default`, hourly",
            "x-enum-descriptions": [
              "Once a day, until a package's migration finishes its initial load",
              "Hourly, the interval after the initial load or with none to finish",
              "The interval staff set for this connection"
            ],
            "x-enum-labels": [
              "Initial load",
              "Default",
              "Override"
            ]
          },
          "pull_interval_override_minutes": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The interval CorePilot support set for after the initial load, 15, 60, 240 or 1440 minutes; null where hourly holds"
          },
          "api_calls_in_last_day": {
            "type": "integer",
            "description": "How many calls CorePilot made to the org's API in the last 24 hours, counted by the hour as Salesforce's own rolling day is"
          },
          "api_budget": {
            "type": "integer",
            "description": "How many of those calls CorePilot keeps to: the default unless CorePilot support set another"
          },
          "api_budget_override": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The budget CorePilot support set for this org, in place of the default; null where the default holds"
          },
          "api_budget_default": {
            "type": "integer",
            "description": "The budget with no override, by `api_budget_default_rule`"
          },
          "api_budget_default_rule": {
            "type": "string",
            "description": "What the default budget is made of, in words"
          },
          "org_api_requests_used": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The org's own total of API requests in Salesforce's rolling 24 hours, every integration's and person's, as its last answer to CorePilot reported; null before any has"
          },
          "org_api_requests_max": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The org's daily API request limit, as that answer reported; null before any has"
          },
          "org_api_read_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When that answer came"
          },
          "org_api_ceiling": {
            "type": [
              "integer",
              "null"
            ],
            "description": "`org_api_ceiling_percent` of the org's daily limit: once the org's total reaches it, CorePilot makes no more calls, whatever its own budget; null before the org has said its limit"
          },
          "org_api_ceiling_percent": {
            "type": "integer",
            "description": "The share of the org's daily limit, in percent, that the ceiling is"
          },
          "api_pause": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why CorePilot makes the org no more calls just now, at its budget or the org's ceiling, in words; null while it has room"
          },
          "external_system": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The outside system the org's pulled streams hang off, coded by the org's Id; null until it first connects"
          },
          "avsight": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AvsightIntegrationStub"
              },
              {
                "$ref": "#/components/schemas/AvsightIntegration"
              },
              {
                "type": "null"
              }
            ],
            "description": "AvSight, where the org runs it, which `/salesforce_integration/avsight` reads and `expand[]=avsight` inlines; null where the check connect and test ask for, or a pull, last found it not installed"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "connect",
                    "test",
                    "pull",
                    "refresh_streams",
                    "disconnect"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Salesperson": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "away_until",
          "has_avatar",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "salesperson"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "away_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this person's current time away ends: back-to-back or overlapping away events and closures count as one stretch, looking ahead at most 90 days. An all-day stretch ends at the start of the business day after its last. Round robin passes over someone away. Null when they aren't away now"
          },
          "has_avatar": {
            "type": "boolean",
            "description": "Whether `GET /salespeople/{uuid}/avatar` serves the person's picture, a redirect to the image at a link that lapses in minutes"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SalespersonTally": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate",
          "average_response_hours",
          "salesperson"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "salesperson_tally"
          },
          "label": {
            "type": "string",
            "description": "The salesperson's name, or Unassigned"
          },
          "requests": {
            "type": "integer",
            "description": "Requests received"
          },
          "quoted": {
            "type": "integer",
            "description": "Requests sent with a price"
          },
          "no_quote": {
            "type": "integer",
            "description": "Requests that priced nothing and answered something No quote"
          },
          "sent": {
            "type": "integer",
            "description": "Requests whose quote was sent"
          },
          "won": {
            "type": "integer",
            "description": "Sent quotes converted to an order"
          },
          "lost": {
            "type": "integer",
            "description": "Sent quotes marked lost and not won"
          },
          "open": {
            "type": "integer",
            "description": "Sent quotes neither won nor lost"
          },
          "win_rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Won over sent, from 0 to 1; null where none was sent"
          },
          "average_response_hours": {
            "type": [
              "number",
              "null"
            ],
            "description": "Hours from arriving to first send, averaged over the quotes sent"
          },
          "salesperson": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null for the requests nobody holds"
          }
        },
        "x-area": "selling",
        "x-role": "report"
      },
      "SendingAddress": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "email_address",
          "display_name",
          "confirmed_at",
          "code_sent_at",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sending_address"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "email_address": {
            "type": "string",
            "description": "The address mail leaves as; it never changes once added"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name mail from it shows; null shows the organization's"
          },
          "confirmed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the code mailed to it was typed back; mail leaves as it only once it is"
          },
          "code_sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the code awaiting confirmation was mailed; null with none awaiting"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "send_code",
                    "confirm"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SendingDomain": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "domain",
          "state",
          "sendable",
          "dmarc_policy",
          "records",
          "checked_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sending_domain"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "domain": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "waiting",
              "verified",
              "failing",
              "gave_up",
              "claimed_elsewhere"
            ],
            "x-enum-labels": [
              "Waiting for records",
              "Verified",
              "Stopped verifying",
              "Gave up",
              "Verified elsewhere"
            ],
            "description": "Where the domain stands: `waiting` for its records, `verified` and sending, `failing` since its DKIM records stopped being seen (an ownership record gone after verifying fails only its own record), `gave_up` where the provider stopped looking for DKIM, or `claimed_elsewhere` where another tenant, of this account or another, holds it verified"
          },
          "sendable": {
            "type": "boolean",
            "description": "Whether mail may leave as the domain now: its ownership record seen and DKIM verified"
          },
          "dmarc_policy": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "none",
              "quarantine",
              "reject",
              null
            ],
            "description": "The policy the DMARC record applying to the domain sets (its organizational domain's `sp` where it has none of its own), or null where none applies"
          },
          "records": {
            "type": "array",
            "description": "The DNS records to publish at the domain, each as the last check saw it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "purpose",
                "type",
                "name",
                "value",
                "required",
                "state",
                "fix"
              ],
              "properties": {
                "purpose": {
                  "type": "string",
                  "enum": [
                    "ownership",
                    "dkim",
                    "mail_from",
                    "spf",
                    "dmarc"
                  ],
                  "x-enum-labels": [
                    "Ownership",
                    "DKIM",
                    "MAIL FROM",
                    "SPF",
                    "DMARC"
                  ],
                  "description": "What the record proves: `ownership` that this account claimed the domain, `dkim` that mail signed as it is the domain's, `mail_from` where bounces return; `spf` the root domain's own SPF and `dmarc` the DMARC policy that applies to it, both read and never asked for"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "TXT",
                    "CNAME",
                    "MX"
                  ],
                  "description": "The DNS record type"
                },
                "name": {
                  "type": "string",
                  "description": "The full name the record is published at; for DMARC, where the policy applying was found, the organizational domain's where the domain has none of its own"
                },
                "value": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "What the record holds; for SPF and DMARC, a row for each record found, or one row of null where there is none"
                },
                "required": {
                  "type": "boolean",
                  "description": "Whether the domain sends only once the record is seen"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "waiting",
                    "verified",
                    "failing",
                    "gave_up",
                    "claimed_elsewhere",
                    "present",
                    "absent"
                  ],
                  "x-enum-labels": [
                    "Waiting",
                    "Verified",
                    "Failing",
                    "Gave up",
                    "Verified elsewhere",
                    "Published",
                    "Not published"
                  ],
                  "description": "`waiting` until it is seen (DKIM up to 72 hours), `verified`, `failing` once a seen record is gone, `gave_up` where the provider stopped looking (claim the domain again), `claimed_elsewhere` where another tenant, of this account or another, holds the domain. SPF is `present`, `absent`, or `failing` with more than one record; DMARC is `verified` where it would pass our mail, `failing` where it wouldn't or more than one record cancels it, `waiting` while DKIM is, or `absent`"
                },
                "fix": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "What to change at the record, in plain words, or null where nothing is owed"
                }
              }
            }
          },
          "checked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the records were last read"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "check",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Session": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "browser",
          "ip_address",
          "authenticated_via",
          "current",
          "last_active_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "session"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "browser": {
            "type": [
              "string",
              "null"
            ],
            "description": "The browser and its platform, read off how it named itself"
          },
          "ip_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The network address it signed in from"
          },
          "authenticated_via": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "password",
              "magic_link",
              null
            ],
            "description": "How the person proved who they are when it signed in: a password or a sign-in link",
            "x-enum-descriptions": [
              "Signed in with the login's password",
              "Signed in through a one-time link mailed to the login",
              "Not set"
            ],
            "x-enum-labels": [
              "Password",
              "Sign-in link",
              "Not set"
            ]
          },
          "current": {
            "type": "boolean",
            "description": "Whether this is the browser asking; never for a token, which is no browser"
          },
          "last_active_at": {
            "type": "string",
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Share": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "title",
          "message",
          "expires_on",
          "revoked_at",
          "documents_stale",
          "links",
          "record",
          "creator",
          "revoked_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "share"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "record",
              "upload"
            ],
            "description": "`record` for files shared from the record `record` names, `upload` for files picked on the Uploads page, which belongs to no record"
          },
          "title": {
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "A note shown to the people the files are shared with"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day any of its links still works; null once everyone on it is revoked or past their last day"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "documents_stale": {
            "type": "boolean",
            "description": "Whether a document it sent no longer says what the record says now; `replace_documents` sends the current one"
          },
          "links": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "recipient_uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "link": {
                  "type": "string"
                }
              },
              "required": [
                "recipient_uuid",
                "link"
              ]
            },
            "description": "Each person's link, by `recipient_uuid`, sent only in the answer that shared the files with them and null on every other read: a link can't be read again (`POST /share_recipients/{uuid}/relink` mints a fresh one)"
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the files were shared from; null for a share made from the Uploads page, which belongs to no record"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "revoked_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "revoke",
                    "replace_documents",
                    "add_files"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "recipients": {
            "$ref": "#/components/schemas/ShareRecipientList",
            "description": "Present when `expand[]=recipients` asked for it: the first page, continued on `/share_recipients?share[]={uuid}`"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "ShareFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "heading",
          "position",
          "pending",
          "removed_at",
          "version",
          "share",
          "upload",
          "document",
          "source",
          "removed_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "share_file"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "heading": {
            "type": "string",
            "description": "The group it is shown under, as the recipient reads it: the quote, a line, a unit"
          },
          "position": {
            "type": "integer"
          },
          "pending": {
            "type": "boolean",
            "description": "Whether its printed form is still being made"
          },
          "removed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it was removed from the share; `DELETE` stamps `removed_at` and keeps the row, as proof of what went out"
          },
          "version": {
            "type": [
              "number",
              "null"
            ],
            "description": "The version of the upload that went out; a newer version made since is not shared"
          },
          "share": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShareStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "document": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The printed form that went out, as it was printed then"
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the file was chosen from, or the upload itself for a share made from the Uploads page"
          },
          "removed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "ShareRecipient": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "email_address",
          "state",
          "expires_on",
          "verified_at",
          "last_opened_at",
          "revoked_at",
          "link",
          "files_count",
          "file_names",
          "downloads_count",
          "shared_from",
          "share",
          "record",
          "contact",
          "company",
          "shared_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "share_recipient"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "active",
              "expired",
              "revoked",
              "withdrawn"
            ],
            "description": "`active` while the link works, `expired` past `expires_on`, `revoked` once someone stopped it, `withdrawn` while the record the files were shared from is in the trash (never for a share from the Uploads page)",
            "x-enum-descriptions": [
              "The link opens the files",
              "The link's last day has passed; relinking sends a fresh one",
              "The link was stopped, for this person or for the whole share",
              "The record shared from is in the trash, so no link opens until it is restored (never for a share from the Uploads page)"
            ],
            "x-enum-labels": [
              "Active",
              "Expired",
              "Revoked",
              "Withdrawn"
            ]
          },
          "expires_on": {
            "type": "string",
            "format": "date",
            "description": "The last day the link works, the business's day"
          },
          "verified_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When they first proved the address with an emailed code"
          },
          "last_opened_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "revoked_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "link": {
            "type": [
              "string",
              "null"
            ],
            "description": "Their link, sent only in the answer that minted it (adding them, or `relink`), and null everywhere else: it can't be read again"
          },
          "files_count": {
            "type": "number",
            "description": "The files the share holds for them now, any taken off it left out"
          },
          "file_names": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The names of the files the share holds for them now, in the order they read them, which tell one of a person's links from another"
          },
          "downloads_count": {
            "type": "number",
            "description": "How many times they downloaded one of its files"
          },
          "shared_from": {
            "type": "string",
            "description": "Where the files were shared from: the identifier of the record `record` names, or `Uploads` for a share made from the Uploads page"
          },
          "share": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShareStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "record": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the files were shared from; null for a share made from the Uploads page, which belongs to no record"
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company of the contact they are, if they are one"
          },
          "shared_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who shared the files with them"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "relink",
                    "revoke"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "ShareView": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "ip_address",
          "user_agent",
          "share_recipient",
          "share_file",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "share_view"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "opened",
              "viewed",
              "downloaded"
            ]
          },
          "ip_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where it came from"
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "The browser it came from"
          },
          "share_recipient": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "share_file": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ShareableFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "preselected",
          "category",
          "byte_size",
          "content_type",
          "version",
          "document_version",
          "rendered_at",
          "source",
          "upload",
          "document"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "shareable_file"
          },
          "kind": {
            "type": "string",
            "enum": [
              "documents",
              "files",
              "line",
              "unit"
            ],
            "description": "The group it sits in"
          },
          "heading": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "form": {
            "type": [
              "string",
              "null"
            ],
            "description": "The form it prints, which `POST /shares` takes as `form`; null for an upload"
          },
          "preselected": {
            "type": "boolean",
            "description": "Whether a share chooses it unless told otherwise: the form its record's recipient usually wants, a release's signed certificates, and a unit's release certificate and trace documents"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "byte_size": {
            "type": [
              "number",
              "null"
            ]
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "number",
              "null"
            ],
            "description": "The upload's version a share pins, which `POST /shares` takes beside `upload_uuid`"
          },
          "document_version": {
            "type": [
              "number",
              "null"
            ],
            "description": "Which version of the form's file the current printing is, as the record's documents number them; null until it has rendered"
          },
          "rendered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the current printing finished rendering; null while `document` is still rendering, or with none printed"
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/CertificateStub"
              },
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The record the file hangs off"
          },
          "upload": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "document": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/DocumentStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The printed form now current, if one is printed yet"
          }
        },
        "x-area": "selling",
        "x-role": "line"
      },
      "ShipVia": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "mode",
          "international",
          "inactive_at",
          "carrier",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "ship_via"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The service, such as Priority Overnight; null on one that is its carrier alone, such as a freight forwarder with no services"
          },
          "mode": {
            "type": "string",
            "enum": [
              "parcel",
              "ltl",
              "air_freight",
              "ocean",
              "counter_to_counter",
              "onboard_courier",
              "pickup"
            ],
            "description": "`parcel`: Small-package express, such as FedEx or UPS; `ltl`: Less-than-truckload road freight; `air_freight`: Air cargo freight; `ocean`: Ocean freight; `counter_to_counter`: Airline counter to counter, on the next flight out; `onboard_courier`: A courier carries the part on board a passenger flight; `pickup`: The customer collects the part from us (will call)",
            "x-enum-descriptions": [
              "Small-package express, such as FedEx or UPS",
              "Less-than-truckload road freight",
              "Air cargo freight",
              "Ocean freight",
              "Airline counter to counter, on the next flight out",
              "A courier carries the part on board a passenger flight",
              "The customer collects the part from us (will call)"
            ],
            "x-enum-labels": [
              "Parcel",
              "LTL freight",
              "Air freight",
              "Ocean",
              "Counter-to-counter",
              "Onboard courier",
              "Customer pickup"
            ]
          },
          "international": {
            "type": "boolean"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "carrier": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Shortcut": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "title",
          "url",
          "position",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "shortcut"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "position": {
            "type": "integer",
            "description": "Where it sits in your list, counting from 1"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete",
                    "move"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Skill": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inspection_approved",
          "excluded_from_assigned_hours",
          "burden_rate_cents",
          "bill_rate_cents",
          "currency_code",
          "inactive_at",
          "ledger_account",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "skill"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inspection_approved": {
            "type": "boolean"
          },
          "excluded_from_assigned_hours": {
            "type": "boolean",
            "description": "Hours on open tasks naming this skill are left out of every employee's assigned hours"
          },
          "burden_rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "bill_rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`, the account's currency"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ledger_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SmartListing": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "refresh_refusal"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "smart_listing"
          },
          "name": {
            "type": "string"
          },
          "standing": {
            "type": "string",
            "enum": [
              "none",
              "trial",
              "active",
              "suspended",
              "ended"
            ],
            "description": "`none`: Never sold here, or not started yet; `trial`: On trial, and in use; `active`: Bought, and in use; `suspended`: Held back: what it holds can be read but not changed; `ended`: Ended, or past its last day",
            "x-enum-descriptions": [
              "Never sold here, or not started yet",
              "On trial, and in use",
              "Bought, and in use",
              "Held back: what it holds can be read but not changed",
              "Ended, or past its last day"
            ],
            "x-enum-labels": [
              "None",
              "Trial",
              "Active",
              "Suspended",
              "Ended"
            ]
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Its last day, null for no end"
          },
          "refresh_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why no integration's listings refresh now, scheduled or asked for; null while they do"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SmartQuoting": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "intake_addresses",
          "emails_this_month",
          "model_limit_used_percent"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "smart_quoting"
          },
          "name": {
            "type": "string"
          },
          "standing": {
            "type": "string",
            "enum": [
              "none",
              "trial",
              "active",
              "suspended",
              "ended"
            ],
            "description": "`none`: Never sold here, or not started yet; `trial`: On trial, and in use; `active`: Bought, and in use; `suspended`: Held back: what it holds can be read but not changed; `ended`: Ended, or past its last day",
            "x-enum-descriptions": [
              "Never sold here, or not started yet",
              "On trial, and in use",
              "Bought, and in use",
              "Held back: what it holds can be read but not changed",
              "Ended, or past its last day"
            ],
            "x-enum-labels": [
              "None",
              "Trial",
              "Active",
              "Suspended",
              "Ended"
            ]
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Its last day, null for no end"
          },
          "intake_addresses": {
            "type": "array",
            "description": "Each organization's address to forward RFQ email to, while the module is in use; reading it is what makes one",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "organization",
                "email_address",
                "forwarding_confirmation",
                "relayed_at"
              ],
              "properties": {
                "organization": {
                  "$ref": "#/components/schemas/CodedStub"
                },
                "email_address": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Where RFQ email for the organization is forwarded, to be read as it arrives: `rfq@` its own subdomain of the mail domain, such as `rfq@acme.mail.corepilot.ai`; a sandbox or demo organization's subdomain carries `-sbx` after the organization's code, such as `rfq@acme-sbx.mail.corepilot.ai`, so real mail is never forwarded to it by mistake; null while its address is still being set up"
                },
                "forwarding_confirmation": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "required": [
                    "forwarding_address",
                    "url",
                    "received_at"
                  ],
                  "description": "Google's latest request to confirm a Gmail account's forwarding to the address, which a person confirms by opening its link; null once Gmail forwards mail from that account to the address, or while none has come",
                  "properties": {
                    "forwarding_address": {
                      "type": "string",
                      "description": "The Gmail account asking to forward its mail"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Google's link that confirms the forwarding"
                    },
                    "received_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "When the address received it"
                    }
                  }
                },
                "relayed_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "When the old CorePilot received the latest RFQ email it relayed to the address in the last 14 days: RFQ email still goes to the organization's old CorePilot address, and its forwarding should change to this one; null while none was relayed"
                }
              }
            }
          },
          "emails_this_month": {
            "type": [
              "integer",
              "null"
            ],
            "description": "The email received this month in the account's zone, while the module is in use"
          },
          "model_limit_used_percent": {
            "type": [
              "integer",
              "null"
            ],
            "description": "How much of this month's reading limit is used, as a whole percent from 0 to 100, reaching 100 only once reading stops; null where nothing limits it or the module is not in use"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SourcingRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_number_raw",
          "description",
          "priority",
          "internal_notes",
          "identifier",
          "need_by",
          "closed_at",
          "trashed_at",
          "states",
          "status",
          "quantity",
          "quantity_ordered",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "vendors_asked",
          "quotes_received",
          "part_description",
          "asked_count",
          "quoted_count",
          "declined_count",
          "awaiting_count",
          "sent_rfq_count",
          "awaited_elsewhere_rfq_count",
          "orderable_quotes",
          "migration_hold",
          "demand",
          "part",
          "conditions",
          "origin",
          "draft_rfqs",
          "purchase_orders",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "sourcing_request"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "states": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "unsourced",
                "asked",
                "quoted",
                "ordered"
              ],
              "x-enum-descriptions": [
                "Not yet put to any vendor or purchase order",
                "Put to one or more vendors on an RFQ",
                "At least one vendor quoted it",
                "A purchase order line buys against it"
              ],
              "x-enum-labels": [
                "Unsourced",
                "Asked",
                "Quoted",
                "Ordered"
              ]
            },
            "description": "`unsourced`: Not yet put to any vendor or purchase order; `asked`: Put to one or more vendors on an RFQ; `quoted`: At least one vendor quoted it; `ordered`: A purchase order line buys against it"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed"
            ],
            "description": "`open`: Still being sourced; `closed`: Closed; nothing more is sourced on it",
            "x-enum-descriptions": [
              "Still being sourced",
              "Closed; nothing more is sourced on it"
            ],
            "x-enum-labels": [
              "Open",
              "Closed"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "quantity_ordered": {
            "type": "number"
          },
          "quantity_remaining": {
            "type": "number"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "vendors_asked": {
            "type": "number"
          },
          "quotes_received": {
            "type": "number"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "asked_count": {
            "type": "integer",
            "description": "Asks put to a vendor: on an RFQ that went out, or answered on a draft"
          },
          "quoted_count": {
            "type": "integer",
            "description": "Asks a vendor priced"
          },
          "declined_count": {
            "type": "integer",
            "description": "Asks a vendor answered with no price"
          },
          "awaiting_count": {
            "type": "integer",
            "description": "Asks out with a vendor and not yet answered"
          },
          "sent_rfq_count": {
            "type": "integer",
            "description": "The RFQs asking for it still out with a vendor, which `POST /sourcing_requests/{uuid}/close_rfqs` closes but for those `awaited_elsewhere_rfq_count` counts"
          },
          "awaited_elsewhere_rfq_count": {
            "type": "integer",
            "description": "The RFQs still out that another open request awaits an answer on, which `close_rfqs` leaves open"
          },
          "orderable_quotes": {
            "type": "boolean",
            "description": "Whether a vendor's quote for it is live and not yet ordered from, which `POST /vendor_rfqs/{uuid}/order` takes"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the request came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "demand": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SalesOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/VendorExchangeStub"
              },
              {
                "$ref": "#/components/schemas/VendorLeaseStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnLineStub"
              },
              {
                "$ref": "#/components/schemas/IssuedPartStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "$ref": "#/components/schemas/CustomerRfqLineStub"
              },
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The line it sources, as the create named it; what it asked and ordered is `/vendor_rfq_lines?sourcing_request[]=` and `/purchase_order_lines?sourcing_request[]=`"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "origin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a customer quote's own stub where it is one; a sales order's own stub where it is one; a purchase order's own stub where it is one; a repair order's own stub where it is one; a work order's own stub where it is one"
          },
          "draft_rfqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorRfqStub"
            }
          },
          "purchase_orders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderStub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "ask",
                    "send_rfqs",
                    "close_rfqs",
                    "order",
                    "close",
                    "reopen",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "selling",
        "x-role": "document"
      },
      "SupportAccess": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "turned_off_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "support_access"
          },
          "turned_off_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When an owner turned support access off, so staff open no support session on any of the account's tenants; null while it is on"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "turn_off",
                    "turn_on"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "SupportMessenger": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "app_id",
          "api_base",
          "token",
          "expires_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "support_messenger"
          },
          "app_id": {
            "type": "string",
            "description": "The Intercom workspace the messenger boots into"
          },
          "api_base": {
            "type": "string",
            "description": "The Intercom region the messenger talks to"
          },
          "token": {
            "type": "string",
            "description": "The `intercom_user_jwt`: an HS256 token carrying who the person is, which Intercom verifies with the workspace's secret"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the token lapses; read it again before then, and on every tenant switch"
          }
        },
        "x-role": "master_data"
      },
      "SupportSession": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "reason",
          "ended_at",
          "changes_first_allowed_at",
          "token_issued_at",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "support_session"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "reason": {
            "type": "string",
            "description": "Why staff opened it, as they said"
          },
          "ended_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When it ended, or ran out unextended; null while it is open"
          },
          "changes_first_allowed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When changes were first allowed in it, null if it only ever read"
          },
          "token_issued_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When staff issued it an API token, which called as the support seat while it lasted; null if they never did"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The support seat staff worked on, named for the staff member"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "TaxCategory": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "tax_category"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "TaxDestination": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "country_code",
          "region",
          "description",
          "inactive_at",
          "jurisdiction",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "tax_destination"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "jurisdiction": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "TaxOrigin": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "tax_origin"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Team": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "memberships",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "team"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The people on the team, by name: each an active person's seat when added"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "TimeZone": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "code",
          "name"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "time_zone"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "TriageRule": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "triage_action",
          "keeps_from_autoquote",
          "sender_domains",
          "countries",
          "priorities",
          "channels",
          "organization_code",
          "inactive_at",
          "organization",
          "archive_reason",
          "no_quote_reason",
          "customers",
          "salespeople",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "triage_rule"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer",
            "description": "Where the rule is read, first to last; the first whose conditions all hold wins. A write moves it, renumbering the rest"
          },
          "triage_action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "assign",
              "round_robin",
              "archive",
              "hold",
              "no_quote",
              null
            ],
            "description": "`assign`: Give the quote to one salesperson; `round_robin`: Give the quote to the rule's salespeople in turn, skipping anyone inactive or away unless everyone is away; `archive`: Move the quote to the trash, naming the archive reason; `hold`: Keep the quote under Needs review until a person works it; `no_quote`: Answer every line asked for no quote, naming the no quote reason, and send it as autoquote's sending settings allow",
            "x-enum-descriptions": [
              "Give the quote to one salesperson",
              "Give the quote to the rule's salespeople in turn, skipping anyone inactive or away unless everyone is away",
              "Move the quote to the trash, naming the archive reason",
              "Keep the quote under Needs review until a person works it",
              "Answer every line asked for no quote, naming the no quote reason, and send it as autoquote's sending settings allow",
              "Not set"
            ],
            "x-enum-labels": [
              "Assign",
              "Round robin",
              "Archive",
              "Hold",
              "No quote",
              "Not set"
            ]
          },
          "keeps_from_autoquote": {
            "type": "boolean",
            "description": "Whether a quote the rule matches is left out of the automatic autoquote; a person can still run one"
          },
          "sender_domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The email domains of the senders it matches, each its subdomains too; empty matches any sender"
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ISO country codes it matches, read off the matched customer's billing address, else its shipping one; a sender no customer answers to never matches. Empty matches any"
          },
          "priorities": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "routine",
                "expedite",
                "critical",
                "aog"
              ],
              "x-enum-descriptions": [
                "Ordinary lead time; no rush",
                "Needed sooner than usual; moves ahead of routine work",
                "Urgent: an aircraft will be grounded soon without it",
                "Aircraft on ground: an airplane cannot fly until this arrives"
              ],
              "x-enum-labels": [
                "Routine",
                "Expedite",
                "Critical",
                "AOG"
              ]
            },
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives"
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "manual",
                "email",
                "phone",
                "chat",
                "ils",
                "partsbase",
                "marketplace"
              ],
              "x-enum-descriptions": [
                "Entered by hand, with no inbound request behind it",
                "The customer's request came in by email",
                "The customer asked on a phone call, logged as a message",
                "The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message",
                "The request came through ILS, the Inventory Locator Service",
                "The request came through PartsBase",
                "The request came through another parts marketplace"
              ],
              "x-enum-labels": [
                "Manual",
                "Email",
                "Phone",
                "Chat",
                "ILS",
                "PartsBase",
                "Marketplace"
              ]
            },
            "description": "`manual`: Entered by hand, with no inbound request behind it; `email`: The customer's request came in by email; `phone`: The customer asked on a phone call, logged as a message; `chat`: The customer asked in a chat (WhatsApp, SMS, Teams and the like), logged as a message; `ils`: The request came through ILS, the Inventory Locator Service; `partsbase`: The request came through PartsBase; `marketplace`: The request came through another parts marketplace"
          },
          "organization_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The organization's code where the tenant has more than one, so two organizations' rules of one name read apart; null where it has one"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "archive_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "no_quote_reason": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The reason `no_quote` answers every line asked for with, which the quote prints where a price would be"
          },
          "customers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The customers it matches, each by its company; empty matches any"
          },
          "salespeople": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "Who `assign` gives the quote to, or `round_robin` hands it round in this order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "UnreadSheetRow": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sheet",
          "row",
          "reasons",
          "left_out",
          "reread",
          "ruling",
          "message_file",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "unread_sheet_row"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sheet": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sheet's tab name; null for a file with one unnamed sheet"
          },
          "row": {
            "type": "integer",
            "description": "The row's number in the sheet, as the spreadsheet numbers it"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Why the row couldn't be read in full, each in a phrase (`the row names no part`); a row can have several"
          },
          "left_out": {
            "type": "boolean",
            "description": "The row became no line. When false, the model read it again into lines (reread), or code kept it as a line with its unreadable cell in the customer notes"
          },
          "reread": {
            "type": "boolean",
            "description": "The model read the row again after code couldn't read it in full"
          },
          "ruling": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the model, reading the row again, made no line of it; null when it made one or never read it again"
          },
          "message_file": {
            "$ref": "#/components/schemas/MessageFileStub"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "integration",
        "x-role": "master_data"
      },
      "UploadCategory": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "upload_category"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "Upload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "description",
          "generated",
          "byte_size",
          "content_type",
          "version",
          "file_filename",
          "attachments_count",
          "thumbnailed",
          "trashed_at",
          "category",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "upload"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "generated": {
            "type": "boolean"
          },
          "byte_size": {
            "type": [
              "number",
              "null"
            ]
          },
          "content_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "version": {
            "type": [
              "number",
              "null"
            ]
          },
          "file_filename": {
            "type": [
              "string",
              "null"
            ]
          },
          "attachments_count": {
            "type": "integer",
            "description": "The records the file is attached to"
          },
          "thumbnailed": {
            "type": "boolean",
            "description": "Whether `/uploads/{uuid}/content?variant=thumbnail` serves a small image of the file"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "replace",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "VendorCapability": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "vendor",
          "part",
          "repair_service",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_capability"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one service it is approved for; null approves any service"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "catalog",
        "x-role": "master_data"
      },
      "VendorCertificate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "approval_basis",
          "expired",
          "scan_count",
          "certificate_standard",
          "vendor",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_certificate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "approval_basis": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ],
            "description": "Which of the vendor's approvals lapse once it expires; null keeps it on record only",
            "x-enum-descriptions": [
              "The vendor's approval for purchase orders lapses when it expires",
              "The vendor's approval for repair orders lapses when it expires",
              "The vendor's whole approval lapses when it expires",
              "Not set"
            ],
            "x-enum-labels": [
              "Purchase orders",
              "Repair orders",
              "Purchase and repair orders",
              "Not set"
            ]
          },
          "expired": {
            "type": "boolean"
          },
          "scan_count": {
            "type": "integer",
            "description": "The files attached to it, the scan of the certificate among them, which `GET /attachments?record[]=` lists"
          },
          "certificate_standard": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "Vendor": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "currency_code",
          "approval_status",
          "approved_at",
          "approved_for",
          "approved_until",
          "approval_state",
          "approval_lapses_on",
          "approvable",
          "export_control",
          "track_1099",
          "default_notes_to_shop",
          "inactive_at",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "approver",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor"
          },
          "currency_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "approval_status": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "not_approved"
            ],
            "description": "`pending`: Not yet reviewed; counts as unapproved; `approved`: Approved to buy from; `not_approved`: Reviewed and not approved to buy from",
            "x-enum-descriptions": [
              "Not yet reviewed; counts as unapproved",
              "Approved to buy from",
              "Reviewed and not approved to buy from"
            ],
            "x-enum-labels": [
              "Pending",
              "Approved",
              "Not approved"
            ]
          },
          "approved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "approved_for": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ],
            "description": "`purchase_orders`: Approved to buy from on purchase orders; `repair_orders`: Approved to send units to for repair; `both`: Approved for purchase orders and repair orders",
            "x-enum-descriptions": [
              "Approved to buy from on purchase orders",
              "Approved to send units to for repair",
              "Approved for purchase orders and repair orders",
              "Not set"
            ],
            "x-enum-labels": [
              "Purchase orders",
              "Repair orders",
              "Purchase and repair orders",
              "Not set"
            ]
          },
          "approved_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "approval_state": {
            "type": "string",
            "enum": [
              "approved",
              "lapsing",
              "lapsed",
              "pending",
              "not_approved"
            ],
            "description": "`approved`: Approved, and nothing it rests on runs out within 30 days; `lapsing`: Approved, but its end date or a certificate it rests on runs out within 30 days; `lapsed`: Approved, but its end date or a certificate it rests on has passed; `pending`: Not yet reviewed; counts as unapproved; `not_approved`: Reviewed and not approved to buy from",
            "x-enum-descriptions": [
              "Approved, and nothing it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on runs out within 30 days",
              "Approved, but its end date or a certificate it rests on has passed",
              "Not yet reviewed; counts as unapproved",
              "Reviewed and not approved to buy from"
            ],
            "x-enum-labels": [
              "Approved",
              "Lapsing",
              "Lapsed",
              "Pending",
              "Not approved"
            ]
          },
          "approval_lapses_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "approvable": {
            "type": "boolean",
            "description": "Whether approving the vendor would leave it approved: it isn't approved, or its approval ran out on its end date with no certificate it rests on expired"
          },
          "export_control": {
            "type": "boolean"
          },
          "track_1099": {
            "type": "boolean"
          },
          "default_notes_to_shop": {
            "type": [
              "string",
              "null"
            ],
            "description": "What a new repair order to the vendor says to the shop until edited on the order; the organization's own default stands in where null"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferred_ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_freight_account": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CarrierAccountStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "approver": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The standing requirements a unit received from the vendor is checked against"
          },
          "quickbooks_assignment": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "uuid",
              "quickbooks_id",
              "origin"
            ],
            "properties": {
              "uuid": {
                "type": "string",
                "format": "uuid"
              },
              "quickbooks_id": {
                "type": "string"
              },
              "origin": {
                "type": "string",
                "enum": [
                  "matched",
                  "created",
                  "manual"
                ]
              }
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "VendorEmailTemplatePreferences": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "choices"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_email_template_preferences"
          },
          "choices": {
            "type": "array",
            "description": "Each kind of email to vendors an organization keeps active templates for, by organization and then kind",
            "items": {
              "type": "object",
              "required": [
                "organization",
                "kind",
                "kind_label",
                "default",
                "email_template",
                "templates"
              ],
              "properties": {
                "organization": {
                  "$ref": "#/components/schemas/CodedStub",
                  "description": "Whose templates these are"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "customer_quote",
                    "customer_order_acknowledgement",
                    "proforma_invoice",
                    "invoice",
                    "credit_memo",
                    "purchase_order",
                    "repair_order",
                    "vendor_rfq",
                    "consignor_statement",
                    "investor_statement",
                    "shipping_confirmation"
                  ],
                  "description": "Which kind of email, as a `PATCH` names it"
                },
                "kind_label": {
                  "type": "string",
                  "description": "The kind of email, in a sentence"
                },
                "default": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The organization's Default, which an email opens in while neither the vendor nor the sender chooses one; null when it has none"
                },
                "email_template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template chosen for the vendor, which its emails open in ahead of the sender's own and the Default; null while none is chosen"
                },
                "templates": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Stub"
                  },
                  "description": "Every active template of this kind the organization keeps, by name: what may be chosen"
                }
              }
            }
          }
        },
        "x-area": "counterparties",
        "x-role": "master_data"
      },
      "VendorExchange": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "identifier",
          "received_at",
          "core_due_on",
          "core_shipped_at",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_bought",
          "quantity_outstanding",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "expected_core_condition",
          "part_number",
          "purchase_order_line",
          "document_forms",
          "expected_core_part",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_exchange"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "core_shipped",
              "closed",
              "cancelled"
            ],
            "description": "`open`: We owe the vendor a core that has not shipped; `core_shipped`: Our core has shipped back to the vendor; `closed`: Finished; the core owed the vendor is settled; `cancelled`: Called off before any core shipped",
            "x-enum-descriptions": [
              "We owe the vendor a core that has not shipped",
              "Our core has shipped back to the vendor",
              "Finished; the core owed the vendor is settled",
              "Called off before any core shipped"
            ],
            "x-enum-labels": [
              "Open",
              "Core shipped",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "expected_core_part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "received_at": {
            "type": "string",
            "format": "date-time"
          },
          "core_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "core_shipped_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_owed": {
            "type": "number"
          },
          "quantity_allocated": {
            "type": "number"
          },
          "quantity_shipped": {
            "type": "number"
          },
          "quantity_bought": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "quantity_remaining": {
            "type": "number"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "expected_core_condition": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "purchase_order_line": {
            "$ref": "#/components/schemas/PurchaseOrderLineStub",
            "description": "The purchase order line the exchange is for"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the exchange prints on, each by the `form` `POST /documents` takes"
          },
          "expected_core_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part `expected_core_part_number` names; null where none is typed or none matches it"
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the order line bought; null for a line no catalog part holds"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_core_due",
                    "buy_outright",
                    "close",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_core_due": "update_vendor_exchange"
            }
          }
        },
        "x-area": "buying",
        "x-role": "document"
      },
      "VendorInventoryLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quantity",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "request_type",
          "serial_number",
          "effective_on",
          "expires_on",
          "current",
          "part_description",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_inventory_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "number",
            "description": "How many the vendor says it holds"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`: `unit_cost_cents` at today's rate; null where it is unpriced or no rate is on file"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ],
            "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back",
            "x-enum-descriptions": [
              "An outright sale: the unit changes hands for its price, with no core owed",
              "An exchange: a serviceable unit now, with a core unit owed back"
            ],
            "x-enum-labels": [
              "Outright",
              "Exchange"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "current": {
            "type": "boolean",
            "description": "Whether today falls inside its dates, which `current=true` lists"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "VendorLease": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "started_on",
          "due_back_on",
          "shipped_back_on",
          "charged_through_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "uncharged_days",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_bought",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "purchase_order_line",
          "document_forms",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_lease"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "shipped_back",
              "closed",
              "cancelled"
            ],
            "description": "`open`: We hold the vendor's leased unit, or some of the units we leased; `shipped_back`: Every leased unit has shipped back to the vendor: close the lease once their last bill is in; `closed`: Finished: the units went back, or we bought them; `cancelled`: Called off with nothing charged",
            "x-enum-descriptions": [
              "We hold the vendor's leased unit, or some of the units we leased",
              "Every leased unit has shipped back to the vendor: close the lease once their last bill is in",
              "Finished: the units went back, or we bought them",
              "Called off with nothing charged"
            ],
            "x-enum-labels": [
              "Open",
              "Shipped back",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_rate_unit": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "day",
              "week",
              "month",
              null
            ],
            "description": "`day`: The rate is per day, and any allowance of hours and cycles is per day; `week`: The rate is per week, and any allowance of hours and cycles is per week; `month`: The rate is per month, and any allowance of hours and cycles is per month",
            "x-enum-descriptions": [
              "The rate is per day, and any allowance of hours and cycles is per day",
              "The rate is per week, and any allowance of hours and cycles is per week",
              "The rate is per month, and any allowance of hours and cycles is per month",
              "Not set"
            ],
            "x-enum-labels": [
              "Day",
              "Week",
              "Month",
              "Not set"
            ]
          },
          "lease_minimum_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_included_hours": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_included_cycles": {
            "type": [
              "integer",
              "null"
            ]
          },
          "lease_hour_fee_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_cycle_fee_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_outright_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "lease_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "started_on": {
            "type": "string",
            "format": "date",
            "description": "The day the first leased unit arrived"
          },
          "due_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shipped_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the last leased unit shipped back to the vendor"
          },
          "charged_through_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The last day a period charge covers; null until the first period is charged"
          },
          "next_period_starts_on": {
            "type": "string",
            "format": "date",
            "description": "The first day `charge_period` charges"
          },
          "next_period_ends_on": {
            "type": "string",
            "format": "date",
            "description": "The day `charge_period` charges through unless the call names another: a month on, or the day the last unit shipped back"
          },
          "uncharged_days": {
            "type": "integer",
            "description": "Days a unit has been held, or was held before shipping back, that no period charge covers yet"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_owed": {
            "type": "number",
            "description": "The units leased in so far"
          },
          "quantity_allocated": {
            "type": "number",
            "description": "The leased units reserved to ship back, staged or shipped"
          },
          "quantity_shipped": {
            "type": "number",
            "description": "The leased units shipped back to the vendor"
          },
          "quantity_outstanding": {
            "type": "number",
            "description": "The leased units still with us and still the vendor's"
          },
          "quantity_bought": {
            "type": "number",
            "description": "The leased units we bought outright, which became ours"
          },
          "quantity_remaining": {
            "type": "number",
            "description": "The leased units still to reserve for shipping back"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "purchase_order_line": {
            "$ref": "#/components/schemas/PurchaseOrderLineStub",
            "description": "The purchase order line the lease is for"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the lease prints on, each by the `form` `POST /documents` takes"
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the order line leases; null for a line no catalog part holds"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_due_back",
                    "charge_period",
                    "buy_outright",
                    "close",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_due_back": "update_vendor_lease"
            }
          }
        },
        "x-area": "buying",
        "x-role": "document"
      },
      "VendorPartPrice": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "lead_time",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_part_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "unit_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`: `unit_cost_cents` at today's rate; null where no rate is on file"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "minimum_quantity": {
            "type": "number",
            "description": "The least quantity it prices; the highest break the quantity reaches wins"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Whom it buys from and in which condition, in a sentence"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor whose price it is, by its company"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition it prices; null prices any condition"
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "master_data"
      },
      "VendorPayment": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "vendor",
          "purchase_order",
          "source",
          "voided_by",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_payment"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "amount_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "unapplied_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` left to apply to a voucher: the amount less its live applications, and 0 once voided"
          },
          "applied_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code` its live applications landed on vouchers or statements; 0 once voided"
          },
          "applied_to": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "bill",
                "amount_cents"
              ],
              "properties": {
                "bill": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ConsignorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/InvestorStatementStub"
                    },
                    {
                      "$ref": "#/components/schemas/VoucherStub"
                    }
                  ]
                },
                "amount_cents": {
                  "type": "integer"
                }
              }
            },
            "description": "Each voucher or statement its live applications landed on, as `bill`, in the order it first landed there, with the minor units of `currency_code` on it"
          },
          "kind": {
            "type": "string",
            "enum": [
              "prepayment",
              "payment"
            ],
            "description": "`prepayment` when recorded on a purchase order before its voucher, `payment` when recorded on a voucher or statement"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "voided_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why an outside system holds the payment, one that came from it or through the order it waits on or a voucher it paid, refusing its void and apply while that system is the system of record; null for one no outside system holds"
          },
          "held_by_trash": {
            "type": "boolean",
            "description": "Whether the purchase order holding the payment, or a voucher or statement it paid, is in the trash, so it offers no void or apply until that is restored"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the payment's own"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ConsignorStatementStub"
              },
              {
                "$ref": "#/components/schemas/InvestorStatementStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a consignor statement's own stub where it is one; an investor statement's own stub where it is one; a voucher's own stub where it is one"
          },
          "voided_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "void",
                    "apply"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "apply": "create_vendor_payment_application"
            }
          },
          "applications": {
            "$ref": "#/components/schemas/PayableApplicationList",
            "description": "Present when `expand[]=applications` asked for it: the first page, continued on `/vendor_payments/{uuid}/applications`"
          }
        },
        "x-area": "money",
        "x-role": "ledger"
      },
      "VendorQuoteLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "unit_cost_cents",
          "request_type",
          "core_charge_cents",
          "core_due_days",
          "vendor_remarks",
          "no_quote",
          "tagged_by_raw",
          "serial_number",
          "home_unit_cost_cents",
          "quantity",
          "minimum_quantity",
          "line_total_cents",
          "answered_at",
          "tagged_on",
          "date_of_manufacture",
          "vendor_rfq_valid_until",
          "vendor_rfq_expired",
          "vendor_rfq_status",
          "response",
          "vendor_approval",
          "vendor_approval_refusal",
          "currency_code",
          "currency_exponent",
          "tagged_by",
          "vendor_rfq",
          "vendor",
          "part",
          "charge",
          "condition",
          "lead_time",
          "vendor_rfq_line",
          "purchase_order",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_quote_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_remarks": {
            "type": [
              "string",
              "null"
            ]
          },
          "no_quote": {
            "type": "boolean"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ],
            "description": "Who tagged the unit as typed, where it named no company on file; kept until a company is picked"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of the account's currency, not `currency_code`"
          },
          "quantity": {
            "type": "number"
          },
          "minimum_quantity": {
            "type": [
              "number",
              "null"
            ]
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "answered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_rfq_valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_rfq_expired": {
            "type": "boolean",
            "description": "Whether the quote has lapsed: its RFQ's `valid_until` is before the account's today"
          },
          "vendor_rfq_status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "closed",
              "cancelled"
            ],
            "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; answers may still come back; `closed`: Closed once the vendor's answers were in; `cancelled`: Called off; nothing more is asked",
            "x-enum-descriptions": [
              "Being written; not yet sent to the vendor",
              "Sent to the vendor; answers may still come back",
              "Closed once the vendor's answers were in",
              "Called off; nothing more is asked"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Closed",
              "Cancelled"
            ]
          },
          "response": {
            "type": "string",
            "enum": [
              "unanswered",
              "quoted",
              "declined"
            ],
            "description": "`unanswered`: No answer from the vendor recorded yet; `quoted`: The vendor answered with a price; `declined`: The vendor declined to quote",
            "x-enum-descriptions": [
              "No answer from the vendor recorded yet",
              "The vendor answered with a price",
              "The vendor declined to quote"
            ],
            "x-enum-labels": [
              "Unanswered",
              "Quoted",
              "Declined"
            ]
          },
          "vendor_approval": {
            "type": "string",
            "description": "How the quoting vendor stands as a vendor, in words, as every vendor picker says it"
          },
          "vendor_approval_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the vendor's approval doesn't cover a purchase order for this line's part today; null where it does"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "tagged_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company the vendor says tagged the unit, such as a repair station; null where none is picked"
          },
          "vendor_rfq": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor_rfq_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorRfqLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "VendorRepairPrice": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "non_oem_allowance",
          "unit_cost_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "organization",
          "vendor",
          "part",
          "repair_service",
          "condition",
          "lead_time",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_repair_price"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ],
            "description": "What the priced repair allows beside the manufacturer's own data and parts; null prices the service whatever it allows",
            "x-enum-descriptions": [
              "OEM only: repaired to the manufacturer's data with its parts, no PMA parts and no DER repairs",
              "PMA parts allowed: the shop may fit parts made under an FAA Parts Manufacturer Approval",
              "DER repairs allowed: the shop may use repairs a Designated Engineering Representative approved",
              "PMA parts and DER repairs both allowed",
              "Not set"
            ],
            "x-enum-labels": [
              "OEM only",
              "PMA parts",
              "DER repairs",
              "PMA parts and DER repairs",
              "Not set"
            ]
          },
          "unit_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "minimum_quantity": {
            "type": "number",
            "description": "The least quantity it prices; the highest break the quantity reaches wins"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": "string",
            "description": "Which service it buys, from whom and in which condition, in a sentence"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor whose price it is, by its company"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The repair service on the part it prices"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition it prices; null prices any condition"
          },
          "lead_time": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "master_data"
      },
      "VendorReturn": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "consignment",
          "quantity_creditable",
          "creditable_cents",
          "currency_code",
          "currency_exponent",
          "line_count",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "credit_count",
          "migration_hold",
          "document_forms",
          "purchase_order",
          "vendor",
          "credit",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_return"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "closed",
              "cancelled"
            ],
            "description": "`open`: Parts are being sent back to the vendor; `closed`: Finished; anything not shipped back stays with us; `cancelled`: Called off before anything shipped",
            "x-enum-descriptions": [
              "Parts are being sent back to the vendor",
              "Finished; anything not shipped back stays with us",
              "Called off before anything shipped"
            ],
            "x-enum-labels": [
              "Open",
              "Closed",
              "Cancelled"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "consignment": {
            "type": "boolean"
          },
          "quantity_creditable": {
            "type": "number"
          },
          "creditable_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "line_count": {
            "type": "integer"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_shipped": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "credit_count": {
            "type": "integer",
            "description": "Its live credits"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the return came from holds it, refusing every verb on it while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the return prints on, each by the `form` `POST /documents` takes"
          },
          "purchase_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "credit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "close",
                    "cancel",
                    "credit",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "lines": {
            "$ref": "#/components/schemas/VendorReturnLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "buying",
        "x-role": "document"
      },
      "VendorReturnLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "condition_code",
          "serial_number",
          "releases",
          "vendor_return",
          "receipt_line",
          "part",
          "inventory_line",
          "receipt",
          "rejection",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_return_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "number"
          },
          "quantity_shipped": {
            "type": "number"
          },
          "quantity_outstanding": {
            "type": "number"
          },
          "part_number": {
            "type": "string"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "releases": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReleaseStub"
            }
          },
          "vendor_return": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "rejection": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RejectionStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "VendorRfq": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "reference",
          "currency_code",
          "vendor_quote_number",
          "internal_notes",
          "external_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "need_by",
          "valid_until",
          "trashed_at",
          "sent_at",
          "closed_at",
          "cancelled_at",
          "states",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "editable",
          "currency_locked",
          "contact_email_address",
          "quantity_requested",
          "quantity_quoted",
          "line_count",
          "quote_line_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "quote_lines_aligned_to_requests",
          "orderable",
          "total_cents",
          "home_total_cents",
          "priority",
          "contingent_core_charge_cents",
          "sourcing_requests",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "organization",
          "sourced_for",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_rfq"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "sent",
              "closed",
              "cancelled"
            ],
            "description": "`draft`: Being written; not yet sent to the vendor; `sent`: Sent to the vendor; answers may still come back; `closed`: Closed once the vendor's answers were in; `cancelled`: Called off; nothing more is asked",
            "x-enum-descriptions": [
              "Being written; not yet sent to the vendor",
              "Sent to the vendor; answers may still come back",
              "Closed once the vendor's answers were in",
              "Called off; nothing more is asked"
            ],
            "x-enum-labels": [
              "Draft",
              "Sent",
              "Closed",
              "Cancelled"
            ]
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "sent_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "states": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "awaiting",
                "answered",
                "declined",
                "converted",
                "expired"
              ],
              "x-enum-descriptions": [
                "Sent, with lines the vendor has not answered",
                "The vendor quoted at least one line",
                "The vendor answered every line with no quote",
                "A quoted line was bought on a purchase order",
                "Past the vendor quote's valid-until date"
              ],
              "x-enum-labels": [
                "Awaiting",
                "Answered",
                "Declined",
                "Converted",
                "Expired"
              ]
            },
            "description": "`awaiting`: Sent, with lines the vendor has not answered; `answered`: The vendor quoted at least one line; `declined`: The vendor answered every line with no quote; `converted`: A quoted line was bought on a purchase order; `expired`: Past the vendor quote's valid-until date"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "editable": {
            "type": "boolean"
          },
          "currency_locked": {
            "type": "boolean"
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": "number"
          },
          "quantity_quoted": {
            "type": "number"
          },
          "line_count": {
            "type": "number"
          },
          "quote_line_count": {
            "type": "number"
          },
          "unanswered_count": {
            "type": "integer",
            "description": "RFQ lines no quote line has priced or no-quoted yet"
          },
          "unpriced_count": {
            "type": "integer",
            "description": "Quote lines neither priced nor no-quoted"
          },
          "unrequested_count": {
            "type": "integer",
            "description": "Part quote lines answering no RFQ line, which `POST /vendor_rfqs/{uuid}/record_requests` can record RFQ lines for"
          },
          "quote_lines_aligned_to_requests": {
            "type": "boolean",
            "description": "Whether the quote lines already stand in their RFQ lines' order, which `POST /vendor_rfqs/{uuid}/align_lines` restores"
          },
          "orderable": {
            "type": "boolean"
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "contingent_core_charge_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "sourcing_requests": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourcingRequestStub"
            },
            "x-internal": true
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the RFQ came from holds it, refusing every verb on it and its lines but a copy while that system is the system of record; null for one no outside system holds"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the RFQ prints on, each by the `form` `POST /documents` takes"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "bill_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_email_to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Who `POST /vendor_rfqs/{uuid}/email` would offer to send it to: the RFQ's contact, else the contact's email address as typed on the RFQ; empty when none is known"
          },
          "default_email_subject": {
            "type": "string",
            "description": "The subject `POST /vendor_rfqs/{uuid}/email` sends when given none: its organization's Default template for its kind of email, else that kind's own words, filled from the RFQ"
          },
          "default_email_body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The body `POST /vendor_rfqs/{uuid}/email` sends when given none, from the same words as `default_email_subject`, its fields filled from the RFQ",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "troubled_email": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "message",
              "kind",
              "sent_at",
              "to_addresses",
              "cc_addresses",
              "recipients"
            ],
            "description": "The RFQ's last email while a recipient's mail server returned it, a recipient reported it as spam, or its delivery to one is delayed; null once a later email goes out, or while none of that holds. A bounced email is the one `POST /vendor_rfqs/{uuid}/email` sends again; nothing goes again to an address that reported it as spam, and a delay clears by itself once the email is delivered. None of it changes anything about the RFQ",
            "properties": {
              "message": {
                "$ref": "#/components/schemas/MessageStub"
              },
              "kind": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "vendor_rfq",
                  null
                ],
                "description": "The kind of email it was, one of the kinds `GET /email_kinds` lists that the RFQ sends, each attaching its own PDF (`vendor_rfq` the Vendor RFQ); `kind` names it to send it again. Null for a reply sent in the RFQ's conversation, which attached none"
              },
              "sent_at": {
                "type": "string",
                "format": "date-time"
              },
              "to_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who the email went to"
              },
              "cc_addresses": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Who it copied"
              },
              "recipients": {
                "type": "array",
                "description": "Each recipient it ran into trouble at, the worst first, and why",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "email_address",
                    "state",
                    "reason"
                  ],
                  "properties": {
                    "email_address": {
                      "type": "string"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "complained",
                        "bounced",
                        "delayed"
                      ],
                      "description": "`complained`: the recipient reported it as spam; `bounced`: their mail server returned it; `delayed`: their mail server hasn't accepted it yet, and it is still being tried"
                    },
                    "reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "freight_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "clause": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "ship_via": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ShipViaStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourced_for": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/CustomerQuoteStub"
                },
                {
                  "$ref": "#/components/schemas/SalesOrderStub"
                },
                {
                  "$ref": "#/components/schemas/PurchaseOrderStub"
                },
                {
                  "$ref": "#/components/schemas/RepairOrderStub"
                },
                {
                  "$ref": "#/components/schemas/WorkOrderStub"
                }
              ]
            },
            "description": "The quotes and orders its lines were sourced for, each once, in their sourcing requests' order"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "send",
                    "decline",
                    "close",
                    "email",
                    "cancel",
                    "copy",
                    "order",
                    "record_requests",
                    "align_lines",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "unlinked_part_numbers": {
            "type": "array",
            "description": "The part numbers typed on the RFQ's lines and quote lines that no catalog part names yet, one row per number however it was typed, with the lines typing it and the part already holding it: `matches` a part to link to, `inactive` a retired one, `new` none, `unusable` a number with no letter or digit. `POST /vendor_rfqs/{uuid}/resolve_part_numbers` links them. Present when `expand[]=unlinked_part_numbers` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "part_number_raw",
                "description",
                "lines",
                "part",
                "status"
              ],
              "properties": {
                "part_number_raw": {
                  "type": "string",
                  "description": "The number as the first line typing it typed it"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first description one of those lines carries"
                },
                "lines": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CustomerQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/CustomerRfqLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/InvoiceLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/PurchaseOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/SalesOrderLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorQuoteLineStub"
                      },
                      {
                        "$ref": "#/components/schemas/VendorRfqLineStub"
                      }
                    ]
                  }
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The catalog part already holding the number"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "matches",
                    "inactive",
                    "new",
                    "unusable"
                  ]
                }
              }
            }
          },
          "sourcing_request_quantities": {
            "type": "array",
            "description": "Each sourcing request the RFQ's lines ask for, with the RFQ lines asking and how much it still needs: `POST /vendor_rfqs/{uuid}/order` refuses quote lines for more than `quantity_remaining` unless `over_order` is true. Present when `expand[]=sourcing_request_quantities` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sourcing_request",
                "part_number",
                "part",
                "vendor_rfq_line_uuids",
                "quantity",
                "quantity_ordered",
                "quantity_remaining"
              ],
              "properties": {
                "sourcing_request": {
                  "$ref": "#/components/schemas/SourcingRequestStub"
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PartStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The part it asks for; null where it names no catalog part"
                },
                "vendor_rfq_line_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                },
                "quantity": {
                  "type": "number"
                },
                "quantity_ordered": {
                  "type": "number"
                },
                "quantity_remaining": {
                  "type": "number"
                }
              }
            }
          },
          "email_drafts": {
            "type": "array",
            "description": "The words `POST /vendor_rfqs/{uuid}/email` can send, each template filled from the RFQ, kind by kind: the one `default_email_subject` and `default_email_body` come from first (`chosen`), then the organization's other active templates of its kind, by name. Present when `expand[]=email_drafts` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "kind",
                "template",
                "chosen",
                "subject",
                "body",
                "cc_addresses",
                "adds_signature",
                "gaps"
              ],
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "vendor_rfq"
                  ],
                  "description": "The kind of email the words are for, one of the kinds `GET /email_kinds` lists that the RFQ sends, each attaching its own PDF (`vendor_rfq` the Vendor RFQ); `kind` names it to send them"
                },
                "template": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The template, which `template_uuid` names to send it; null for the kind's own words, used while no template is its Default"
                },
                "chosen": {
                  "type": "boolean",
                  "description": "Whether the email of its kind opens in these words"
                },
                "subject": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The subject filled from the RFQ, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "minItems": 1,
                      "maxItems": 1,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type"
                        ],
                        "properties": {
                          "type": {
                            "const": "paragraph"
                          },
                          "content": {
                            "type": "array",
                            "maxItems": 50,
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "text"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "text"
                                    },
                                    "text": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 250,
                                      "not": {
                                        "pattern": "[\\r\\n]"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "attrs"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "field"
                                    },
                                    "attrs": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "name"
                                      ],
                                      "properties": {
                                        "name": {
                                          "enum": [
                                            "identifier",
                                            "contact_first_name",
                                            "contact_name",
                                            "sender_name",
                                            "sender_title",
                                            "organization_name",
                                            "organization_phone"
                                          ]
                                        },
                                        "fallback": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "not": {
                                            "pattern": "[\\r\\n]"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "body": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type",
                    "content"
                  ],
                  "description": "The message filled from the RFQ, each field with no value left a field chip",
                  "properties": {
                    "type": {
                      "const": "doc"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 200,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "const": "paragraph"
                              },
                              "content": {
                                "type": "array",
                                "maxItems": 500,
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "text"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "text"
                                        },
                                        "text": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 20000
                                        },
                                        "marks": {
                                          "type": "array",
                                          "maxItems": 3,
                                          "items": {
                                            "oneOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "enum": [
                                                      "bold",
                                                      "italic"
                                                    ]
                                                  }
                                                }
                                              },
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "type",
                                                  "attrs"
                                                ],
                                                "properties": {
                                                  "type": {
                                                    "const": "link"
                                                  },
                                                  "attrs": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "href"
                                                    ],
                                                    "properties": {
                                                      "href": {
                                                        "type": "string",
                                                        "pattern": "^(https?://|mailto:)\\S+$",
                                                        "maxLength": 2000
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "hardBreak"
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "type",
                                        "attrs"
                                      ],
                                      "properties": {
                                        "type": {
                                          "const": "field"
                                        },
                                        "attrs": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "name"
                                          ],
                                          "properties": {
                                            "name": {
                                              "enum": [
                                                "identifier",
                                                "contact_first_name",
                                                "contact_name",
                                                "sender_name",
                                                "sender_title",
                                                "organization_name",
                                                "organization_phone"
                                              ]
                                            },
                                            "fallback": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "enum": [
                                  "bulletList",
                                  "orderedList"
                                ]
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "properties": {
                                  "start": {
                                    "type": "integer",
                                    "minimum": 1
                                  }
                                }
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 100,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type",
                                    "content"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "listItem"
                                    },
                                    "content": {
                                      "type": "array",
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "type"
                                        ],
                                        "properties": {
                                          "type": {
                                            "const": "paragraph"
                                          },
                                          "content": {
                                            "type": "array",
                                            "maxItems": 500,
                                            "items": {
                                              "oneOf": [
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "text"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "text"
                                                    },
                                                    "text": {
                                                      "type": "string",
                                                      "minLength": 1,
                                                      "maxLength": 20000
                                                    },
                                                    "marks": {
                                                      "type": "array",
                                                      "maxItems": 3,
                                                      "items": {
                                                        "oneOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "enum": [
                                                                  "bold",
                                                                  "italic"
                                                                ]
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "type",
                                                              "attrs"
                                                            ],
                                                            "properties": {
                                                              "type": {
                                                                "const": "link"
                                                              },
                                                              "attrs": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "href"
                                                                ],
                                                                "properties": {
                                                                  "href": {
                                                                    "type": "string",
                                                                    "pattern": "^(https?://|mailto:)\\S+$",
                                                                    "maxLength": 2000
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        ]
                                                      }
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "hardBreak"
                                                    }
                                                  }
                                                },
                                                {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "type",
                                                    "attrs"
                                                  ],
                                                  "properties": {
                                                    "type": {
                                                      "const": "field"
                                                    },
                                                    "attrs": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "name"
                                                      ],
                                                      "properties": {
                                                        "name": {
                                                          "enum": [
                                                            "identifier",
                                                            "contact_first_name",
                                                            "contact_name",
                                                            "sender_name",
                                                            "sender_title",
                                                            "organization_name",
                                                            "organization_phone"
                                                          ]
                                                        },
                                                        "fallback": {
                                                          "type": "string",
                                                          "minLength": 1,
                                                          "maxLength": 100
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                },
                "cc_addresses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Who the template copies"
                },
                "adds_signature": {
                  "type": "boolean",
                  "description": "Whether the sender's signature goes under the message"
                },
                "gaps": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "field",
                      "label",
                      "place",
                      "reads"
                    ],
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "identifier",
                          "contact_first_name",
                          "contact_name",
                          "sender_name",
                          "sender_title",
                          "organization_name",
                          "organization_phone"
                        ],
                        "description": "The field the words name, which has no value here and no fallback"
                      },
                      "label": {
                        "type": "string",
                        "description": "What its kind of email calls the field"
                      },
                      "place": {
                        "type": "string",
                        "enum": [
                          "subject",
                          "body"
                        ],
                        "description": "Whether the subject or the message leaves it out"
                      },
                      "reads": {
                        "type": "string",
                        "description": "The subject, or the paragraph of the message, as it reads without it"
                      }
                    }
                  },
                  "description": "Each field the words name that prints nothing for this RFQ"
                }
              }
            }
          },
          "email_senders": {
            "type": "array",
            "description": "Who `POST /vendor_rfqs/{uuid}/email` can send it as, for the caller: their own address first, then each of the organization's confirmed, active shared addresses on the domain it sends from, by address; empty while its sending address is being set up. Present when `expand[]=email_senders` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "sending_address",
                "email_address",
                "name",
                "hold",
                "falls_back"
              ],
              "properties": {
                "sending_address": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/SendingAddressStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The shared address, which `sending_address_uuid` names to send as it; null for the caller's own"
                },
                "email_address": {
                  "type": "string",
                  "description": "The address the email leaves from"
                },
                "name": {
                  "type": "string",
                  "description": "The name it shows beside the address"
                },
                "hold": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why nothing can be sent as it just now; null when it can"
                },
                "falls_back": {
                  "type": "boolean",
                  "description": "Whether it leaves from Terminal's own address, which a recipient's mail reads as a stranger's, rather than the organization's verified domain"
                }
              }
            }
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          },
          "quote_lines": {
            "$ref": "#/components/schemas/VendorQuoteLineList",
            "description": "Present when `expand[]=quote_lines` asked for it: the first page"
          },
          "rfq_lines": {
            "$ref": "#/components/schemas/VendorRfqLineList",
            "description": "Present when `expand[]=rfq_lines` asked for it: the first page"
          }
        },
        "x-area": "buying",
        "x-role": "document"
      },
      "VendorRfqLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "external_notes",
          "internal_notes",
          "priority",
          "requested_types",
          "quantity",
          "need_by",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "vendor_rfq",
          "part",
          "conditions",
          "sourcing_request",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "vendor_rfq_line"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the RFQ line's part; null where no part names it"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "`routine`: Ordinary lead time; no rush; `expedite`: Needed sooner than usual; moves ahead of routine work; `critical`: Urgent: an aircraft will be grounded soon without it; `aog`: Aircraft on ground: an airplane cannot fly until this arrives",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "outright",
                "exchange"
              ],
              "x-enum-descriptions": [
                "An outright sale: the unit changes hands for its price, with no core owed",
                "An exchange: a serviceable unit now, with a core unit owed back"
              ],
              "x-enum-labels": [
                "Outright",
                "Exchange"
              ]
            },
            "description": "`outright`: An outright sale: the unit changes hands for its price, with no core owed; `exchange`: An exchange: a serviceable unit now, with a core unit owed back"
          },
          "quantity": {
            "type": "number"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "reference": {
            "type": "string"
          },
          "sourcing_request_closed": {
            "type": "boolean",
            "x-internal": true
          },
          "response": {
            "type": "string",
            "enum": [
              "unanswered",
              "quoted",
              "declined"
            ],
            "description": "`unanswered`: No answer from the vendor recorded yet; `quoted`: The vendor answered with a price; `declined`: The vendor declined to quote",
            "x-enum-descriptions": [
              "No answer from the vendor recorded yet",
              "The vendor answered with a price",
              "The vendor declined to quote"
            ],
            "x-enum-labels": [
              "Unanswered",
              "Quoted",
              "Declined"
            ]
          },
          "line_count": {
            "type": "integer",
            "description": "The quote lines answering the RFQ line"
          },
          "vendor_rfq": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VendorRfqStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "sourcing_request": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/SourcingRequestStub"
              },
              {
                "type": "null"
              }
            ],
            "x-internal": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "quote"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "buying",
        "x-role": "line"
      },
      "ViewAudience": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "opens_first",
          "view",
          "team",
          "membership",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "view_audience"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "opens_first": {
            "type": "boolean",
            "description": "Whether the view's resource and context open on this view first for the audience, unless a person chose another to open by default; at most one per audience, resource and context"
          },
          "view": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "team": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The team it is given to; null for a person or everyone"
          },
          "membership": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person it is given to; null for a team or everyone"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "View": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "criteria",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "view"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "resource": {
            "type": "string",
            "description": "The path it reads, spelled as this description publishes it (`/sales_orders`, `/parts/{uuid}`); a filtered list takes `view=` this view's uuid from a seat that sees it, never a bot's"
          },
          "context": {
            "type": "string",
            "description": "The client's label for the place it is drawn in (`sales_orders`, `parts:overview-fields`), which the server checks for its format and matches on, never interpreting it"
          },
          "fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "The field or column keys it shows, in order; null for a saved filter, which each person reads in their own arrangement"
          },
          "sections": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "The section each moved field sits in, by field key; null where none is moved"
          },
          "sort": {
            "type": [
              "string",
              "null"
            ],
            "description": "The column it sorts by; null for the list's own order"
          },
          "direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "asc",
              "desc",
              null
            ],
            "description": "`asc`: Smallest, earliest or A first; `desc`: Largest, latest or Z first",
            "x-enum-descriptions": [
              "Smallest, earliest or A first",
              "Largest, latest or Z first",
              "Not set"
            ],
            "x-enum-labels": [
              "Asc",
              "Desc",
              "Not set"
            ]
          },
          "criteria": {
            "type": "object",
            "additionalProperties": true,
            "description": "The list's filters and their values, as its query names them (`{\"status\": [\"open\"]}`); empty on a page"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "give"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "give": "create_view_audience"
            }
          },
          "audiences": {
            "$ref": "#/components/schemas/ViewAudienceList",
            "description": "Present when `expand[]=audiences` asked for it: the first page, continued on `/views/{uuid}/audiences`"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ViewOpenings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "openings"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "view_openings"
          },
          "openings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "resource",
                "context",
                "view_uuid",
                "decided_by",
                "team",
                "outranks_view_uuid"
              ],
              "properties": {
                "resource": {
                  "type": "string",
                  "description": "The API path the view reads (`/sales_orders`)"
                },
                "context": {
                  "type": "string",
                  "description": "The place it is drawn in (`sales_orders`)"
                },
                "view_uuid": {
                  "type": "string",
                  "format": "uuid",
                  "description": "The view that place opens on for you"
                },
                "decided_by": {
                  "type": "string",
                  "enum": [
                    "your_choice",
                    "given_to_you",
                    "given_to_your_team",
                    "given_to_everyone"
                  ],
                  "description": "Why it opens there: you chose it to open by default, which comes first, or it was given to open first to you, then to a team of yours, then to everyone, the latest given first among equals"
                },
                "team": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The team it was given to open first for, when `decided_by` is `given_to_your_team`"
                },
                "outranks_view_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The view given to open first for you that your own choice passes over; null when none does"
                }
              }
            },
            "description": "One per place that opens on a view, ordered by resource then context"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "ViewPersonalization": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "opens_by_default",
          "view"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "view_personalization"
          },
          "resource": {
            "type": "string",
            "description": "The API path the view reads (`/sales_orders`), as the view has it"
          },
          "context": {
            "type": "string",
            "description": "The place the view is drawn in, as the view has it (`sales_orders`, `parts:overview-fields`)"
          },
          "fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "The field or column keys you show, in order; null as the view has them"
          },
          "sections": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "The section each field you moved sits in, by field key; null as the view has them"
          },
          "sort": {
            "type": [
              "string",
              "null"
            ],
            "description": "The column you sort it by; null as the view sorts"
          },
          "direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "asc",
              "desc",
              null
            ],
            "description": "`asc`: Smallest, earliest or A first; `desc`: Largest, latest or Z first",
            "x-enum-descriptions": [
              "Smallest, earliest or A first",
              "Largest, latest or Z first",
              "Not set"
            ],
            "x-enum-labels": [
              "Asc",
              "Desc",
              "Not set"
            ]
          },
          "opens_by_default": {
            "type": "boolean",
            "description": "Whether its resource and context open on this view for you, ahead of any view given to you to open first; at most one per resource and context"
          },
          "view": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The view it personalizes"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "Voucher": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "status",
          "invoice_number",
          "invoice_date",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "approved_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "currency_locked",
          "total_cents",
          "home_total_cents",
          "ordered_cents",
          "variance_cents",
          "charges_cents",
          "inventory_variance_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "vendor",
          "payment_term",
          "source",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "voucher"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "approved",
              "cancelled"
            ],
            "description": "`draft`: Being entered from the vendor's bill; not yet approved; `approved`: Approved and posted; what it bills is owed to the vendor; `cancelled`: Called off before approval; nothing is owed on it",
            "x-enum-descriptions": [
              "Being entered from the vendor's bill; not yet approved",
              "Approved and posted; what it bills is owed to the vendor",
              "Called off before approval; nothing is owed on it"
            ],
            "x-enum-labels": [
              "Draft",
              "Approved",
              "Cancelled"
            ]
          },
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency_code": {
            "type": "string"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "identifier": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "bill",
              "credit",
              "correction"
            ],
            "description": "`bill`: The vendor's bill for what an order bought or repaired; `credit`: The vendor's credit for what was returned to them; `correction`: Corrects a voucher already approved",
            "x-enum-descriptions": [
              "The vendor's bill for what an order bought or repaired",
              "The vendor's credit for what was returned to them",
              "Corrects a voucher already approved"
            ],
            "x-enum-labels": [
              "Voucher",
              "Credit",
              "Correction"
            ]
          },
          "editable": {
            "type": "boolean"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "approved_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The vendor bill's `invoice_date` plus its payment term's days, stamped on the voucher and fixed once it is approved"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "fx_rate_missing": {
            "type": "boolean"
          },
          "currency_locked": {
            "type": "boolean",
            "description": "The currency and FX rate can no longer change: it is approved or cancelled, or a line is priced from what it bills"
          },
          "total_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "home_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "ordered_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "variance_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "charges_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "inventory_variance_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`"
          },
          "paid_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "credited_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "balance_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "settlement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "unpaid",
              "partially_paid",
              "paid",
              "overpaid",
              "credited",
              "corrected",
              null
            ],
            "description": "`unpaid`: Owed in full: nothing paid yet; `partially_paid`: Some of it paid, a balance left; `paid`: Payments cleared the balance; `overpaid`: Payments came to more than was owed; `credited`: Credits cleared the balance with no payment; `corrected`: Corrections cleared the balance with no payment or credit",
            "x-enum-descriptions": [
              "Owed in full: nothing paid yet",
              "Some of it paid, a balance left",
              "Payments cleared the balance",
              "Payments came to more than was owed",
              "Credits cleared the balance with no payment",
              "Corrections cleared the balance with no payment or credit",
              "Not set"
            ],
            "x-enum-labels": [
              "Unpaid",
              "Partially paid",
              "Paid",
              "Overpaid",
              "Credited",
              "Corrected",
              "Not set"
            ]
          },
          "overdue": {
            "type": "boolean",
            "description": "Still `unpaid` or `partially_paid` past `due_on`, on the account's day"
          },
          "applied_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "vendor": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "payment_term": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/VendorReturnStub"
              },
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub; a purchase order's own stub where it is one; a repair order's own stub where it is one; a vendor return's own stub where it is one; a voucher's own stub where it is one"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "approve",
                    "cancel",
                    "correct",
                    "record_payment",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "record_payment": "create_vendor_payment"
            }
          },
          "billed_on_another_order": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "voucher",
              "source"
            ],
            "description": "The approved voucher on another order already carrying this one's vendor invoice number, which `POST /vouchers/{uuid}/approve` lets through as one invoice spanning both; null where none does. Present when `expand[]=billed_on_another_order` asked for it",
            "properties": {
              "voucher": {
                "$ref": "#/components/schemas/VoucherStub"
              },
              "source": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/PurchaseOrderStub"
                  },
                  {
                    "$ref": "#/components/schemas/RepairOrderStub"
                  },
                  {
                    "$ref": "#/components/schemas/VendorReturnStub"
                  },
                  {
                    "$ref": "#/components/schemas/VoucherStub"
                  }
                ]
              }
            }
          },
          "lines": {
            "$ref": "#/components/schemas/VoucherLineList",
            "description": "Present when `expand[]=lines` asked for it: the first page"
          }
        },
        "x-area": "money",
        "x-role": "document"
      },
      "VoucherLine": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "description",
          "part_number_raw",
          "unit_cost_cents",
          "ordered_unit_cost_cents",
          "tax_cents",
          "ordered_tax_cents",
          "uuid",
          "kind",
          "quantity",
          "correction",
          "line_total_cents",
          "ordered_total_cents",
          "variance_cents",
          "capitalized_into",
          "quantity_received",
          "inventory_line_protected",
          "currency_code",
          "receipt_line",
          "order_line",
          "company",
          "part",
          "charge",
          "inventory_line",
          "receipt",
          "voucher",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "voucher_line"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "ordered_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "ordered_tax_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "enum": [
              "part",
              "charge"
            ]
          },
          "quantity": {
            "type": "number"
          },
          "correction": {
            "type": "boolean"
          },
          "line_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "ordered_total_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "variance_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`"
          },
          "capitalized_into": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_received": {
            "type": [
              "number",
              "null"
            ]
          },
          "inventory_line_protected": {
            "type": "boolean"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the voucher's"
          },
          "receipt_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The receipt line it bills"
          },
          "order_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PurchaseOrderLineStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The purchase or repair order line behind it"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The vendor billing it, by its company"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "charge": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "voucher": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/VoucherStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The bill the line is on"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "money",
        "x-role": "line"
      },
      "Warehouse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "code",
          "tool_crib",
          "migration_hold",
          "inactive_at",
          "source_fields",
          "organization",
          "facility",
          "hidden_marketplaces",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "warehouse"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_crib": {
            "type": "boolean"
          },
          "migration_hold": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the outside system the warehouse came from holds it, refusing a change to its name, code, tool crib, organization, facility or whether it is active while that system is the system of record; null for one no outside system holds"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source_fields": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "null"
              ]
            },
            "description": "The fields the system it came over from held that no column takes, by that system's names, each value as text or null as that system sent it; empty where a migration brought none"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The facility the warehouse is at, and ships from"
          },
          "hidden_marketplaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CodedStub"
            }
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "overview_counts": {
            "type": "object",
            "description": "What is filed under the warehouse: its bins, inactive ones included. Present when `expand[]=overview_counts` asked for it",
            "additionalProperties": false,
            "properties": {
              "bins": {
                "type": "integer"
              }
            },
            "required": [
              "bins"
            ]
          },
          "external_keys": {
            "$ref": "#/components/schemas/ExternalKeyList",
            "description": "Present when `expand[]=external_keys` asked for it: the first page"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WarehouseWorkItem": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "step",
          "kind",
          "urgency",
          "due_on",
          "line_count",
          "bins",
          "ship_refusal",
          "detail",
          "subject",
          "company",
          "open_receipt"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "warehouse_work_item"
          },
          "step": {
            "type": "string",
            "enum": [
              "pick",
              "check",
              "ship",
              "receive"
            ],
            "description": "`pick`: A release with a part line not yet picked; `check`: A release with a picked line waiting on its outbound QC checklist; `ship`: A release with a line picked and checked, or picked where no checklist runs; `receive`: An order owed goods with a line due by today",
            "x-enum-descriptions": [
              "A release with a part line not yet picked",
              "A release with a picked line waiting on its outbound QC checklist",
              "A release with a line picked and checked, or picked where no checklist runs",
              "An order owed goods with a line due by today"
            ],
            "x-enum-labels": [
              "Pick",
              "Check",
              "Ship",
              "Receive"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "release",
              "purchase_order",
              "repair_order",
              "customer_return",
              "customer_exchange",
              "customer_lease",
              "work_order",
              "manifest",
              "sales_order"
            ],
            "description": "Which kind of record the row is about; `kind[]=` narrows by it",
            "x-enum-descriptions": [
              "A release the warehouse picks, checks or ships",
              "A part we bought, on its way from the vendor",
              "Our unit coming back from the repair shop",
              "A customer's units coming back",
              "A customer's exchange core coming back",
              "Our leased unit coming back from the customer",
              "A customer's own unit arriving for work in our shop",
              "A cost pool's parts still expected off its manifest",
              "A customer's unit coming in for the repair we sold them"
            ],
            "x-enum-labels": [
              "Release",
              "Purchase order",
              "Repair order",
              "Customer return",
              "Exchange",
              "Lease",
              "Work order",
              "Manifest",
              "Sales order"
            ]
          },
          "urgency": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ],
            "description": "The release's urgency; null on an order, which sorts and filters as routine",
            "x-enum-descriptions": [
              "Ordinary lead time; no rush",
              "Needed sooner than usual; moves ahead of routine work",
              "Urgent: an aircraft will be grounded soon without it",
              "Aircraft on ground: an airplane cannot fly until this arrives",
              "Not set"
            ],
            "x-enum-labels": [
              "Routine",
              "Expedite",
              "Critical",
              "AOG",
              "Not set"
            ]
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The release's requested ship day, or the earliest day a line on the order is due; null where none is set"
          },
          "line_count": {
            "type": "integer",
            "description": "How many of the release's lines stand at the step, or how many of the order's lines still owe goods"
          },
          "bins": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The bins a release's lines to pick sit in, each once; empty past the pick step and on an order"
          },
          "ship_refusal": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why `POST /releases/{uuid}/ship` refuses the release now; null when it ships, and past the ship step"
          },
          "detail": {
            "type": "string",
            "description": "What to do, as the row says it"
          },
          "subject": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReleaseStub"
              },
              {
                "$ref": "#/components/schemas/PurchaseOrderStub"
              },
              {
                "$ref": "#/components/schemas/RepairOrderStub"
              },
              {
                "$ref": "#/components/schemas/CustomerReturnStub"
              },
              {
                "$ref": "#/components/schemas/CustomerExchangeStub"
              },
              {
                "$ref": "#/components/schemas/CustomerLeaseStub"
              },
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "$ref": "#/components/schemas/ManifestStub"
              },
              {
                "$ref": "#/components/schemas/SalesOrderStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The release to pick, check or ship, or the order to receive"
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer or vendor the release ships to or the order is with"
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's receipt in progress, which the row opens; null on a release and until one is open"
          }
        },
        "x-area": "warehouse",
        "x-role": "master_data"
      },
      "WebhookDelivery": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "type",
          "status",
          "attempts",
          "response_status",
          "error",
          "next_attempt_at",
          "last_attempted_at",
          "delivered_at",
          "event",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "webhook_delivery"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "type": "string",
            "description": "`<object>.<action>`, as the event it carries is typed"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed",
              "skipped"
            ],
            "description": "`pending`: Queued and not yet delivered; `succeeded`: The endpoint accepted it; `failed`: The endpoint refused it or could not be reached; `skipped`: Never sent: the endpoint is inactive",
            "x-enum-descriptions": [
              "Queued and not yet delivered",
              "The endpoint accepted it",
              "The endpoint refused it or could not be reached",
              "Never sent: the endpoint is inactive"
            ],
            "x-enum-labels": [
              "Pending",
              "Delivered",
              "Failed",
              "Skipped"
            ]
          },
          "attempts": {
            "type": "integer"
          },
          "response_status": {
            "type": [
              "integer",
              "null"
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          },
          "next_attempt_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "last_attempted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "delivered_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "event": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EventStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "resend"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "WebhookEndpoint": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "url",
          "description",
          "secret",
          "enabled_actions",
          "inactive_at",
          "creator",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "webhook_endpoint"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "url": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "secret": {
            "type": "string"
          },
          "enabled_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "*",
                "access_token_minted",
                "access_token_revoked",
                "activated",
                "added_to_receipt",
                "added_to_repair_order",
                "added_to_suppression_list",
                "answered_no_quote",
                "application_authorized",
                "application_revoked",
                "applied",
                "approved",
                "arrived",
                "asked",
                "asked_for",
                "assigned",
                "assignments_forgotten",
                "autoquoted",
                "bought_outright",
                "built",
                "calendar_feed_issued",
                "calendar_feed_reset",
                "calibrated",
                "cancelled",
                "capabilities_changed",
                "carried_over",
                "certificate_deleted",
                "certificate_drafted",
                "certificate_revised",
                "certificate_signed",
                "certificate_signed_by_hand",
                "certificate_voided",
                "change_acknowledged",
                "charge_billed",
                "checked",
                "chosen_to_open_first",
                "closed",
                "combined",
                "combined_into",
                "comparison_stated",
                "company_linked",
                "company_unlinked",
                "completed",
                "condition_mapped",
                "confirmed",
                "connected",
                "contacts_changed",
                "conversion_reverted",
                "converted",
                "converted_to_cost_pool",
                "copied",
                "copied_from",
                "core_added_to_repair_order",
                "core_allocated",
                "core_billed",
                "core_bought",
                "core_due_revised",
                "core_owed",
                "core_purchase_removed",
                "core_received",
                "core_repair_billed",
                "core_returned_to_inventory",
                "core_scrapped",
                "core_shipped",
                "core_unshipped",
                "corrected",
                "correction_generated",
                "cost_pool_revised",
                "cost_recovered",
                "cost_transferred_in",
                "cost_transferred_out",
                "cost_unpriced",
                "cost_variance",
                "created",
                "credentials_changed",
                "credit_generated",
                "credit_memo_generated",
                "credit_memo_sent",
                "credited",
                "currency_changed",
                "custody_allocated",
                "custody_returned",
                "customer_replied",
                "customer_unit_received",
                "customer_unit_returned",
                "customer_unit_scrapped",
                "deactivated",
                "declined",
                "declined_quote_sending_started",
                "declined_quote_sending_stopped",
                "defaults_changed",
                "deleted",
                "did_not_arrive",
                "direct_rfq_answers_changed",
                "disconnected",
                "downloaded",
                "draft_discarded",
                "drafted",
                "drafted_from_message",
                "due_back_revised",
                "duplicated",
                "duplicated_from",
                "email_bounced",
                "email_reported_as_spam",
                "email_resumed",
                "email_stopped",
                "email_template_chosen",
                "email_template_cleared",
                "emailed",
                "exchange_activity_recorded",
                "exchange_cancelled",
                "exchange_opened",
                "expired",
                "external_key_linked",
                "external_key_unlinked",
                "failed",
                "fields_drafted",
                "file_attached",
                "file_copying_started",
                "file_copying_stopped",
                "file_removed",
                "files_shared",
                "finding_added",
                "finding_removed",
                "finding_updated",
                "finish_refused",
                "finish_scheduled",
                "finished",
                "following_revised",
                "fx_rate_stamped",
                "gate_reached",
                "generated",
                "given",
                "held",
                "held_for_review",
                "hidden_marketplaces_changed",
                "hold_lifted",
                "hold_placed",
                "humidity_over_limit",
                "ignored",
                "initial_load_reopened",
                "inspection_completed",
                "inspection_discarded",
                "inspection_item_answered",
                "inspection_item_waived",
                "inspection_reopened",
                "inspection_started",
                "instruction_added",
                "instruction_assigned",
                "instruction_cancelled",
                "instruction_carried_forward",
                "instruction_completed",
                "instruction_removed",
                "instruction_reopened",
                "instruction_updated",
                "instructions_imported",
                "inventory_line_minted",
                "invited",
                "invoice_generated",
                "invoice_sent",
                "issue_allocated",
                "issue_quarantined",
                "issue_removed",
                "issue_seeded",
                "issue_split_planned",
                "kept_as_draft",
                "kept_from_autoquote",
                "labor_clocked_in",
                "labor_charged",
                "labor_clocked_out",
                "labor_corrected",
                "labor_keyed",
                "labor_removed",
                "layout_fell_back",
                "lease_opened",
                "lease_unit_allocated",
                "line_added",
                "line_allocated",
                "line_cancelled",
                "line_deallocated",
                "line_estimate_approved",
                "line_estimate_recorded",
                "line_final_cost_recorded",
                "line_matched",
                "line_moved",
                "line_picked",
                "line_promise_revised",
                "line_rejected",
                "line_removed",
                "line_repointed",
                "line_returned_to_inventory",
                "line_scrapped",
                "line_shipped",
                "line_split",
                "line_unpicked",
                "line_unshipped",
                "line_unverified",
                "line_updated",
                "line_verified",
                "lines_aligned_to_requests",
                "lines_imported",
                "lines_moved_in",
                "lines_reordered",
                "load_failed",
                "loaded",
                "logged",
                "lost",
                "lost_reason_changed",
                "mapping_saved",
                "material_added",
                "material_added_to_repair_order",
                "material_flagged_unused",
                "material_issued",
                "material_moved",
                "material_ordered",
                "material_reallocated",
                "material_rejected",
                "material_removed",
                "material_returned",
                "material_turn_in_cancelled",
                "material_turned_in",
                "material_updated",
                "material_visually_checked",
                "materials_imported",
                "measurement_unit_mapped",
                "members_changed",
                "moved",
                "noted_from_message",
                "occurrence_cancelled",
                "occurrence_revised",
                "onboarding_dismissed",
                "onboarding_undismissed",
                "opened",
                "ordered",
                "orders_left_waiting",
                "outright_purchase_removed",
                "package_added",
                "package_arrived",
                "part_numbers_resolved",
                "part_removed",
                "participant_added",
                "parts_added",
                "parts_issued",
                "parts_returned_to_inventory",
                "parts_shipped",
                "parts_unshipped",
                "payment_applied",
                "payment_recorded",
                "payment_unapplied",
                "payment_voided",
                "period_billed",
                "period_charged",
                "posted",
                "posting_recorded",
                "print_expired",
                "print_failed",
                "print_requested",
                "printed",
                "promise_revised",
                "protection_held",
                "protection_released",
                "published",
                "publications_applied",
                "publications_changed",
                "purchased_without_coverage",
                "push_back_scheduled",
                "quickbooks_linked",
                "quickbooks_relinked",
                "quickbooks_unlinked",
                "quote_line_added",
                "quote_line_moved",
                "quote_line_removed",
                "quote_line_updated",
                "quote_lines_aligned_to_requests",
                "quoted_unit_unavailable",
                "quoted_vendor_inventory_unavailable",
                "quoting_reading_started",
                "quoting_reading_stopped",
                "rate_revised",
                "read",
                "receipt_created",
                "receipt_received",
                "received",
                "recorded",
                "records_skipped",
                "records_unskipped",
                "refund_clamped",
                "reissued",
                "removed_from_suppression_list",
                "renamed",
                "release_cancelled",
                "release_generated",
                "release_shipped",
                "release_split",
                "release_unshipped",
                "releases_combined",
                "reopened",
                "repair_service_mapped",
                "replacement_ordered",
                "reply_handled",
                "reposted",
                "reprint_requested",
                "reprinted",
                "reprocessed",
                "request_line_added",
                "request_line_moved",
                "request_line_removed",
                "request_line_updated",
                "requested_for",
                "requirement_added",
                "requirement_removed",
                "requirement_waived",
                "requirements_changed",
                "resent",
                "restated_from_message",
                "restored",
                "resumed",
                "return_opened",
                "returned_to_inventory",
                "returned_to_queue",
                "returned_to_vendor",
                "revision_adopted",
                "role_mapped",
                "roles_changed",
                "scrapped",
                "sender_allowed",
                "sender_blocked",
                "sending_domain_failing",
                "sending_domain_recovered",
                "sent",
                "sent_to_avsight",
                "sent_to_purchasing",
                "sent_to_sourcing",
                "share_extended",
                "share_fresh_link_sent",
                "share_link_reissued",
                "share_recipient_extended",
                "share_recipient_revoked",
                "share_recipients_added",
                "share_revised",
                "share_revoked",
                "shared_document_replaced",
                "shared_file_downloaded",
                "shared_file_removed",
                "shared_files_added",
                "shared_files_downloaded",
                "shared_files_opened",
                "shipment_cancelled",
                "shipped",
                "shop_supply_added",
                "shop_supply_removed",
                "shop_supply_updated",
                "signed_out",
                "signer_skill_changed",
                "skipped",
                "skipped_away",
                "sold_outright",
                "sourcing_request_carried_over",
                "split",
                "split_from",
                "phases_changed",
                "statement_sent",
                "status_changed",
                "stopped_opening_first",
                "superseded",
                "supply_claimed",
                "supply_landed",
                "supply_reassigned",
                "supply_released",
                "support_access_turned_off",
                "support_access_turned_on",
                "system_of_record_switched",
                "task_added",
                "task_assigned",
                "task_cancelled",
                "task_removed",
                "task_skills_changed",
                "task_status_changed",
                "task_updated",
                "tasks_imported",
                "tasks_made_ready",
                "tasks_repriced",
                "tax_applied",
                "tax_suppressed",
                "teardown_completed",
                "teardown_undone",
                "template_applied",
                "template_instructions_copied",
                "template_materials_copied",
                "tier_changed",
                "trashed",
                "trigger_skipped",
                "unit_added_to_repair_order",
                "unit_returned",
                "unit_shipped_back",
                "unit_unshipped",
                "unrecovered_cost_billed",
                "updated",
                "value_adjusted",
                "value_matches_changed",
                "verified",
                "version_added",
                "voucher_generated",
                "vouchered",
                "warehouse_defaults_applied",
                "warehouse_defaults_dismissed",
                "withdrawn",
                "won",
                "work_completed",
                "work_started",
                "written_off"
              ],
              "x-enum-labels": [
                "Every action",
                "Access token minted",
                "Access token revoked",
                "Activated",
                "Added to receipt",
                "Added to repair order",
                "Added to suppression list",
                "Answered no quote",
                "Application authorized",
                "Application revoked",
                "Rows applied",
                "Approved",
                "Arrived",
                "Asked",
                "Asked for",
                "Assigned",
                "Assignments forgotten",
                "Autoquoted",
                "Bought outright",
                "Built",
                "Calendar feed issued",
                "Calendar feed reset",
                "Calibrated",
                "Cancelled",
                "Capabilities changed",
                "Carried over",
                "Certificate deleted",
                "Certificate drafted",
                "Certificate revised",
                "Certificate signed",
                "Certificate signed by hand",
                "Certificate voided",
                "Change acknowledged",
                "Charge billed",
                "Rows checked",
                "Chosen to open first",
                "Closed",
                "Combined",
                "Combined into",
                "Comparison stated",
                "Company linked",
                "Company unlinked",
                "Completed",
                "Condition mapped",
                "Confirmed",
                "Connected",
                "Contacts changed",
                "Conversion reverted",
                "Converted",
                "Converted to cost pool",
                "Copied",
                "Copied from",
                "Core added to repair order",
                "Core allocated",
                "Core billed",
                "Core bought",
                "Core due revised",
                "Core owed",
                "Core purchase removed",
                "Core received",
                "Core repair billed",
                "Core returned to inventory",
                "Core scrapped",
                "Core shipped",
                "Core unshipped",
                "Corrected",
                "Correction generated",
                "Cost pool revised",
                "Cost recovered",
                "Cost transferred in",
                "Cost transferred out",
                "Cost unpriced",
                "Cost variance",
                "Created",
                "Credentials changed",
                "Credit generated",
                "Credit memo generated",
                "Credit memo sent",
                "Credited",
                "Currency changed",
                "Custody allocated",
                "Custody returned",
                "Customer replied",
                "Customer unit received",
                "Customer unit returned",
                "Customer unit scrapped",
                "Deactivated",
                "Declined",
                "Declined quote sending started",
                "Declined quote sending stopped",
                "Defaults changed",
                "Deleted",
                "Did not arrive",
                "Direct RFQ answers changed",
                "Disconnected",
                "Form downloaded",
                "Draft discarded",
                "Drafted",
                "Drafted from message",
                "Due back revised",
                "Duplicated",
                "Duplicated from",
                "Email bounced",
                "Email reported as spam",
                "Email resumed",
                "Email stopped",
                "Email template chosen",
                "Email template cleared",
                "Emailed",
                "Exchange activity recorded",
                "Exchange cancelled",
                "Exchange opened",
                "Expired",
                "External key linked",
                "External key unlinked",
                "Failed",
                "Fields drafted",
                "File attached",
                "File copying started",
                "File copying stopped",
                "File removed",
                "Files shared",
                "Finding added",
                "Finding removed",
                "Finding updated",
                "Finish refused",
                "Finish scheduled",
                "Finished",
                "This and following changed",
                "FX rate stamped",
                "Gate reached",
                "Form generated",
                "Given",
                "Held",
                "Held for review",
                "Hidden marketplaces changed",
                "Hold lifted",
                "Hold placed",
                "Humidity over limit",
                "Ignored",
                "Initial load reopened",
                "Inspection completed",
                "Inspection discarded",
                "Inspection item answered",
                "Inspection item waived",
                "Inspection reopened",
                "Inspection started",
                "Instruction added",
                "Instruction assigned",
                "Instruction cancelled",
                "Instruction carried forward",
                "Instruction completed",
                "Instruction removed",
                "Instruction reopened",
                "Instruction updated",
                "Instructions imported",
                "Inventory line minted",
                "Invited",
                "Invoice generated",
                "Invoice sent",
                "Issue allocated",
                "Issue quarantined",
                "Issue removed",
                "Issue seeded",
                "Issue split planned",
                "Kept as draft",
                "Kept from autoquote",
                "Labor clocked in",
                "Labor charged",
                "Labor clocked out",
                "Labor corrected",
                "Labor keyed",
                "Labor removed",
                "Layout fell back",
                "Lease opened",
                "Lease unit allocated",
                "Line added",
                "Line allocated",
                "Line cancelled",
                "Line deallocated",
                "Line estimate approved",
                "Line estimate recorded",
                "Line final cost recorded",
                "Line matched",
                "Line moved",
                "Line picked",
                "Line promise revised",
                "Line rejected",
                "Line removed",
                "Line repointed",
                "Line returned to inventory",
                "Line scrapped",
                "Line shipped",
                "Line split",
                "Line unpicked",
                "Line unshipped",
                "Line unverified",
                "Line updated",
                "Line verified",
                "Lines aligned to requests",
                "Lines imported",
                "Lines moved in",
                "Lines reordered",
                "Load failed",
                "Loaded",
                "Logged",
                "Lost",
                "Lost reason changed",
                "Mapping saved",
                "Material added",
                "Material added to repair order",
                "Material flagged unused",
                "Material issued",
                "Material moved",
                "Material ordered",
                "Material reallocated",
                "Material rejected",
                "Material removed",
                "Material returned",
                "Material turn in cancelled",
                "Material turned in",
                "Material updated",
                "Material visually checked",
                "Materials imported",
                "Measurement unit mapped",
                "Members changed",
                "Moved",
                "Noted from message",
                "Occurrence cancelled",
                "Occurrence changed",
                "Onboarding dismissed",
                "Onboarding undismissed",
                "Opened",
                "Ordered",
                "Orders left waiting",
                "Outright purchase removed",
                "Package added",
                "Package arrived",
                "Part numbers resolved",
                "Part removed",
                "Participant added",
                "Parts added",
                "Parts issued",
                "Parts returned to inventory",
                "Parts shipped",
                "Parts unshipped",
                "Payment applied",
                "Payment recorded",
                "Payment unapplied",
                "Payment voided",
                "Period billed",
                "Period charged",
                "Posted",
                "Posting recorded",
                "Print expired",
                "Print failed",
                "Print requested",
                "Printed",
                "Promise revised",
                "Protection held",
                "Protection released",
                "Published",
                "Publications applied",
                "Publications changed",
                "Purchased without coverage",
                "Push back scheduled",
                "QuickBooks linked",
                "QuickBooks relinked",
                "QuickBooks unlinked",
                "Quote line added",
                "Quote line moved",
                "Quote line removed",
                "Quote line updated",
                "Quote lines aligned to requests",
                "Quoted unit unavailable",
                "Quoted vendor inventory unavailable",
                "Quoting reading started",
                "Quoting reading stopped",
                "Rate revised",
                "Read",
                "Receipt created",
                "Receipt received",
                "Received",
                "Recorded",
                "Records skipped",
                "Records unskipped",
                "Refund clamped",
                "Reissued",
                "Removed from suppression list",
                "Renamed",
                "Release cancelled",
                "Release generated",
                "Release shipped",
                "Release split",
                "Release unshipped",
                "Releases combined",
                "Reopened",
                "Repair service mapped",
                "Replacement ordered",
                "Reply handled",
                "Reposted",
                "Reprint requested",
                "Reprinted",
                "Reprocessed",
                "Request line added",
                "Request line moved",
                "Request line removed",
                "Request line updated",
                "Requested for",
                "Requirement added",
                "Requirement removed",
                "Requirement waived",
                "Requirements changed",
                "Resent",
                "Restated from message",
                "Restored",
                "Resumed",
                "Return opened",
                "Returned to inventory",
                "Returned to queue",
                "Returned to vendor",
                "Revision adopted",
                "Role mapped",
                "Roles changed",
                "Scrapped",
                "Sender allowed",
                "Sender blocked",
                "Sending domain failing",
                "Sending domain recovered",
                "Sent",
                "Sent to AvSight",
                "Sent to purchasing",
                "Sent to sourcing",
                "Share extended",
                "Share fresh link sent",
                "Share link reissued",
                "Share recipient extended",
                "Share recipient revoked",
                "Share recipients added",
                "Share revised",
                "Share revoked",
                "Shared document replaced",
                "Shared file downloaded",
                "Shared file removed",
                "Shared files added",
                "Shared files downloaded",
                "Shared files opened",
                "Shipment cancelled",
                "Shipped",
                "Shop supply added",
                "Shop supply removed",
                "Shop supply updated",
                "Signed out",
                "Signer skill changed",
                "Skipped",
                "Skipped away",
                "Sold outright",
                "Sourcing request carried over",
                "Split",
                "Split from",
                "Phases changed",
                "Statement sent",
                "Status changed",
                "Stopped opening first",
                "Superseded",
                "Supply claimed",
                "Supply landed",
                "Supply reassigned",
                "Supply released",
                "Support access turned off",
                "Support access turned on",
                "Made CorePilot the system of record",
                "Task added",
                "Task assigned",
                "Task cancelled",
                "Task removed",
                "Task skills changed",
                "Task status changed",
                "Task updated",
                "Tasks imported",
                "Tasks made ready to work",
                "Tasks repriced",
                "Tax applied",
                "Tax suppressed",
                "Teardown completed",
                "Teardown undone",
                "Template applied",
                "Template instructions copied",
                "Template materials copied",
                "Tier changed",
                "Trashed",
                "Trigger skipped",
                "Unit added to repair order",
                "Unit returned",
                "Unit shipped back",
                "Unit unshipped",
                "Unrecovered cost billed",
                "Updated",
                "Value adjusted",
                "Value matches changed",
                "Verified",
                "Version added",
                "Voucher generated",
                "Vouchered",
                "Warehouse defaults applied",
                "Warehouse defaults dismissed",
                "Withdrawn",
                "Won",
                "Work completed",
                "Work started",
                "Written off"
              ]
            },
            "description": "The actions it is told of, as the activity feed names them; `*` is every action, those added later included"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "creator": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete",
                    "test",
                    "rotate_secret"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "integration",
        "x-role": "machinery"
      },
      "WorkCenter": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_center"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkInstruction": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "notes",
          "status",
          "carried_forward_note",
          "completed_at",
          "environment_check",
          "max_humidity_percent",
          "humidity_percent",
          "temperature",
          "temperature_unit",
          "starts_on",
          "due_on",
          "over_limit",
          "skill_caution",
          "work_order_task",
          "skill",
          "work_station",
          "assigned_to",
          "completed_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_instruction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "completed",
              "carried_forward",
              "cancelled"
            ],
            "description": "Moved by `POST …/complete`, `…/carry_forward`, `…/cancel` and `…/reopen`; completed and carried forward count as done for the task's percent complete",
            "x-enum-descriptions": [
              "Still to be done",
              "Done, with who completed it and when",
              "Left for later work, with a note saying why; it counts as done for its task",
              "Called off; it counts toward nothing"
            ],
            "x-enum-labels": [
              "Open",
              "Completed",
              "Carried forward",
              "Cancelled"
            ]
          },
          "carried_forward_note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why it was left for later, given by `POST …/carry_forward`"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "environment_check": {
            "type": "boolean",
            "description": "Whether it is a humidity and temperature check, completed only with its reading"
          },
          "max_humidity_percent": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The highest relative humidity the check allows; null unless it is a check"
          },
          "humidity_percent": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The relative humidity read when the check was completed"
          },
          "temperature": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The temperature read beside the humidity, in `temperature_unit`; held to no limit"
          },
          "temperature_unit": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "celsius",
              "fahrenheit",
              null
            ],
            "description": "`celsius`: Degrees Celsius; `fahrenheit`: Degrees Fahrenheit",
            "x-enum-descriptions": [
              "Degrees Celsius",
              "Degrees Fahrenheit",
              "Not set"
            ],
            "x-enum-labels": [
              "Celsius",
              "Fahrenheit",
              "Not set"
            ]
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day an open check comes due, when it shows on My Work"
          },
          "over_limit": {
            "type": "boolean",
            "description": "Whether the humidity read is over the check's limit; an over-limit reading still completes it"
          },
          "skill_caution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Says the reader's own employee doesn't hold the skill it asks for today; null when they do, when it asks none, or for a reader who is no employee"
          },
          "work_order_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill whoever does it holds; null takes any of the task's"
          },
          "work_station": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where on the shop floor it is done; null when it names none"
          },
          "assigned_to": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who does it, set when it is added or edited, or by `POST …/assign`"
          },
          "completed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "assign",
                    "complete",
                    "carry_forward",
                    "cancel",
                    "reopen",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrder": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "identifier",
          "status",
          "work_scope",
          "deal_type",
          "work_order_type",
          "outcome",
          "part_number",
          "part_number_raw",
          "description",
          "serial_number",
          "quantity_to_repair",
          "quantity_received",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "customer_po_number",
          "customer_reference",
          "internal_notes",
          "part_markings",
          "contact_name_raw",
          "contact_email_address_raw",
          "contact_email_address",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_on",
          "spending_limit_cents",
          "home_spending_limit_cents",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "received_at",
          "evaluating_at",
          "awaiting_approval_at",
          "in_work_at",
          "awaiting_inspection_at",
          "completed_at",
          "closed_at",
          "cancelled_at",
          "trashed_at",
          "import_count",
          "export_count",
          "home_labor_wip_cents",
          "home_parts_wip_cents",
          "ship_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "publications",
          "template_caution",
          "document_forms",
          "stage",
          "next_stages",
          "customer",
          "contact",
          "open_receipt",
          "contacts",
          "part",
          "repair_service",
          "technician",
          "work_center",
          "gate",
          "default_parts_task",
          "final_condition",
          "customer_quote",
          "customer_quote_line",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_unit",
              "received",
              "evaluating",
              "awaiting_approval",
              "in_work",
              "awaiting_inspection",
              "completed",
              "closed",
              "cancelled"
            ],
            "description": "`awaiting_unit`: Opened before the customer's unit arrived; nothing is in the shop yet; `received`: The customer's unit is in; work has not started; `evaluating`: The unit is being inspected to find what it needs; `awaiting_approval`: Waiting on the customer to approve the work found; `in_work`: The shop is working on the unit; `awaiting_inspection`: The work is done and waits for its inspection; `completed`: The work and its inspection are finished; the unit is ready to go home; `closed`: Finished: every unit has gone home; `cancelled`: Called off before any unit arrived, or after every unit went home unworked",
            "x-enum-descriptions": [
              "Opened before the customer's unit arrived; nothing is in the shop yet",
              "The customer's unit is in; work has not started",
              "The unit is being inspected to find what it needs",
              "Waiting on the customer to approve the work found",
              "The shop is working on the unit",
              "The work is done and waits for its inspection",
              "The work and its inspection are finished; the unit is ready to go home",
              "Finished: every unit has gone home",
              "Called off before any unit arrived, or after every unit went home unworked"
            ],
            "x-enum-labels": [
              "Awaiting unit",
              "Received",
              "Evaluating",
              "Awaiting approval",
              "In work",
              "Awaiting inspection",
              "Completed",
              "Closed",
              "Cancelled"
            ]
          },
          "work_scope": {
            "type": "string",
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify"
            ],
            "description": "`inspect_test`: Inspected and/or tested, with no repair; `repair`: Repaired to a serviceable condition; `overhaul`: Overhauled to the manufacturer's overhaul standard; `modify`: Modified, as a service bulletin or design change says",
            "x-enum-descriptions": [
              "Inspected and/or tested, with no repair",
              "Repaired to a serviceable condition",
              "Overhauled to the manufacturer's overhaul standard",
              "Modified, as a service bulletin or design change says"
            ],
            "x-enum-labels": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify"
            ]
          },
          "deal_type": {
            "type": "string",
            "enum": [
              "customer_repair"
            ],
            "description": "`customer_repair`: The customer's own unit, repaired and sent back to them",
            "x-enum-descriptions": [
              "The customer's own unit, repaired and sent back to them"
            ],
            "x-enum-labels": [
              "Customer repair"
            ]
          },
          "work_order_type": {
            "type": "string",
            "enum": [
              "customer"
            ],
            "description": "`customer`: Work done for a customer on a unit they own",
            "x-enum-descriptions": [
              "Work done for a customer on a unit they own"
            ],
            "x-enum-labels": [
              "Customer"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repaired",
              "returned_unrepaired",
              "scrapped",
              null
            ],
            "description": "`repaired`: The work was done and the unit goes home serviceable; `returned_unrepaired`: The unit goes home without the work, declined or beyond repair; `scrapped`: The unit was scrapped rather than sent home",
            "x-enum-descriptions": [
              "The work was done and the unit goes home serviceable",
              "The unit goes home without the work, declined or beyond repair",
              "The unit was scrapped rather than sent home",
              "Not set"
            ],
            "x-enum-labels": [
              "Repaired",
              "Returned unrepaired",
              "Scrapped",
              "Not set"
            ]
          },
          "part_number": {
            "type": "string",
            "description": "The catalog part's number where one is picked, else the number as the customer gave it"
          },
          "part_number_raw": {
            "type": "string",
            "description": "The part number as the customer gave it"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_to_repair": {
            "type": "number"
          },
          "quantity_received": {
            "type": "number"
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "faa_8130_3",
              "faa_easa_dual",
              "faa_uk_dual",
              "easa_form_1",
              "uk_caa_form_1",
              "tcca_form_one",
              "casa_form_1",
              "caac_release",
              "coc",
              "other",
              null
            ],
            "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `faa_easa_dual`: A dual release: one tag releasing the part under both the FAA and EASA; `faa_uk_dual`: A dual release: one tag releasing the part under both the FAA and the UK CAA; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
            "x-enum-descriptions": [
              "FAA Form 8130-3, the FAA's authorized release certificate",
              "A dual release: one tag releasing the part under both the FAA and EASA",
              "A dual release: one tag releasing the part under both the FAA and the UK CAA",
              "EASA Form 1, the EU authorized release certificate",
              "UK CAA Form 1, the UK authorized release certificate",
              "TCCA Form One, Transport Canada's authorized release certificate",
              "CASA Form 1, Australia's authorized release certificate",
              "The CAAC's authorized release certificate (China)",
              "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
              "Another release document, named in the certificate number or notes",
              "Not set"
            ],
            "x-enum-labels": [
              "FAA 8130-3",
              "FAA/EASA dual release",
              "FAA/UK CAA dual release",
              "EASA Form 1",
              "UK CAA Form 1",
              "TCCA Form One",
              "CASA Form 1",
              "CAAC Form AAC",
              "Certificate of Conformance",
              "Other",
              "Not set"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "x-internal": true
          },
          "part_markings": {
            "type": [
              "string",
              "null"
            ],
            "description": "The part and serial numbers and other markings on the unit as it arrived, recorded before work; null until recorded"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "home_currency_code": {
            "type": "string"
          },
          "home_currency_exponent": {
            "type": "number"
          },
          "fx_rate": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "fx_rate_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day `fx_rate` was taken for; null in the home currency"
          },
          "spending_limit_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the customer allows spent on the work without asking again"
          },
          "home_spending_limit_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `home_currency_code`, the account's currency"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "received_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "evaluating_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "awaiting_approval_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "in_work_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "awaiting_inspection_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "closed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "trashed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "import_count": {
            "type": "integer",
            "description": "The spreadsheets imported onto it"
          },
          "export_count": {
            "type": "integer",
            "description": "The files exported from it"
          },
          "home_labor_wip_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency: the labor its tasks have charged, at cost, what its labor WIP holds"
          },
          "home_parts_wip_cents": {
            "type": "integer",
            "description": "Minor units of `home_currency_code`, the account's currency: the parts issued to its tasks, at the cost they left inventory, less what came back, what its parts WIP holds"
          },
          "ship_to_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "drop_ship": {
            "type": "boolean",
            "description": "Whether the unit goes home to `drop_ship_company` at `drop_ship_address` rather than the ship-to"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The email address of the person at the drop-ship destination, printed with its address; `drop_ship_address`'s `attn` names them"
          },
          "drop_ship_address": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Address"
              },
              {
                "type": "null"
              }
            ]
          },
          "publications": {
            "type": "array",
            "description": "The publications the work is done to, in order, each at the revision it was put on at; set by `POST /work_orders/{uuid}/replace_publications`",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "publication",
                "publication_revision",
                "caution"
              ],
              "properties": {
                "publication": {
                  "$ref": "#/components/schemas/Stub"
                },
                "publication_revision": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/PublicationRevisionStub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Null where the publication had no current revision"
                },
                "caution": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the revision is no one to work to today: temporary, expired or not yet effective"
                }
              }
            }
          },
          "template_caution": {
            "type": [
              "string",
              "null"
            ],
            "description": "A sentence, set only in the answer to the write that applied a template: the template's publications applying it added to the work order, where the organization's `template_publication_check` is `warn`, or, opening one, the template applying at opening that wasn't applied and why; null otherwise and on every read"
          },
          "document_forms": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "form",
                "label",
                "printer_kind"
              ],
              "properties": {
                "form": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "printer_kind": {
                  "type": "string",
                  "enum": [
                    "document",
                    "label"
                  ],
                  "description": "The kind of printer the form prints on, a printer's `kind`"
                }
              }
            },
            "description": "The forms the work order prints on, each by the `form` `POST /documents` takes"
          },
          "stage": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where in its status the work order sits: the status's own stage, or one of the shop's under it"
          },
          "next_stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The active stages `POST /work_orders/{uuid}/advance` can move it to, in their order: those under a working status, or under the status it is in, other than the stage it is on; `actions` says whether it may move now"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Company"
              },
              {
                "type": "null"
              }
            ],
            "description": "A stub, or the whole company when `expand[]=customer` asked for it"
          },
          "contact": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_receipt": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ReceiptStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The open receipt the customer's unit is coming in on, which `POST /work_orders/{uuid}/create_receipt` opens; null until one is open"
          },
          "contacts": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Stub"
                },
                {
                  "$ref": "#/components/schemas/Contact"
                }
              ]
            },
            "description": "Everyone at the customer the work order keeps informed, in order; set by `POST /work_orders/{uuid}/replace_contacts`"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The repair service the work is for, which receiving weighs the part's repair capability against and picks the template applying at opening; left out at opening, the part's one active service where it has one alone; null for none"
          },
          "technician": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_center": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where in the organization's shop the work is done; null where no work center is set"
          },
          "gate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gate its tasks have reached, set as they move: where the organization advances a gate only once its tasks are complete, the first with a task still open; else the last a task has started behind, or the first open before any has. Null with no task behind a gate, or once every one is done"
          },
          "default_parts_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The task parts issued to the work order are charged to unless another is named; null where none is set"
          },
          "final_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer_quote": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The customer quote the work order was opened from, by its repair line; null where it wasn't"
          },
          "customer_quote_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CustomerQuoteLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The repair line of `customer_quote` the work order was opened from; null where it wasn't"
          },
          "drop_ship_company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_promise",
                    "advance",
                    "replace_contacts",
                    "replace_publications",
                    "hold",
                    "add_finding",
                    "add_task",
                    "add_material",
                    "allocate_materials",
                    "save_as_template",
                    "apply_template",
                    "release",
                    "create_receipt",
                    "cancel",
                    "trash",
                    "restore"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "hold": "create_work_order_hold",
              "add_finding": "create_work_order_finding",
              "add_task": "create_work_order_task",
              "add_material": "create_work_order_material",
              "save_as_template": "create_work_order_template",
              "release": "create_release"
            }
          },
          "status_changes": {
            "type": "array",
            "description": "Every status the work order entered, oldest first, a re-entry included. Present when `expand[]=status_changes` asked for it",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "status",
                "stage",
                "time_tracking",
                "entered_at",
                "entered_by",
                "hours"
              ],
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "awaiting_unit",
                    "received",
                    "evaluating",
                    "awaiting_approval",
                    "in_work",
                    "awaiting_inspection",
                    "completed",
                    "closed",
                    "cancelled"
                  ]
                },
                "stage": {
                  "$ref": "#/components/schemas/Stub"
                },
                "time_tracking": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "accountable",
                    "not_accountable",
                    null
                  ],
                  "description": "Whether the time from this change to the next counts toward turnaround, as its stage said when it was entered; null tracks none"
                },
                "entered_at": {
                  "type": "string",
                  "format": "date-time"
                },
                "entered_by": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The member who moved it, null for the system"
                },
                "hours": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Hours from this change to the next, or to now for the status it is in, whatever its time tracking; `turnaround` sums them by this row's `time_tracking`. Null for a closed or cancelled one, whose time has stopped"
                }
              }
            }
          },
          "turnaround": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "accountable_hours",
              "not_accountable_hours"
            ],
            "properties": {
              "accountable_hours": {
                "type": "number",
                "description": "Hours spent in statuses tracked as accountable"
              },
              "not_accountable_hours": {
                "type": "number",
                "description": "Hours spent in statuses tracked as not accountable"
              }
            },
            "description": "The hours the work order has spent in accountable statuses beside those in not accountable ones, each stay counted with the time tracking its status had when entered, the status it is in counting until now. Present when `expand[]=turnaround` asked for it"
          },
          "credit_warning": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the customer's open invoices and this spending limit are over its credit limit, or that it can't be checked for want of an FX rate; null when within it, settled, with no credit limit, or with the warning turned off. Present when `expand[]=credit_warning` asked for it"
          },
          "publication_caution": {
            "type": [
              "string",
              "null"
            ],
            "description": "That no current publication is on the work order, where its organization warns of or requires one; null with one current, settled, or with the check ignored. Present when `expand[]=publication_caution` asked for it"
          },
          "receiving_warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "What receiving the customer's unit should know before it goes ahead, none of which stops it: an exchange core the customer owes for the same part, a part with no active repair capability for the work order's repair service (any service, where it names none) where the organization warns of one, or no work instructions on the work order where the organization warns of none; empty once every unit has arrived or the order is settled. Present when `expand[]=receiving_warnings` asked for it"
          },
          "holds": {
            "$ref": "#/components/schemas/WorkOrderHoldList",
            "description": "Present when `expand[]=holds` asked for it: the first page, continued on `/work_orders/{uuid}/holds`"
          },
          "findings": {
            "$ref": "#/components/schemas/WorkOrderFindingList",
            "description": "Present when `expand[]=findings` asked for it: the first page, continued on `/work_orders/{uuid}/findings`"
          },
          "tasks": {
            "$ref": "#/components/schemas/WorkOrderTaskList",
            "description": "Present when `expand[]=tasks` asked for it: the first page, continued on `/work_orders/{uuid}/tasks`"
          }
        },
        "x-area": "repair",
        "x-role": "document"
      },
      "WorkOrderFinding": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "description",
          "necessity",
          "in_scope",
          "corrective_action",
          "resolved",
          "work_order",
          "raised_from_task",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_finding"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "necessity": {
            "type": "string",
            "enum": [
              "mandatory",
              "recommended"
            ],
            "description": "`mandatory`: The unit can't be released serviceable without it; `recommended`: Worth doing, and the customer may decline it",
            "x-enum-descriptions": [
              "The unit can't be released serviceable without it",
              "Worth doing, and the customer may decline it"
            ],
            "x-enum-labels": [
              "Mandatory",
              "Recommended"
            ]
          },
          "in_scope": {
            "type": "boolean",
            "description": "Whether fixing it falls inside the scope the customer asked for on the work order (its `work_scope`); true unless said otherwise"
          },
          "corrective_action": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolved": {
            "type": "boolean",
            "description": "Whether a corrective action is recorded and every task answering it, cancelled ones aside, is completed"
          },
          "work_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "raised_from_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The task whose work turned it up; null for one found evaluating the unit"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "WorkOrderGate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_gate"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer",
            "description": "Its place in the order the gates are passed, first to last. A write moves it, renumbering the rest"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderHold": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "placed_by_credit_limit",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_hold"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "credit",
              "manual"
            ],
            "description": "`credit`: The customer's credit stops the work order: its account is on stop or the work would cross its credit limit; `manual`: Any other reason to stop the work order, said in the note",
            "x-enum-descriptions": [
              "The customer's credit stops the work order: its account is on stop or the work would cross its credit limit",
              "Any other reason to stop the work order, said in the note"
            ],
            "x-enum-labels": [
              "Credit",
              "Manual"
            ]
          },
          "label": {
            "type": "string"
          },
          "placed_by_hand": {
            "type": "boolean",
            "description": "False when the customer's credit_hold flag or the credit limit placed it"
          },
          "placed_by_credit_limit": {
            "type": "boolean",
            "description": "True when the work order crossing the customer's credit limit placed it; the note says how. The flag lifts only the holds it placed"
          },
          "lifted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "placed_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "lifted_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "lift"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "WorkOrderIssue": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quantity",
          "quantity_returned",
          "work_order_material",
          "employee",
          "inventory_line",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_issue"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "number",
            "description": "How many were issued"
          },
          "quantity_returned": {
            "type": "number",
            "description": "How many of them came back onto the inventory line, by `POST /work_order_materials/{uuid}/return`"
          },
          "work_order_material": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "employee": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who received the parts"
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The inventory line the parts came off, and go back onto"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderMaterial": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "quantity",
          "quantity_allocated",
          "quantity_reallocatable",
          "customer_supplied",
          "optional",
          "teardown",
          "requested_reason",
          "teardown_finding",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "part_off_serial_number",
          "part_off_life_status",
          "quantity_removed",
          "pick_completed_at",
          "quantity_unused",
          "unused_reason",
          "quantity_issued",
          "quantity_returned",
          "repair_status",
          "work_order_task",
          "part",
          "condition",
          "part_off",
          "part_off_condition",
          "expected_part",
          "expected_condition",
          "unused_by",
          "picker",
          "pick_status",
          "removal_priority",
          "supply_status",
          "disposition",
          "inspection_compliance",
          "ndt_quantity_status",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's materials, numbered from 1"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ],
            "description": "What kind of use the part is put to; a visual check, a removal and a main component repair take nothing from inventory",
            "x-enum-descriptions": [
              "A part used up in the work, with nothing taken off the unit for it",
              "A part taken off the unit, and another put on in its place",
              "A part taken off the unit, repaired and put back on",
              "A part taken off the unit, with nothing put on in its place",
              "The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory",
              "A component put on the unit with no part taken off for it",
              "The customer's unit itself, sent out to a vendor for repair",
              "A unit of ours offered to the customer in exchange for theirs"
            ],
            "x-enum-labels": [
              "Consumable",
              "Replace",
              "Repair",
              "Remove",
              "Visual check",
              "Component",
              "Main component repair",
              "Offer exchange"
            ]
          },
          "part_number_raw": {
            "type": "string",
            "description": "The part's number as written; where `part` names a catalog part, that part's number"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the part is, in words; filled from the catalog part when one is picked, unless words are written on it"
          },
          "quantity_requested": {
            "type": "number"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean",
            "description": "Whether `quantity_requested` is asked once for each unit the work order repairs; set when it is added, from the work order settings unless it says"
          },
          "quantity": {
            "type": "number",
            "description": "What it asks of inventory: `quantity_requested`, times the work order's quantity to repair where it is multiplied, less `quantity_returned`"
          },
          "quantity_allocated": {
            "type": "number",
            "description": "What inventory holds for it now"
          },
          "quantity_reallocatable": {
            "type": "number",
            "description": "What other open work orders' replaces, consumables and components of its part hold allocated and not yet issued, in a condition it takes: what `POST …/reallocate` could bring it from them"
          },
          "customer_supplied": {
            "type": "boolean",
            "description": "Whether the customer supplies the part, so no vendor is asked for it"
          },
          "optional": {
            "type": "boolean",
            "description": "Whether the task may be done without it"
          },
          "teardown": {
            "type": "boolean",
            "description": "Whether it was added by `POST /work_orders/{uuid}/tasks/{task_uuid}/add_teardown`: a removal holding the parts it turned in, to go home to the customer"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ],
            "description": "Why the part is asked for",
            "x-enum-descriptions": [
              "The evaluation missed it",
              "More damage was found than the evaluation saw",
              "Hardware on the unit is broken",
              "Hardware is missing from the unit",
              "A service bulletin calls for it",
              "An airworthiness directive calls for it",
              "The work order's materials list left it out",
              "Not set"
            ],
            "x-enum-labels": [
              "Missed in evaluation",
              "Additional damage found",
              "Broken hardware",
              "Missing hardware",
              "SB required",
              "AD required",
              "Part not on BOM list",
              "Not set"
            ]
          },
          "teardown_finding": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "found",
              "missing",
              "damaged",
              "alt_part_number",
              null
            ],
            "description": "What teardown found of the part on the unit",
            "x-enum-descriptions": [
              "The part was on the unit at teardown",
              "The part wasn't on the unit at teardown",
              "The part was on the unit at teardown, damaged",
              "Another part number was on the unit in its place",
              "Not set"
            ],
            "x-enum-labels": [
              "Found",
              "Missing",
              "Damaged",
              "Alternate part number",
              "Not set"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The work order's currency, which its market value is in"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the part is expected to be worth on the market, for the commercial and customs invoices"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes for the shop, never shown to the customer"
          },
          "part_off_serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The serial number of the part taken off the unit; only on a replace, a repair or a removal"
          },
          "part_off_life_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "The life the part taken off has used, as its records give it, for a life-limited part"
          },
          "quantity_removed": {
            "type": "number",
            "description": "How many were taken off the unit, as turned in"
          },
          "pick_completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "quantity_unused": {
            "type": "number",
            "description": "How many were issued and not used"
          },
          "unused_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "higher_quantity",
              "not_replaced",
              "request_cancelled",
              "failed_on_install",
              null
            ],
            "description": "Why `quantity_unused` went unused",
            "x-enum-descriptions": [
              "More was asked for than the work needed",
              "The part it was to replace stayed on the unit",
              "The request for it was called off",
              "It failed when it was put on",
              "Not set"
            ],
            "x-enum-labels": [
              "Higher quantity than required",
              "BOM not replaced",
              "Request cancelled",
              "Failed on install",
              "Not set"
            ]
          },
          "quantity_issued": {
            "type": "number",
            "description": "How many are out with the employees they were issued to, set by `POST …/issue` and `POST …/return`"
          },
          "quantity_returned": {
            "type": "number",
            "description": "How many were issued and came back onto inventory, which it no longer asks for"
          },
          "repair_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "on_repair",
              "repair_required",
              null
            ],
            "description": "Where the part turned in off it stands on a repair order, from `POST …/add_to_repair_order`; null with no open repair order line",
            "x-enum-descriptions": [
              "A repair order line holds the part turned in off it, out for repair",
              "A repair order line waits for the part, holding none of it",
              "Not set"
            ],
            "x-enum-labels": [
              "On repair",
              "Repair required",
              "Not set"
            ]
          },
          "work_order_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part, or null where only `part_number_raw` names it"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The least condition the part may be in; any ranked higher will do, and null takes any"
          },
          "part_off": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part taken off the unit, where it isn't the part itself"
          },
          "part_off_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition the part taken off is in"
          },
          "expected_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part expected back on the unit; only on a replace or a repair"
          },
          "expected_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition the part back on is expected in"
          },
          "unused_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who said the unused quantity went unused"
          },
          "picker": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The employee who picks its parts from inventory, set by `POST …/assign_pick`"
          },
          "pick_status": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where its pick stands, from the shop's pick statuses, set by `POST …/assign_pick`"
          },
          "removal_priority": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "How soon its part comes off the unit, from the shop's removal priorities"
          },
          "supply_status": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where getting its part stands, from the shop's supply statuses"
          },
          "disposition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "What becomes of its part after inspection, from the shop's dispositions"
          },
          "inspection_compliance": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The kind of inspection its part has complied with, from the shop's inspection compliances"
          },
          "ndt_quantity_status": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where non-destructive testing of its quantity stands, from the shop's NDT quantity statuses"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete",
                    "move",
                    "assign_pick",
                    "allocate",
                    "reallocate",
                    "order",
                    "issue",
                    "reject",
                    "return",
                    "flag_unused",
                    "turn_in",
                    "add_to_repair_order",
                    "cancel_turn_in",
                    "check_visually"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "issues": {
            "$ref": "#/components/schemas/WorkOrderIssueList",
            "description": "Present when `expand[]=issues` asked for it: the first page, continued on `/work_order_materials/{uuid}/issues`"
          },
          "turn_ins": {
            "$ref": "#/components/schemas/WorkOrderTurnInList",
            "description": "Present when `expand[]=turn_ins` asked for it: the first page, continued on `/work_order_materials/{uuid}/turn_ins`"
          },
          "visual_checks": {
            "$ref": "#/components/schemas/WorkOrderVisualCheckList",
            "description": "Present when `expand[]=visual_checks` asked for it: the first page, continued on `/work_order_materials/{uuid}/visual_checks`"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderMaterialDisposition": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_disposition"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderMaterialInspectionCompliance": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_inspection_compliance"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderMaterialNdtQuantityStatus": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_ndt_quantity_status"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderMaterialPickStatus": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_pick_status"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderMaterialRemovalPriority": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_removal_priority"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderMaterialSupplyStatus": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_material_supply_status"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderSettings": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "hold_over_credit_limit",
          "capability_check",
          "cancel_unreceived_after_days",
          "publication_check",
          "apply_part_publications",
          "warn_without_instructions_at_receiving",
          "keep_template_sequences",
          "copied_task_step",
          "template_publication_check",
          "advance_gate_when_complete",
          "gates_in_order",
          "ready_first_gate_only",
          "clocking",
          "labor_split",
          "auto_clock_out_at",
          "block_labor_until_received",
          "clock_in_required",
          "technician_hides_clock_in",
          "technician_hides_cancel",
          "technician_adds_instructions",
          "technician_hides_optional_materials",
          "technician_edits_quantity_requested",
          "technician_hides_quantity_issued",
          "multiply_by_quantity_to_repair",
          "auto_allocate_on_status",
          "allocate_from_purchase_lines",
          "allocate_from_own_location_only",
          "block_lot_allocations",
          "require_quantity_removed",
          "generate_barcode_at_turn_in",
          "triggers",
          "organization",
          "default_inventory",
          "default_warehouse",
          "new_task_skill"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_settings"
          },
          "hold_over_credit_limit": {
            "type": "boolean",
            "description": "Whether a work order whose customer's open invoices and spending limit come to more than the customer's credit limit is placed on credit hold, and its credit_warning says why; off, it does neither"
          },
          "capability_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "block"
            ],
            "description": "What receiving does with a part that has no active repair capability for the work order's repair service, or for any service where the work order names none",
            "x-enum-descriptions": [
              "A part with no active repair capability for the work order's service is received with nothing said",
              "A part with no active repair capability for the work order's service is received with a warning that the shop isn't set up to repair it",
              "A part with no active repair capability for the work order's service is refused at receiving"
            ],
            "x-enum-labels": [
              "Ignore",
              "Warn",
              "Block"
            ]
          },
          "cancel_unreceived_after_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Days a work order may wait on its unit before it is cancelled; null never cancels one"
          },
          "publication_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "require"
            ],
            "description": "What opening a work order does when no current publication is on it",
            "x-enum-descriptions": [
              "A work order opens with nothing said of the publications it is worked to",
              "A work order with no current publication on it opens with a caution saying so",
              "A work order doesn't open until a current publication is on it"
            ],
            "x-enum-labels": [
              "Ignore",
              "Warn",
              "Require"
            ]
          },
          "apply_part_publications": {
            "type": "boolean",
            "description": "Whether a work order opened without naming its publications is worked to the current ones covering its part"
          },
          "warn_without_instructions_at_receiving": {
            "type": "boolean",
            "description": "Whether receiving a work order's unit warns when none of its tasks holds a work instruction"
          },
          "keep_template_sequences": {
            "type": "boolean",
            "description": "Whether a template's tasks keep the sequences they have on the template when it is applied to a work order; off, or where one is already taken there, they are numbered after the work order's last task, `copied_task_step` apart"
          },
          "copied_task_step": {
            "type": "integer",
            "description": "How far apart a template's tasks are numbered when they are numbered after the work order's last task"
          },
          "template_publication_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "require"
            ],
            "description": "What applying a template does with the publications it names that the work order isn't worked to",
            "x-enum-descriptions": [
              "A template applies and adds its publications the work order isn't worked to, saying nothing of them",
              "A template applies, adding its publications the work order isn't worked to, with a caution naming them",
              "A template applies only once the work order is worked to every publication the template names"
            ],
            "x-enum-labels": [
              "Ignore",
              "Warn",
              "Require"
            ]
          },
          "advance_gate_when_complete": {
            "type": "boolean",
            "description": "Whether a work order's current gate moves on only once every task behind it is complete; off, it follows the last gate a task has started behind"
          },
          "gates_in_order": {
            "type": "boolean",
            "description": "Whether a task behind a gate is started or completed only once every task behind an earlier gate on its work order is done"
          },
          "ready_first_gate_only": {
            "type": "boolean",
            "description": "Whether a work order entering work makes only the first gate's pending tasks ready to work, leaving the rest pending; off, every pending task is made ready"
          },
          "clocking": {
            "type": "string",
            "enum": [
              "one_task",
              "one_work_order",
              "any"
            ],
            "description": "How many tasks an employee may be clocked in to at once: one, several on one work order, or several on any",
            "x-enum-descriptions": [
              "An employee is clocked in to one task at a time",
              "An employee may be clocked in to several tasks at once, all on one work order",
              "An employee may be clocked in to several tasks at once, on any work orders"
            ],
            "x-enum-labels": [
              "One task",
              "One work order",
              "Any"
            ]
          },
          "labor_split": {
            "type": "string",
            "enum": [
              "time_weighted",
              "task_weighted",
              "equal"
            ],
            "description": "How time an employee spent clocked in to several tasks at once is split between their entries, once the last of them clocks out",
            "x-enum-descriptions": [
              "Overlapping time is split by how long each entry was clocked in",
              "Overlapping time is split by each task's estimated hours, so a concurrent clock-in needs an estimate on every task",
              "Overlapping time is split equally between the entries"
            ],
            "x-enum-labels": [
              "Time weighted",
              "Task weighted",
              "Equal"
            ]
          },
          "auto_clock_out_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time of day, `HH:MM` on the 24-hour clock in the business's time zone, at which everyone still clocked in is clocked out, each entry ending at that time; null clocks no one out"
          },
          "block_labor_until_received": {
            "type": "boolean",
            "description": "Whether no one clocks in to a work order's tasks while it awaits its unit; off, labor is clocked to it before the unit is in"
          },
          "clock_in_required": {
            "type": "boolean",
            "description": "Whether a technician changes a task, its work instructions and the findings and tasks raised from it only while clocked in to it; it binds only an employee who could clock in to the task now, so it never refuses clocking in itself"
          },
          "technician_hides_clock_in": {
            "type": "boolean",
            "description": "Whether the Technician page hides Clock in, Clock out and the warning that one isn't clocked in; refused while `clock_in_required` is on"
          },
          "technician_hides_cancel": {
            "type": "boolean",
            "description": "Whether the Technician page hides Cancel task"
          },
          "technician_adds_instructions": {
            "type": "boolean",
            "description": "Whether the Technician page offers Add instruction on a task"
          },
          "technician_hides_optional_materials": {
            "type": "boolean",
            "description": "Whether the Technician page hides a task's optional materials"
          },
          "technician_edits_quantity_requested": {
            "type": "boolean",
            "description": "Whether the Technician page lets a technician change a material's quantity requested, never below what is allocated to it"
          },
          "technician_hides_quantity_issued": {
            "type": "boolean",
            "description": "Whether the Technician page's Unused parts list hides each material's quantity issued"
          },
          "multiply_by_quantity_to_repair": {
            "type": "boolean",
            "description": "Whether a material added to a task asks for its quantity once for each unit the work order repairs; each material keeps the choice it was added with, so changing this moves none already added"
          },
          "auto_allocate_on_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "received",
              "evaluating",
              "awaiting_approval",
              "in_work",
              "awaiting_inspection",
              "completed",
              null
            ],
            "description": "The status a work order moving into allocates its tasks' materials from inventory; null allocates none on any move",
            "x-enum-descriptions": [
              "The customer's unit is in; work has not started",
              "The unit is being inspected to find what it needs",
              "Waiting on the customer to approve the work found",
              "The shop is working on the unit",
              "The work is done and waits for its inspection",
              "The work and its inspection are finished; the unit is ready to go home",
              "Not set"
            ],
            "x-enum-labels": [
              "Received",
              "Evaluating",
              "Awaiting approval",
              "In work",
              "Awaiting inspection",
              "Completed",
              "Not set"
            ]
          },
          "allocate_from_purchase_lines": {
            "type": "boolean",
            "description": "Whether allocating a work order's materials on its own also takes from open purchase order lines not yet received"
          },
          "allocate_from_own_location_only": {
            "type": "boolean",
            "description": "Whether allocating a work order's materials on its own takes only inventory at the facility its unit sits at, else the default warehouse's"
          },
          "block_lot_allocations": {
            "type": "boolean",
            "description": "Whether inventory bought as part of a lot is kept from being allocated to a work order's materials"
          },
          "require_quantity_removed": {
            "type": "boolean",
            "description": "Whether a work order isn't reconciled while a material that replaces a part has no quantity removed"
          },
          "generate_barcode_at_turn_in": {
            "type": "boolean",
            "description": "Whether turning in a part taken off the unit prints its inventory line's barcode label unless the one turning it in says not to"
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "moment",
                "stage",
                "statuses",
                "team",
                "notifies_in_app",
                "notifies_by_email",
                "email_stopped_by"
              ],
              "properties": {
                "moment": {
                  "type": "string",
                  "enum": [
                    "unit_received",
                    "work_started",
                    "work_completed",
                    "finding_added",
                    "hold_placed",
                    "hold_lifted",
                    "unit_shipped",
                    "cancelled"
                  ],
                  "x-enum-descriptions": [
                    "The customer's unit is received",
                    "The first of the work order's tasks starts",
                    "The last open task is completed or cancelled, with at least one completed",
                    "A finding is added",
                    "A hold is placed",
                    "A hold is lifted",
                    "A release ships the unit back",
                    "The work order is cancelled"
                  ],
                  "x-enum-labels": [
                    "Unit received",
                    "Work started",
                    "Work completed",
                    "Finding added",
                    "Hold placed",
                    "Hold lifted",
                    "Unit shipped",
                    "Cancelled"
                  ]
                },
                "stage": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The work order stage the moment moves a work order to, or null for none"
                },
                "statuses": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "awaiting_unit",
                      "received",
                      "evaluating",
                      "awaiting_approval",
                      "in_work",
                      "awaiting_inspection",
                      "completed",
                      "closed",
                      "cancelled"
                    ]
                  },
                  "description": "The lifecycle statuses the stage may sit under"
                },
                "team": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Stub"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The team the moment tells, or null for none"
                },
                "notifies_in_app": {
                  "type": "boolean",
                  "description": "Whether the team's people get a notification in the app"
                },
                "notifies_by_email": {
                  "type": "boolean",
                  "description": "Whether the team's people are each sent an email"
                },
                "email_stopped_by": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Stub"
                  },
                  "description": "The team's people who stopped this moment's email, by name; only each of them can resume it, from their own notification settings (`PATCH /notification_preferences`)"
                }
              }
            },
            "description": "What each moment does to a work order, every moment listed in order: moves it to `stage`, or nothing where `stage` is null, and tells `team`'s active people in the app, by email, both or neither. A moment whose `statuses` is empty changes no status"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_inventory": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "default_warehouse": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "new_task_skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "$ref": "#/components/schemas/Skill"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill a new task starts with when it is raised on the Technician page or added on a work order's Tasks tab, which the user may change, while the skill is active; null starts it with none"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderShopSupply": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "part_number",
          "part_description",
          "keywords",
          "quantity",
          "batch_lot_number",
          "internal_notes",
          "work_order_task",
          "part",
          "bin",
          "facility",
          "measurement_unit",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_shop_supply"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's shop supplies, numbered from 1"
          },
          "part_number": {
            "type": "string",
            "description": "The part's number, from the catalog"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the part is, from the catalog"
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ],
            "description": "The part's keywords, from the catalog"
          },
          "quantity": {
            "type": "number",
            "description": "How much was used, in `measurement_unit`"
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The batch or lot the supply came from"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes for the shop, never shown to the customer"
          },
          "work_order_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part the supply is"
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the supply came from"
          },
          "facility": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/FacilityStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The facility its bin is at"
          },
          "measurement_unit": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit `quantity` counts in: the part's own, unless another was named"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderStage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "time_tracking",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_stage"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The name the shop gave it, else its lifecycle status's"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The shop's own name for it; null on a status the system keeps, which reads as its lifecycle status"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_unit",
              "received",
              "evaluating",
              "awaiting_approval",
              "in_work",
              "awaiting_inspection",
              "completed",
              "closed",
              "cancelled"
            ],
            "description": "The lifecycle status a work order in it has, fixed once made; one of the shop's own sits under received or a working status",
            "x-enum-descriptions": [
              "Opened before the customer's unit arrived; nothing is in the shop yet",
              "The customer's unit is in; work has not started",
              "The unit is being inspected to find what it needs",
              "Waiting on the customer to approve the work found",
              "The shop is working on the unit",
              "The work is done and waits for its inspection",
              "The work and its inspection are finished; the unit is ready to go home",
              "Finished: every unit has gone home",
              "Called off before any unit arrived, or after every unit went home unworked"
            ],
            "x-enum-labels": [
              "Awaiting unit",
              "Received",
              "Evaluating",
              "Awaiting approval",
              "In work",
              "Awaiting inspection",
              "Completed",
              "Closed",
              "Cancelled"
            ]
          },
          "system": {
            "type": "boolean",
            "description": "Whether the system keeps it: one per lifecycle status, named by it, moved but never marked inactive"
          },
          "position": {
            "type": "integer",
            "description": "Where it is listed, first to last. A write moves it, renumbering the rest"
          },
          "time_tracking": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accountable",
              "not_accountable",
              null
            ],
            "description": "Whether a work order's time in it counts toward turnaround; null tracks none, as closed and cancelled always do",
            "x-enum-descriptions": [
              "Time in this status counts toward the work order's turnaround",
              "Time in this status is tracked but kept out of the turnaround, such as waiting on the customer",
              "Not set"
            ],
            "x-enum-labels": [
              "Accountable",
              "Not accountable",
              "Not set"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderTask": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "status",
          "approval_status",
          "billing_type",
          "summary",
          "percent_complete",
          "independent_inspection",
          "der_repair",
          "skills",
          "publication_caution",
          "started_at",
          "completed_at",
          "cancelled_at",
          "cancellation_note",
          "labor_hours",
          "labor_cost_cents",
          "labor_bill_cents",
          "parts_cost_cents",
          "currency_code",
          "work_order",
          "parent",
          "generated_from",
          "finding",
          "assigned_to",
          "work_station",
          "gate",
          "publication",
          "publication_revision",
          "cancelled_by",
          "stage",
          "next_stages",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_task"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ],
            "description": "`routine`: Work every unit of its kind gets; `non_routine`: Work this unit needs, found on it",
            "x-enum-descriptions": [
              "Work every unit of its kind gets",
              "Work this unit needs, found on it"
            ],
            "x-enum-labels": [
              "Routine",
              "Non-routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ],
            "description": "The scope of work the task belongs to, as a template task's does; null when the task has no scope",
            "x-enum-descriptions": [
              "Inspected and/or tested, with no repair",
              "Repaired to a serviceable condition",
              "Overhauled to the manufacturer's overhaul standard",
              "Modified, as a service bulletin or design change says",
              "Taken apart, to find what the unit needs",
              "Not set"
            ],
            "x-enum-labels": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify",
              "Teardown",
              "Not set"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "in_progress",
              "completed",
              "cancelled"
            ],
            "description": "Moved by `POST …/advance` and `POST …/cancel`; a summary task's is its least advanced live sub task's",
            "x-enum-descriptions": [
              "Planned, and not yet ready for the floor",
              "Ready to work: the floor may start it",
              "Being worked",
              "The work is done",
              "Called off, with a note saying why"
            ],
            "x-enum-labels": [
              "Pending",
              "Ready to work",
              "In progress",
              "Completed",
              "Cancelled"
            ]
          },
          "approval_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pending_customer_approval",
              "approved",
              "rejected",
              null
            ],
            "description": "The customer's answer to the task; null until it is put to them",
            "x-enum-descriptions": [
              "Put to the customer, who hasn't answered",
              "The customer approved it",
              "The customer declined it",
              "Not set"
            ],
            "x-enum-labels": [
              "Pending customer approval",
              "Approved",
              "Rejected",
              "Not set"
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ],
            "description": "`required`: Billed as part of the work the customer asked for; `optional`: Billed only if the customer takes it; `warranty`: Done under warranty, billed at nothing; `repair_process_code`: Billed at the repair process code's price",
            "x-enum-descriptions": [
              "Billed as part of the work the customer asked for",
              "Billed only if the customer takes it",
              "Done under warranty, billed at nothing",
              "Billed at the repair process code's price"
            ],
            "x-enum-labels": [
              "Required",
              "Optional",
              "Warranty",
              "Repair process code"
            ]
          },
          "summary": {
            "type": "boolean",
            "description": "Whether the task only gathers sub tasks, set when it is made"
          },
          "percent_complete": {
            "type": "integer",
            "description": "Its completed and carried-forward work instructions over those not cancelled; with none, 100 once completed, else 0; a summary task's is the mean of its live sub tasks'"
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean",
            "description": "Whether a DER repairs it; refused on a work order taking no DER repairs"
          },
          "skills": {
            "type": "array",
            "description": "The skills the task needs, in order, each with the hours it is estimated at; none on a summary task",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "skill",
                "estimated_hours"
              ],
              "properties": {
                "skill": {
                  "$ref": "#/components/schemas/Stub"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "decimal"
                }
              }
            }
          },
          "publication_caution": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the revision cited may not be the one to work to; never a refusal"
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "cancellation_note": {
            "type": [
              "string",
              "null"
            ]
          },
          "labor_hours": {
            "type": "string",
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The hours its entries have been charged, to the hundredth; an entry is charged when it, and any of the employee's entries overlapping it, have all clocked out"
          },
          "labor_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: those hours at the cost rates stamped on each entry"
          },
          "labor_bill_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: those hours at the bill rates stamped on each entry"
          },
          "parts_cost_cents": {
            "type": "integer",
            "description": "Minor units of `currency_code`, the account's currency: the parts issued to its materials, at the cost they left inventory, less what came back"
          },
          "currency_code": {
            "type": "string",
            "description": "The currency every amount here is in, the account's"
          },
          "work_order": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The summary task it sits under; null at the top"
          },
          "generated_from": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The task whose work found the need for it"
          },
          "finding": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderFindingStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The finding it answers; null for routine work"
          },
          "assigned_to": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmployeeStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who works it, set by `POST …/assign`"
          },
          "work_station": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "gate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gate it sits behind: where the organization keeps its gates in order, it starts only once every task behind an earlier gate is done; null on a summary task and where none is set"
          },
          "publication": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication_revision": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PublicationRevisionStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The revision cited: the publication's current one when it was picked, unless another was named"
          },
          "cancelled_by": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where in its status the task sits: the status's own stage, or one of the shop's under it"
          },
          "next_stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The active stages `POST …/advance` can move it to, in their order: those under a status a task moves to (pending, ready to work, in progress or completed), other than the stage it is on; `actions` says whether it may move now"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "advance",
                    "assign",
                    "replace_skills",
                    "add_finding",
                    "add_task",
                    "add_instruction",
                    "add_material",
                    "add_teardown",
                    "add_shop_supply",
                    "copy_template_instructions",
                    "copy_template_materials",
                    "clock_in",
                    "key_in_labor",
                    "make_default_for_parts",
                    "cancel",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "add_finding": "create_work_order_finding",
              "add_task": "create_work_order_task",
              "add_instruction": "create_work_instruction",
              "add_material": "create_work_order_material",
              "add_shop_supply": "create_work_order_shop_supply",
              "key_in_labor": "create_labor_entry",
              "make_default_for_parts": "update_work_order"
            }
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "WorkOrderTaskStage": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "locks_deletion",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_task_stage"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "description": "The name the shop gave it, else its task status's"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The shop's own name for it; null on a status the system keeps, which reads as its task status"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "in_progress",
              "completed",
              "cancelled"
            ],
            "description": "The task status a task in it has, fixed once made; one of the shop's own sits under any but cancelled",
            "x-enum-descriptions": [
              "Planned, and not yet ready for the floor",
              "Ready to work: the floor may start it",
              "Being worked",
              "The work is done",
              "Called off, with a note saying why"
            ],
            "x-enum-labels": [
              "Pending",
              "Ready to work",
              "In progress",
              "Completed",
              "Cancelled"
            ]
          },
          "system": {
            "type": "boolean",
            "description": "Whether the system keeps it: one per task status, named by it, moved but never marked inactive"
          },
          "position": {
            "type": "integer",
            "description": "Where it is listed, first to last. A write moves it, renumbering the rest"
          },
          "locks_deletion": {
            "type": "boolean",
            "description": "Whether a task in it is kept from deletion, so it can only be cancelled with a note"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderTemplateCategory": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "parent",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_category"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "parent": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The top-level category it is a subcategory of; null at the top"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "WorkOrderTemplate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "name",
          "version",
          "made_of",
          "description",
          "work_scope",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "currency_code",
          "currency_exponent",
          "applies_at_opening",
          "prices_quote_lines",
          "copies_header",
          "copies_tasks",
          "copies_instructions",
          "copies_materials",
          "copies_publications",
          "copies_documents",
          "part_description",
          "inactive_at",
          "organization",
          "category",
          "subcategory",
          "part",
          "repair_service",
          "customer",
          "final_condition",
          "work_center",
          "publications",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "description": "Its revision label, raised when the procedure is revised; one template whatever its version"
          },
          "made_of": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "phases",
              "tasks",
              null
            ],
            "description": "`tasks` or `phases`, worked out from what it holds, never both: read `/tasks` or `/phases` by it; null while it holds neither",
            "x-enum-descriptions": [
              "Other templates at their sequences, each applied in turn; it holds no tasks of its own",
              "Tasks of its own, copied onto the work order it is applied to",
              "Not set"
            ],
            "x-enum-labels": [
              "Phases",
              "Tasks",
              "Not set"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              null
            ],
            "description": "`inspect_test`: Inspected and/or tested, with no repair; `repair`: Repaired to a serviceable condition; `overhaul`: Overhauled to the manufacturer's overhaul standard; `modify`: Modified, as a service bulletin or design change says",
            "x-enum-descriptions": [
              "Inspected and/or tested, with no repair",
              "Repaired to a serviceable condition",
              "Overhauled to the manufacturer's overhaul standard",
              "Modified, as a service bulletin or design change says",
              "Not set"
            ],
            "x-enum-labels": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify",
              "Not set"
            ]
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "faa_8130_3",
              "faa_easa_dual",
              "faa_uk_dual",
              "easa_form_1",
              "uk_caa_form_1",
              "tcca_form_one",
              "casa_form_1",
              "caac_release",
              "coc",
              "other",
              null
            ],
            "description": "`faa_8130_3`: FAA Form 8130-3, the FAA's authorized release certificate; `faa_easa_dual`: A dual release: one tag releasing the part under both the FAA and EASA; `faa_uk_dual`: A dual release: one tag releasing the part under both the FAA and the UK CAA; `easa_form_1`: EASA Form 1, the EU authorized release certificate; `uk_caa_form_1`: UK CAA Form 1, the UK authorized release certificate; `tcca_form_one`: TCCA Form One, Transport Canada's authorized release certificate; `casa_form_1`: CASA Form 1, Australia's authorized release certificate; `caac_release`: The CAAC's authorized release certificate (China); `coc`: A certificate of conformance from the manufacturer or a distributor, not an airworthiness release; `other`: Another release document, named in the certificate number or notes",
            "x-enum-descriptions": [
              "FAA Form 8130-3, the FAA's authorized release certificate",
              "A dual release: one tag releasing the part under both the FAA and EASA",
              "A dual release: one tag releasing the part under both the FAA and the UK CAA",
              "EASA Form 1, the EU authorized release certificate",
              "UK CAA Form 1, the UK authorized release certificate",
              "TCCA Form One, Transport Canada's authorized release certificate",
              "CASA Form 1, Australia's authorized release certificate",
              "The CAAC's authorized release certificate (China)",
              "A certificate of conformance from the manufacturer or a distributor, not an airworthiness release",
              "Another release document, named in the certificate number or notes",
              "Not set"
            ],
            "x-enum-labels": [
              "FAA 8130-3",
              "FAA/EASA dual release",
              "FAA/UK CAA dual release",
              "EASA Form 1",
              "UK CAA Form 1",
              "TCCA Form One",
              "CASA Form 1",
              "CAAC Form AAC",
              "Certificate of Conformance",
              "Other",
              "Not set"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "currency_code": {
            "type": "string"
          },
          "currency_exponent": {
            "type": "number"
          },
          "applies_at_opening": {
            "type": "boolean",
            "description": "Whether it is applied when a work order opens for its part's repair service and customer; one active template does so for each"
          },
          "prices_quote_lines": {
            "type": "boolean",
            "description": "Whether it prices a quote line for its part's repair service and customer; one active template does so for each"
          },
          "copies_header": {
            "type": "boolean",
            "description": "Whether applying it copies its work scope, final condition, tag type, work center, No DER repairs and No PMA material"
          },
          "copies_tasks": {
            "type": "boolean"
          },
          "copies_instructions": {
            "type": "boolean"
          },
          "copies_materials": {
            "type": "boolean",
            "description": "Whether applying it copies the materials each copied task calls for; only where it copies tasks"
          },
          "copies_publications": {
            "type": "boolean"
          },
          "copies_documents": {
            "type": "boolean"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "subcategory": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "A subcategory of its category; null where it is filed under the category alone"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part whose repair service it is for, with `repair_service`; null with it where it is for none"
          },
          "repair_service": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The service on `part` it is for, one the part lists among its repair services"
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one customer it is for, by its company; null is for every customer"
          },
          "final_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "work_center": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where in the organization's shop the work is done; null where none is set"
          },
          "publications": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Stub"
            },
            "description": "The publications the work is done to, in order; each lands on the work order at its revision current then"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          },
          "tasks": {
            "$ref": "#/components/schemas/WorkOrderTemplateTaskList",
            "description": "Present when `expand[]=tasks` asked for it: the first page, continued on `/work_order_templates/{uuid}/tasks`"
          },
          "phases": {
            "$ref": "#/components/schemas/WorkOrderTemplatePhaseList",
            "description": "Present when `expand[]=phases` asked for it: the first page, continued on `/work_order_templates/{uuid}/phases`"
          },
          "parts": {
            "$ref": "#/components/schemas/WorkOrderTemplatePartList",
            "description": "Present when `expand[]=parts` asked for it: the first page, continued on `/work_order_templates/{uuid}/parts`"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTemplateInstruction": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "environment_check",
          "max_humidity_percent",
          "work_order_template_task",
          "skill",
          "work_station",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_instruction"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "position": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "environment_check": {
            "type": "boolean",
            "description": "Whether it is a humidity and temperature check, completed on the work order only with its reading"
          },
          "max_humidity_percent": {
            "type": [
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The highest relative humidity the check allows; null unless it is a check"
          },
          "work_order_template_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "skill": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The skill whoever does it holds; null takes any of the task's"
          },
          "work_station": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where on the shop floor it is done; null when it names none"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTemplateMaterial": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "customer_supplied",
          "optional",
          "requested_reason",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "work_order_template_task",
          "part",
          "condition",
          "part_off",
          "expected_part",
          "expected_condition",
          "removal_priority",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_material"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among its task's materials, numbered from 1"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ],
            "description": "What kind of use the part is put to; a visual check, a removal and a main component repair take nothing from inventory",
            "x-enum-descriptions": [
              "A part used up in the work, with nothing taken off the unit for it",
              "A part taken off the unit, and another put on in its place",
              "A part taken off the unit, repaired and put back on",
              "A part taken off the unit, with nothing put on in its place",
              "The customer's unit, or a part turned in off it, looked over and its condition recorded, with nothing taken from inventory",
              "A component put on the unit with no part taken off for it",
              "The customer's unit itself, sent out to a vendor for repair",
              "A unit of ours offered to the customer in exchange for theirs"
            ],
            "x-enum-labels": [
              "Consumable",
              "Replace",
              "Repair",
              "Remove",
              "Visual check",
              "Component",
              "Main component repair",
              "Offer exchange"
            ]
          },
          "part_number_raw": {
            "type": "string",
            "description": "The part's number as written; where `part` names a catalog part, that part's number"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the part is, in words; filled from the catalog part when one is picked, unless words are written on it"
          },
          "quantity_requested": {
            "type": "number"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean",
            "description": "Whether `quantity_requested` is asked once for each unit the work order repairs; set when it is added, from the work order settings unless it says"
          },
          "customer_supplied": {
            "type": "boolean",
            "description": "Whether the customer supplies the part, so no vendor is asked for it"
          },
          "optional": {
            "type": "boolean",
            "description": "Whether the task may be done without it"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ],
            "description": "Why the part is asked for",
            "x-enum-descriptions": [
              "The evaluation missed it",
              "More damage was found than the evaluation saw",
              "Hardware on the unit is broken",
              "Hardware is missing from the unit",
              "A service bulletin calls for it",
              "An airworthiness directive calls for it",
              "The work order's materials list left it out",
              "Not set"
            ],
            "x-enum-labels": [
              "Missed in evaluation",
              "Additional damage found",
              "Broken hardware",
              "Missing hardware",
              "SB required",
              "AD required",
              "Part not on BOM list",
              "Not set"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The template's currency, which its market value is in"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the part is expected to be worth on the market; copied only onto a work order in that currency"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes for the shop, never shown to the customer"
          },
          "work_order_template_task": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The catalog part, or null where only `part_number_raw` names it"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The least condition the part may be in; any ranked higher will do, and null takes any"
          },
          "part_off": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part taken off the unit, where it isn't the part itself; only on a replace, a repair or a removal"
          },
          "expected_part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part expected back on the unit; only on a replace or a repair"
          },
          "expected_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition the part back on is expected in"
          },
          "removal_priority": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "How soon its part comes off the unit, from the shop's removal priorities"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTemplatePart": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "part_description",
          "work_order_template",
          "part",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_part"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The catalog's description of the part"
          },
          "work_order_template": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTemplatePhase": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "phase_template_version",
          "phase_template_active",
          "work_order_template",
          "phase_template",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_phase"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it applies among the template's phases, lowest first; one phase to a sequence"
          },
          "phase_template_version": {
            "type": "integer",
            "description": "The placed template's revision label"
          },
          "phase_template_active": {
            "type": "boolean",
            "description": "Whether the placed template is active; while one is not, the template made of it applies to no work order"
          },
          "work_order_template": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The template made of phases"
          },
          "phase_template": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The template placed, one made of tasks, of the same organization and currency; one template may be a phase of many"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTemplateTask": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "billing_type",
          "output_type",
          "currency_code",
          "currency_exponent",
          "flat_rate_price_cents",
          "parts_fixed_price_cents",
          "parts_over_and_above_fixed_price_cents",
          "labor_fixed_rate_cents",
          "misc_fixed_price_cents",
          "summary",
          "independent_inspection",
          "der_repair",
          "skills",
          "work_order_template",
          "customer",
          "parent",
          "work_station",
          "publication",
          "gate",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_template_task"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "sequence": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ],
            "description": "`routine`: Work every unit of its kind gets; `non_routine`: Work this unit needs, found on it",
            "x-enum-descriptions": [
              "Work every unit of its kind gets",
              "Work this unit needs, found on it"
            ],
            "x-enum-labels": [
              "Routine",
              "Non-routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ],
            "description": "The scope of work the task belongs to; null when the task has no scope",
            "x-enum-descriptions": [
              "Inspected and/or tested, with no repair",
              "Repaired to a serviceable condition",
              "Overhauled to the manufacturer's overhaul standard",
              "Modified, as a service bulletin or design change says",
              "Taken apart, to find what the unit needs",
              "Not set"
            ],
            "x-enum-labels": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify",
              "Teardown",
              "Not set"
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ],
            "description": "`required`: Billed as part of the work the customer asked for; `optional`: Billed only if the customer takes it; `warranty`: Done under warranty, billed at nothing; `repair_process_code`: Billed at the repair process code's price",
            "x-enum-descriptions": [
              "Billed as part of the work the customer asked for",
              "Billed only if the customer takes it",
              "Done under warranty, billed at nothing",
              "Billed at the repair process code's price"
            ],
            "x-enum-labels": [
              "Required",
              "Optional",
              "Warranty",
              "Repair process code"
            ]
          },
          "output_type": {
            "type": "string",
            "enum": [
              "summary",
              "detail",
              "hidden"
            ],
            "description": "How much of the task the customer's quote and invoice show",
            "x-enum-descriptions": [
              "Billed as one line, its sub tasks and charges rolled into it",
              "Billed with its labor, parts and charges itemized",
              "Left off the customer's quote and invoice"
            ],
            "x-enum-labels": [
              "Summary",
              "Detail itemized",
              "Hidden"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The template's currency, which its prices are in"
          },
          "currency_exponent": {
            "type": "number",
            "description": "The minor-unit places of `currency_code`"
          },
          "flat_rate_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what the task is done for, whatever it takes; null where it has no flat rate"
          },
          "parts_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what its parts are billed at in all; null where they are not billed at a fixed price"
          },
          "parts_over_and_above_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what parts beyond the task's scope are billed at in all; null where they are not billed at a fixed price"
          },
          "labor_fixed_rate_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what its labor is billed at in all; null where it is not billed at a fixed rate"
          },
          "misc_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Minor units of `currency_code`: what its other charges are billed at in all; null where they are not billed at a fixed price"
          },
          "summary": {
            "type": "boolean",
            "description": "Whether the task only gathers sub tasks, set when it is made"
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean",
            "description": "Whether a DER repairs it; refused on a template taking no DER repairs"
          },
          "skills": {
            "type": "array",
            "description": "The skills the task needs, in order, each with the hours it is estimated at; none on a summary task",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "skill",
                "estimated_hours"
              ],
              "properties": {
                "skill": {
                  "$ref": "#/components/schemas/Stub"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "decimal"
                }
              }
            }
          },
          "work_order_template": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ]
          },
          "customer": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The one customer its template is for, by its company; null is for every customer"
          },
          "parent": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderTemplateTaskStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The summary task it sits under; null at the top"
          },
          "work_station": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "publication": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The publication it is worked to; the work order's task cites the revision current when the template is applied"
          },
          "gate": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Stub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The gate it sits behind, copied to the work order's task while the gate is active; null on a summary task and where none is set"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "update",
                    "revise_prices",
                    "replace_skills",
                    "add_instruction",
                    "add_material",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read",
            "x-answered-by": {
              "revise_prices": "update_work_order_template_task",
              "add_instruction": "create_work_order_template_instruction",
              "add_material": "create_work_order_template_material"
            }
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkOrderTurnIn": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "quantity",
          "serial_number",
          "part_description",
          "findings",
          "teardown",
          "status",
          "cancelled_at",
          "work_order_material",
          "inventory_line",
          "part",
          "condition",
          "bin",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_turn_in"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "quantity": {
            "type": "number",
            "description": "How many came in"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The serial number of the unit it came in as"
          },
          "part_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "The description of the part the unit is"
          },
          "findings": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Removed Part Findings: what the technician found on the part"
          },
          "teardown": {
            "type": "boolean",
            "description": "Whether it came in by `POST /work_orders/{uuid}/tasks/{task_uuid}/add_teardown` rather than off a BOM line"
          },
          "status": {
            "type": "string",
            "enum": [
              "turned_in",
              "cancelled"
            ],
            "description": "`turned_in` while the unit stands in inventory, `cancelled` once its turn-in was cancelled"
          },
          "cancelled_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When `POST /work_order_materials/{uuid}/cancel_turn_in` took the unit back out of inventory"
          },
          "work_order_material": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The inventory line the part came in on, protected as a work order part"
          },
          "part": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PartStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The part the unit is"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit's condition now, a visual check's included"
          },
          "bin": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BinStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the unit sits"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "repair",
        "x-role": "line"
      },
      "WorkOrderVisualCheck": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "findings",
          "work_order_material",
          "inventory_line",
          "previous_condition",
          "condition",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_order_visual_check"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "findings": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the technician found on the unit"
          },
          "work_order_material": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/WorkOrderMaterialStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "inventory_line": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/InventoryLineStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The unit looked over: the work order's own unit, or a part turned in off it"
          },
          "previous_condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition the unit was in before the check"
          },
          "condition": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ],
            "description": "The condition the unit was found in, which the check set on it"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          }
        },
        "x-area": "repair",
        "x-role": "master_data"
      },
      "WorkStation": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "object": {
            "type": "string",
            "const": "work_station"
          },
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "inactive_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "organization": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CodedStub"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "The last change to the record, or to a line of it; `updated_since` narrows and `sort=updated_at` walks on it"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "deactivate",
                    "activate",
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "The verbs this record has next, each allowed or refused with why; on a single record and every write, and in a list only where each row's verbs answer to a record other than the one read"
          }
        },
        "x-area": "settings",
        "x-role": "setting"
      },
      "AccessTokenList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccessToken"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AccountSettingsList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountSettings"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AccountingTransactionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountingTransaction"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AccountingTransactionLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountingTransactionLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AgreementAnswerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgreementAnswer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AgreementVersionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgreementVersion"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AllocationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Allocation"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AlternateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Alternate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ApplicabilityList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Applicability"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AtaChapterList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AtaChapter"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AtaZoneList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AtaZone"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AttachmentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          },
          "avsight_file_count": {
            "type": "integer",
            "minimum": 0,
            "description": "Present when `include[]=avsight_file_count` asked for it: the files an AvSight migration found filed on the record the list names and hasn't attached there yet, still arriving or kept in AvSight, which `GET /salesforce_integration/avsight/migration/files` lists; 0 when the list names no record"
          },
          "corepilot_legacy_file_count": {
            "type": "integer",
            "minimum": 0,
            "description": "Present when `include[]=corepilot_legacy_file_count` asked for it: the files CorePilot legacy filed on the record the list names that the migration hasn't attached there yet, still arriving, in Uploads or kept in CorePilot legacy, which `GET /corepilot_legacy_migration/files` lists; 0 when the list names no record"
          }
        }
      },
      "AutoquoteAttemptList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutoquoteAttempt"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AutoquoteAttemptLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutoquoteAttemptLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AutoquoteSettingsList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AutoquoteSettings"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AvsightIntegrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightIntegration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AvsightIntegrationMissingFieldList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightIntegrationMissingField"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AvsightIntegrationPushList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightIntegrationPush"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AvsightIntegrationRecordList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightIntegrationRecord"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          },
          "reasons": {
            "type": "array",
            "description": "Present when `include[]=reasons` asked for it: the mappings, fields and reasons the problems and skipped records the list narrows to are held for, most problems first, each counted over the whole migration rather than the list, so `POST /salesforce_integration/avsight/records/skip` naming a group's three skips its `problems_count` and `POST /salesforce_integration/avsight/records/unskip` unskips its `skipped_count`",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "mapping",
                "mapping_label",
                "field",
                "field_label",
                "reason",
                "reason_label",
                "problems_count",
                "skipped_count",
                "example"
              ],
              "properties": {
                "mapping": {
                  "type": "string",
                  "description": "The mapping, by the key `mapping[]` takes"
                },
                "mapping_label": {
                  "type": "string"
                },
                "field": {
                  "type": "string",
                  "description": "The AvSight field, by the API name `field[]` takes; `base` where no field is at fault"
                },
                "field_label": {
                  "type": "string",
                  "description": "The field as the problems word it, or its API name where none does"
                },
                "reason": {
                  "type": "string",
                  "description": "The reason, by the key `reason[]` takes"
                },
                "reason_label": {
                  "type": "string"
                },
                "problems_count": {
                  "type": "integer",
                  "description": "Standing problems and failures held for it"
                },
                "skipped_count": {
                  "type": "integer",
                  "description": "Standing skipped records held for it"
                },
                "example": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "One of its problems, as the record's `problems` words it"
                }
              }
            }
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "skip",
                    "unskip"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "Present when `include[]=actions` asked for it: `skip` and `unskip` on the collection as the migration answers them for every record, so one refused here (while a check runs) is refused on every row"
          }
        }
      },
      "AvsightIntegrationValueMappingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightIntegrationValueMapping"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AvsightMigrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightMigration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "AvsightMigrationFileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvsightMigrationFile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "BillingAddressList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingAddress"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "BinList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Bin"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "BotList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Bot"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CalendarList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Calendar"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CalendarEventList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalendarEvent"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CalendarItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CalendarItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CalibrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Calibration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CarrierAccountList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CarrierAccount"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CarrierList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Carrier"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CertificateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Certificate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CertificateStandardList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateStandard"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ChannelTallyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChannelTally"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ChargeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Charge"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ClauseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Clause"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CombinedTaxRateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CombinedTaxRate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CompanyAddressList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanyAddress"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CompanyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Company"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CompanySegmentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompanySegment"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConditionAnswerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConditionAnswer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConditionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Condition"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConditionListingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConditionListing"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConsignorStatementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsignorStatement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConsignorStatementLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsignorStatementLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ContactList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Contact"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ContactRoleList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactRole"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ConversationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Conversation"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CorepilotLegacyMigrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CorepilotLegacyMigration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "CorepilotLegacyMigrationFileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CorepilotLegacyMigrationFile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CountryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Country"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CurrencyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Currency"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Customer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "CustomerEmailTemplatePreferencesList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEmailTemplatePreferences"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "CustomerExchangeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerExchange"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerLeaseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerLease"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerNoQuoteReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerNoQuoteReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerPartPriceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerPartPrice"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerPaymentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerPayment"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerQuoteArchiveReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerQuoteArchiveReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerQuoteList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerQuote"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerQuoteLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerQuoteLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerQuoteLostReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerQuoteLostReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerRepairPriceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerRepairPrice"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerReturnList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerReturn"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerReturnLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerReturnLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerReturnReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerReturnReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerRfqLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerRfqLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "CustomerTaxExemptionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerTaxExemption"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DashboardAudienceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardAudience"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DashboardList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dashboard"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DashboardOpeningList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardOpening"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "DashboardTileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardTile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DefaultIssuePartList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DefaultIssuePart"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DemandList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Demand"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DirectRfqConditionAnswerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectRfqConditionAnswer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DirectRfqConditionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectRfqCondition"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DirectRfqRepairServiceAnswerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectRfqRepairServiceAnswer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DirectRfqRepairServiceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectRfqRepairService"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DirectRfqTagTypeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DirectRfqTagType"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DocumentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Document"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DocumentPreviewList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentPreview"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "DocumentTemplateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentTemplate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "DocumentTemplateVersionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentTemplateVersion"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DueInLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DueInLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "DueInOrderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DueInOrder"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EmailBannerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailBanner"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EmailFileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailFile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailKindList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailKind"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailLayoutBlockList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailLayoutBlock"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailLayoutList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailLayout"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailPreviewList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailPreview"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailSenderRuleList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSenderRule"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EmailSendingSettingsList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSendingSettings"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmailSuppressionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSuppression"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          },
          "actions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "verb",
                "allowed",
                "reason",
                "grant"
              ],
              "properties": {
                "verb": {
                  "type": "string",
                  "enum": [
                    "delete"
                  ]
                },
                "allowed": {
                  "type": "boolean"
                },
                "reason": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Why the verb is refused: the grant the caller lacks, else the record's own reason; null when allowed"
                },
                "grant": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The grant the caller lacks for the verb, or the grants any one of which would do, when that is why it is refused; null when the record refuses it or it is allowed"
                }
              }
            },
            "description": "Present when `include[]=actions` asked for it: each verb on the list's addresses as the list answers it for all of them, so one refused here (a sandbox's list, which is its production account's) is refused on every row; a row's own refusal (a spam report's) is in that address's own `actions`, read with `GET /email_suppressions/{uuid}`"
          }
        }
      },
      "EmailTemplateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailTemplate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EmailTemplatePreferencesList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailTemplatePreferences"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "EmployeeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Employee"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EmployeeSkillList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmployeeSkill"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "EventList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Event"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExportList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Export"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExportOmissionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExportOmission"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExternalKeyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalKey"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExternalRecordList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalRecord"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExternalStreamList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalStream"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ExternalSystemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExternalSystem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "FacilityList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Facility"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "FreightTermList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FreightTerm"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "FxRateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FxRate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ImportList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Import"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ImportMappingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportMapping"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ImportRowList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportRow"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ImportTypeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportType"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ImportValueMatchList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportValueMatch"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InspectionChecklistList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InspectionChecklist"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InspectionChecklistItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InspectionChecklistItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InspectionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Inspection"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InspectionItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InspectionItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InventoryCodeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryCode"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InventoryEntryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryEntry"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InventoryLedgerDefaultList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryLedgerDefault"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "InventoryLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InventoryParticipationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryParticipation"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InventoryUnitCostList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventoryUnitCost"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "InvestorStatementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvestorStatement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InvestorStatementLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvestorStatementLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InvoiceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Invoice"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "InvoiceLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "IssuedPartList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IssuedPart"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "JunkHelpList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JunkHelp"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "LaborEntryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LaborEntry"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "LeadTimeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeadTime"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "LedgerAccountActivityList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerAccountActivity"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          },
          "totals": {
            "type": "object",
            "additionalProperties": false,
            "description": "Present when `include[]=totals` asked for it: the span's postings to every account the list narrows to, and the transactions dated inside it that post nothing",
            "required": [
              "debit_cents",
              "credit_cents",
              "failed_count",
              "skipped_count"
            ],
            "properties": {
              "debit_cents": {
                "type": "integer",
                "description": "Minor units of `currency_code`, the account's currency"
              },
              "credit_cents": {
                "type": "integer",
                "description": "Minor units of `currency_code`, the account's currency"
              },
              "failed_count": {
                "type": "integer",
                "description": "Transactions the books refused, whose lines count nowhere"
              },
              "skipped_count": {
                "type": "integer",
                "description": "Transactions skipped, whose lines count nowhere"
              }
            }
          }
        }
      },
      "LedgerAccountList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerAccount"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "LedgerAccountLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LedgerAccountLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ListingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Listing"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ListingRefreshList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingRefresh"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ManifestList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Manifest"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ManifestLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ManifestLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ManufacturerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Manufacturer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceCatalogList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceCatalog"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceConditionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceCondition"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Marketplace"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceIntegrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceIntegration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceMeasurementUnitList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceMeasurementUnit"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceRepairServiceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceRepairService"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MarketplaceTagTypeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketplaceTagType"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MeasurementUnitList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeasurementUnit"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MeasurementUnitListingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeasurementUnitListing"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MembershipList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MessageList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Message"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MigrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Migration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "MyWorkItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyWorkItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "NotificationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Notification"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "NotificationPreferencesList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationPreferences"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "OauthAuthorizationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OauthAuthorization"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "OnboardingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Onboarding"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "OnboardingStepList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OnboardingStep"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "OrganizationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Organization"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "OrganizationLedgerDefaultList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrganizationLedgerDefault"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "PartClassificationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartClassification"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PartList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Part"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PartRepairServiceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartRepairService"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PartTallyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PartTally"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PasswordConfirmationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PasswordConfirmation"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "PayableApplicationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayableApplication"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PaymentTermList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentTerm"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PrintNodeIntegrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintNodeIntegration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "PrintNodePrinterList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintNodePrinter"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "PrintRequestList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintRequest"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PrintRequestDocumentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrintRequestDocument"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PrinterList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Printer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ProfileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Profile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ProtectionReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProtectionReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PublicationCategoryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationCategory"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PublicationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Publication"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PublicationRevisionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationRevision"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PublicationVerificationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PublicationVerification"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PurchaseOrderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrder"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PurchaseOrderLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "PurchaseOrderRequirementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PurchaseOrderRequirement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "QuickbooksAccountList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksAccount"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuickbooksAssignmentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksAssignment"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "QuickbooksCustomerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksCustomer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuickbooksIntegrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksIntegration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuickbooksItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuickbooksTaxCodeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksTaxCode"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuickbooksVendorList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuickbooksVendor"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "QuoteResponseTimeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuoteResponseTime"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ReceiptList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Receipt"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ReceiptLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReceiptLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ReceivableApplicationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReceivableApplication"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RejectionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Rejection"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RejectionReasonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RejectionReason"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ReleaseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Release"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ReleaseLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReleaseLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairOrderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairOrder"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairOrderLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairOrderLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairOrderRequirementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairOrderRequirement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairOrderStageList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairOrderStage"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairServiceAnswerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairServiceAnswer"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairServiceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairService"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RepairServiceListingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepairServiceListing"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RequirementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Requirement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RfqReadingLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RfqReadingLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "RoleList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Role"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalesOrderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrder"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalesOrderHoldList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderHold"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalesOrderLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalesOrderRequirementList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesOrderRequirement"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalesforceIntegrationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesforceIntegration"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SalespersonList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Salesperson"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SalespersonTallyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalespersonTally"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SendingAddressList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SendingAddress"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SendingDomainList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SendingDomain"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SessionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Session"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShareList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Share"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShareFileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareFile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShareRecipientList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareRecipient"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShareViewList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareView"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShareableFileList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareableFile"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ShipViaList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShipVia"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ShortcutList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Shortcut"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SkillList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SmartListingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmartListing"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SmartQuotingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SmartQuoting"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SourcingRequestList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SourcingRequest"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "SupportAccessList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportAccess"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SupportMessengerList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportMessenger"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "SupportSessionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupportSession"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TaxCategoryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxCategory"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TaxDestinationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxDestination"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TaxOriginList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaxOrigin"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TeamList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Team"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TimeZoneList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimeZone"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "TriageRuleList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriageRule"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "UnreadSheetRowList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnreadSheetRow"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "UploadCategoryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UploadCategory"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "UploadList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Upload"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorCapabilityList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorCapability"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorCertificateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorCertificate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Vendor"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "VendorEmailTemplatePreferencesList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorEmailTemplatePreferences"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "VendorExchangeList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorExchange"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorInventoryLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorInventoryLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorLeaseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorLease"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorPartPriceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorPartPrice"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorPaymentList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorPayment"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorQuoteLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorQuoteLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorRepairPriceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorRepairPrice"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorReturnList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorReturn"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorReturnLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorReturnLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorRfqList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorRfq"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VendorRfqLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VendorRfqLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ViewAudienceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ViewAudience"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ViewList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/View"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "ViewOpeningsList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ViewOpenings"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "ViewPersonalizationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ViewPersonalization"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "VoucherList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Voucher"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "VoucherLineList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VoucherLine"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WarehouseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Warehouse"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WarehouseWorkItemList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WarehouseWorkItem"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WebhookDeliveryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WebhookEndpointList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookEndpoint"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkCenterList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkCenter"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkInstructionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkInstruction"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrder"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderFindingList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderFinding"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderGateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderGate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderHoldList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderHold"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderIssueList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderIssue"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterial"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialDispositionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialDisposition"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialInspectionComplianceList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialInspectionCompliance"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialNdtQuantityStatusList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialNdtQuantityStatus"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialPickStatusList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialPickStatus"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialRemovalPriorityList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialRemovalPriority"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderMaterialSupplyStatusList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderMaterialSupplyStatus"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderSettingsList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderSettings"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          }
        }
      },
      "WorkOrderShopSupplyList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderShopSupply"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderStageList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderStage"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTaskList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTask"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTaskStageList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTaskStage"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplateCategoryList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplateCategory"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplateList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplate"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplateInstructionList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplateInstruction"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplateMaterialList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplateMaterial"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplatePartList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplatePart"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplatePhaseList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplatePhase"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTemplateTaskList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTemplateTask"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderTurnInList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderTurnIn"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkOrderVisualCheckList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkOrderVisualCheck"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "WorkStationList": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkStation"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` for the next page; null on the last"
          },
          "total_count": {
            "type": "integer",
            "description": "Present when `include[]=total_count` asked for it: every row the list narrows to, not only this page, counted to 10,000"
          },
          "total_count_exact": {
            "type": "boolean",
            "description": "Present beside `total_count`: false when the count stopped at its ceiling and more rows match"
          }
        }
      },
      "AccessTokenField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "description",
          "token",
          "token_prefix",
          "scopes",
          "status",
          "expires_on",
          "last_used_at",
          "revoked_at",
          "created_at",
          "updated_at"
        ]
      },
      "AccessTokenListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "description",
          "token",
          "token_prefix",
          "scopes",
          "status",
          "expires_on",
          "last_used_at",
          "revoked_at",
          "created_at",
          "updated_at"
        ]
      },
      "AccountSettingsField": {
        "type": "string",
        "enum": [
          "object",
          "auto_invoice_on_ship",
          "tax_on_quotes",
          "tax_on_sales_orders",
          "require_approved_vendors",
          "exchange_part_writedown_percent",
          "lease_writedown_percent",
          "release_on_pick",
          "receive_without_serials",
          "currency_code",
          "time_zone",
          "warehouse_defaults",
          "slug",
          "default_spec_inventory",
          "default_managed_repair_inventory",
          "default_vendor_lease_inventory",
          "default_customer_payment_term",
          "default_vendor_payment_term",
          "system_of_record",
          "created_at",
          "updated_at",
          "actions",
          "default_spec_inventory.object",
          "default_spec_inventory.uuid",
          "default_spec_inventory.code",
          "default_spec_inventory.name",
          "default_spec_inventory.inactive_at",
          "default_spec_inventory.custody",
          "default_spec_inventory.migration_hold",
          "default_spec_inventory.currency_code",
          "default_spec_inventory.source_fields",
          "default_spec_inventory.owner_company",
          "default_spec_inventory.consignor_participation",
          "default_spec_inventory.cost_pool",
          "default_spec_inventory.created_at",
          "default_spec_inventory.updated_at"
        ]
      },
      "AccountSettingsListField": {
        "type": "string",
        "enum": [
          "object",
          "auto_invoice_on_ship",
          "tax_on_quotes",
          "tax_on_sales_orders",
          "require_approved_vendors",
          "exchange_part_writedown_percent",
          "lease_writedown_percent",
          "release_on_pick",
          "receive_without_serials",
          "currency_code",
          "time_zone",
          "warehouse_defaults",
          "slug",
          "default_spec_inventory",
          "default_managed_repair_inventory",
          "default_vendor_lease_inventory",
          "default_customer_payment_term",
          "default_vendor_payment_term",
          "system_of_record",
          "created_at",
          "updated_at",
          "default_spec_inventory.object",
          "default_spec_inventory.uuid",
          "default_spec_inventory.code",
          "default_spec_inventory.name",
          "default_spec_inventory.inactive_at",
          "default_spec_inventory.custody",
          "default_spec_inventory.migration_hold",
          "default_spec_inventory.currency_code",
          "default_spec_inventory.source_fields",
          "default_spec_inventory.owner_company",
          "default_spec_inventory.consignor_participation",
          "default_spec_inventory.cost_pool",
          "default_spec_inventory.created_at",
          "default_spec_inventory.updated_at"
        ]
      },
      "AccountingTransactionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "activity",
          "status",
          "posted_on",
          "memo",
          "currency_code",
          "failure",
          "attempts",
          "identifier",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "last_attempted_at",
          "posted_at",
          "kind",
          "home_debit_cents",
          "home_credit_cents",
          "inventory_name",
          "source",
          "source_document",
          "inventory_code",
          "reversal_of",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "AccountingTransactionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "activity",
          "status",
          "posted_on",
          "memo",
          "currency_code",
          "failure",
          "attempts",
          "identifier",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "last_attempted_at",
          "posted_at",
          "kind",
          "home_debit_cents",
          "home_credit_cents",
          "inventory_name",
          "source",
          "source_document",
          "inventory_code",
          "reversal_of",
          "created_at",
          "updated_at"
        ]
      },
      "AccountingTransactionLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "purpose",
          "purpose_label",
          "unresolved",
          "home_debit_cents",
          "home_credit_cents",
          "document_debit_cents",
          "document_credit_cents",
          "description",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "ledger_account_code",
          "ledger_account_name",
          "ledger_account",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ]
      },
      "AccountingTransactionLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "purpose",
          "purpose_label",
          "unresolved",
          "home_debit_cents",
          "home_credit_cents",
          "document_debit_cents",
          "document_credit_cents",
          "description",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "ledger_account_code",
          "ledger_account_name",
          "ledger_account",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ]
      },
      "AgreementAnswerField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "version",
          "outcome",
          "landing"
        ]
      },
      "AgreementAnswerListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "version",
          "outcome",
          "landing"
        ]
      },
      "AgreementVersionField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "version",
          "title",
          "published_at",
          "major",
          "digest",
          "body_html",
          "assent_text",
          "owed",
          "updated_since_accepted",
          "answerable"
        ]
      },
      "AgreementVersionListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "version",
          "title",
          "published_at",
          "major",
          "digest",
          "body_html",
          "assent_text",
          "owed",
          "updated_since_accepted",
          "answerable"
        ]
      },
      "AllocationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "quantity",
          "status",
          "shippable",
          "consumed_at",
          "serial_number",
          "trace_type",
          "trace_source",
          "tag_number",
          "certificate_number",
          "tagged_by_raw",
          "tag_types",
          "serial_missing",
          "tagged_on",
          "issued_unit_cost_cents",
          "line_position",
          "part_description",
          "demand_part_number",
          "inventory_kind",
          "custody_reason",
          "condition_code",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "customer_po_number",
          "order_line_position",
          "tagged_by",
          "demand",
          "supply",
          "release",
          "part",
          "condition",
          "purchase_order",
          "repair_order",
          "inventory_code",
          "owner_company",
          "creator",
          "ordered_part",
          "demand_order",
          "counterparty",
          "order_line",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "AllocationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "quantity",
          "status",
          "shippable",
          "consumed_at",
          "serial_number",
          "trace_type",
          "trace_source",
          "tag_number",
          "certificate_number",
          "tagged_by_raw",
          "tag_types",
          "serial_missing",
          "tagged_on",
          "issued_unit_cost_cents",
          "line_position",
          "part_description",
          "demand_part_number",
          "inventory_kind",
          "custody_reason",
          "condition_code",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "customer_po_number",
          "order_line_position",
          "tagged_by",
          "demand",
          "supply",
          "release",
          "part",
          "condition",
          "purchase_order",
          "repair_order",
          "inventory_code",
          "owner_company",
          "creator",
          "ordered_part",
          "demand_order",
          "counterparty",
          "order_line",
          "created_at",
          "updated_at"
        ]
      },
      "AlternateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "interchangeability",
          "direction",
          "authority",
          "source_fields",
          "part",
          "alternate_part",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "AlternateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "interchangeability",
          "direction",
          "authority",
          "source_fields",
          "part",
          "alternate_part",
          "created_at",
          "updated_at"
        ]
      },
      "ApplicabilityField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "category",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ApplicabilityListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "category",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "AtaChapterField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "AtaChapterListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "AtaZoneField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "AtaZoneListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "AttachmentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "line_position",
          "upload",
          "record",
          "created_at",
          "updated_at",
          "actions",
          "upload.object",
          "upload.uuid",
          "upload.name",
          "upload.description",
          "upload.generated",
          "upload.byte_size",
          "upload.content_type",
          "upload.version",
          "upload.file_filename",
          "upload.attachments_count",
          "upload.thumbnailed",
          "upload.trashed_at",
          "upload.category",
          "upload.creator",
          "upload.created_at",
          "upload.updated_at"
        ]
      },
      "AttachmentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "line_position",
          "upload",
          "record",
          "created_at",
          "updated_at",
          "upload.object",
          "upload.uuid",
          "upload.name",
          "upload.description",
          "upload.generated",
          "upload.byte_size",
          "upload.content_type",
          "upload.version",
          "upload.file_filename",
          "upload.attachments_count",
          "upload.thumbnailed",
          "upload.trashed_at",
          "upload.category",
          "upload.creator",
          "upload.created_at",
          "upload.updated_at"
        ]
      },
      "AutoquoteAttemptField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "occasion",
          "mode",
          "status",
          "target_count",
          "planned_count",
          "applied_count",
          "stop_requested",
          "started_at",
          "finished_at",
          "send_outcome",
          "send_refusal",
          "sent_at",
          "home_value_cents",
          "currency_code",
          "home_currency_code",
          "settings",
          "lines",
          "customer_quote",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "AutoquoteAttemptListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "occasion",
          "mode",
          "status",
          "target_count",
          "planned_count",
          "applied_count",
          "stop_requested",
          "started_at",
          "finished_at",
          "send_outcome",
          "send_refusal",
          "sent_at",
          "home_value_cents",
          "currency_code",
          "home_currency_code",
          "settings",
          "lines",
          "customer_quote",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "AutoquoteAttemptLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "outcome",
          "request_type",
          "exchange_type",
          "core_charge_cents",
          "core_due_days",
          "quantity",
          "unit_price_cents",
          "price_source",
          "decline",
          "before_quantity",
          "before_unit_price_cents",
          "applied",
          "currency_code",
          "customer_rfq_line",
          "customer_quote_line",
          "inventory_line",
          "condition",
          "no_quote_reason",
          "customer_part_price",
          "customer_repair_price",
          "work_order_template",
          "repair_service",
          "lead_time",
          "before_inventory_line",
          "before_no_quote_reason",
          "lease",
          "created_at",
          "updated_at"
        ]
      },
      "AutoquoteAttemptLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "outcome",
          "request_type",
          "exchange_type",
          "core_charge_cents",
          "core_due_days",
          "quantity",
          "unit_price_cents",
          "price_source",
          "decline",
          "before_quantity",
          "before_unit_price_cents",
          "applied",
          "currency_code",
          "customer_rfq_line",
          "customer_quote_line",
          "inventory_line",
          "condition",
          "no_quote_reason",
          "customer_part_price",
          "customer_repair_price",
          "work_order_template",
          "repair_service",
          "lead_time",
          "before_inventory_line",
          "before_no_quote_reason",
          "lease",
          "created_at",
          "updated_at"
        ]
      },
      "AutoquoteSettingsField": {
        "type": "string",
        "enum": [
          "object",
          "automatic",
          "quantity_mode",
          "condition_mode",
          "inventory_order",
          "margin_floor_percent",
          "home_minimum_value_cents",
          "home_maximum_value_cents",
          "price_history_max_age_days",
          "price_sources",
          "sends_automatically",
          "answers_senders",
          "daily_send_limit",
          "currency_code",
          "organization",
          "default_sender",
          "preferred_warehouse",
          "no_inventory_reason",
          "no_price_reason",
          "conditions"
        ]
      },
      "AutoquoteSettingsListField": {
        "type": "string",
        "enum": [
          "object",
          "automatic",
          "quantity_mode",
          "condition_mode",
          "inventory_order",
          "margin_floor_percent",
          "home_minimum_value_cents",
          "home_maximum_value_cents",
          "price_history_max_age_days",
          "price_sources",
          "sends_automatically",
          "answers_senders",
          "daily_send_limit",
          "currency_code",
          "organization",
          "default_sender",
          "preferred_warehouse",
          "no_inventory_reason",
          "no_price_reason",
          "conditions"
        ]
      },
      "AvsightIntegrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "version",
          "version_refusal",
          "read_refusal",
          "inactive_at",
          "fields_checked_at",
          "fields_refusal",
          "records_checked_at",
          "system_of_record_switched_at",
          "sends_declined_quotes",
          "reads_quoting_only",
          "created_at",
          "updated_at",
          "actions",
          "missing_fields.object",
          "missing_fields.uuid",
          "missing_fields.position",
          "missing_fields.object_name",
          "missing_fields.field_name",
          "missing_fields.required",
          "missing_fields.causes",
          "missing_fields.created_at",
          "missing_fields.updated_at"
        ]
      },
      "AvsightIntegrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "version",
          "version_refusal",
          "read_refusal",
          "inactive_at",
          "fields_checked_at",
          "fields_refusal",
          "records_checked_at",
          "system_of_record_switched_at",
          "sends_declined_quotes",
          "reads_quoting_only",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightIntegrationMissingFieldField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "object_name",
          "field_name",
          "required",
          "causes",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightIntegrationMissingFieldListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "object_name",
          "field_name",
          "required",
          "causes",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightIntegrationPushField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mapping",
          "key",
          "status",
          "fields",
          "message",
          "attempted_at",
          "pushed_at",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightIntegrationPushListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mapping",
          "key",
          "status",
          "fields",
          "message",
          "attempted_at",
          "pushed_at",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightIntegrationRecordField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mapping",
          "mapping_version",
          "status",
          "problems",
          "problem_reasons",
          "note",
          "outcome",
          "checked_at",
          "applied_at",
          "external_record",
          "record",
          "created_at",
          "updated_at",
          "actions",
          "external_record.object",
          "external_record.uuid",
          "external_record.key",
          "external_record.label",
          "external_record.title",
          "external_record.fields",
          "external_record.source_url",
          "external_record.source_modified_at",
          "external_record.first_seen_at",
          "external_record.changed_at",
          "external_record.removed_at",
          "external_record.created_at",
          "external_record.updated_at"
        ]
      },
      "AvsightIntegrationRecordListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mapping",
          "mapping_version",
          "status",
          "problems",
          "problem_reasons",
          "note",
          "outcome",
          "checked_at",
          "applied_at",
          "external_record",
          "record",
          "created_at",
          "updated_at",
          "external_record.object",
          "external_record.uuid",
          "external_record.key",
          "external_record.label",
          "external_record.title",
          "external_record.fields",
          "external_record.source_url",
          "external_record.source_modified_at",
          "external_record.first_seen_at",
          "external_record.changed_at",
          "external_record.removed_at",
          "external_record.created_at",
          "external_record.updated_at"
        ]
      },
      "AvsightIntegrationValueMappingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "value",
          "label",
          "action",
          "choice",
          "creatable",
          "ledger_account_to_create",
          "records_count",
          "decided_at",
          "invitee_email_address",
          "record",
          "decider",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "AvsightIntegrationValueMappingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "value",
          "label",
          "action",
          "choice",
          "creatable",
          "ledger_account_to_create",
          "records_count",
          "decided_at",
          "invitee_email_address",
          "record",
          "decider",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightMigrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "currency_code",
          "applying",
          "applying_since",
          "checked_at",
          "checking",
          "pulling",
          "finished_at",
          "finish_asked_at",
          "finishes_on",
          "pushes_back_until",
          "copies_files",
          "module_ends_on",
          "module_refusal",
          "push_refusal",
          "last_pushed_at",
          "counting",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "AvsightMigrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "currency_code",
          "applying",
          "applying_since",
          "checked_at",
          "checking",
          "pulling",
          "finished_at",
          "finish_asked_at",
          "finishes_on",
          "pushes_back_until",
          "copies_files",
          "module_ends_on",
          "module_refusal",
          "push_refusal",
          "last_pushed_at",
          "counting",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightMigrationFileField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ]
      },
      "AvsightMigrationFileListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ]
      },
      "BillingAddressField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "country_name",
          "lines",
          "primary",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "BillingAddressListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "country_name",
          "lines",
          "primary",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "BinField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "held_from_sale",
          "inactive_at",
          "source_fields",
          "document_forms",
          "facility",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "BinListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "held_from_sale",
          "inactive_at",
          "source_fields",
          "document_forms",
          "facility",
          "created_at",
          "updated_at"
        ]
      },
      "BotField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "token_scopes",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "BotListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "token_scopes",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CalendarField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "color",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CalendarListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "color",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CalendarEventField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "came_over_from",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CalendarEventListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "came_over_from",
          "created_at",
          "updated_at"
        ]
      },
      "CalendarItemField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "key",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "source",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "occurrence",
          "came_over_from"
        ]
      },
      "CalendarItemListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "key",
          "uuid",
          "title",
          "withheld",
          "all_day",
          "starts_on",
          "ends_on",
          "starts_at",
          "ends_at",
          "time_zone",
          "show_as",
          "source",
          "private",
          "notes",
          "location",
          "calendar",
          "organizer",
          "attendees",
          "company",
          "record",
          "repeat",
          "occurrence",
          "came_over_from"
        ]
      },
      "CalibrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "performed_on",
          "due_on",
          "result",
          "certificate_number",
          "notes",
          "calibrated_by",
          "inventory_line",
          "employee",
          "vendor",
          "repair_order_line",
          "created_at",
          "updated_at"
        ]
      },
      "CalibrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "performed_on",
          "due_on",
          "result",
          "certificate_number",
          "notes",
          "calibrated_by",
          "inventory_line",
          "employee",
          "vendor",
          "repair_order_line",
          "created_at",
          "updated_at"
        ]
      },
      "CarrierAccountField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "account_number",
          "nickname",
          "display_name",
          "billing_postal_code",
          "billing_country_code",
          "billing_country_name",
          "inactive_at",
          "carrier",
          "company",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CarrierAccountListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "account_number",
          "nickname",
          "display_name",
          "billing_postal_code",
          "billing_country_code",
          "billing_country_name",
          "inactive_at",
          "carrier",
          "company",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CarrierField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "ship_vias",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CarrierListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "ship_vias",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CertificateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "form",
          "state",
          "signed_at",
          "signature_meaning",
          "signed_by_hand",
          "voided_at",
          "void_reason",
          "release",
          "release_lines",
          "signer_skill",
          "signed_by",
          "document",
          "voided_by",
          "replaces",
          "replaced_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CertificateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "form",
          "state",
          "signed_at",
          "signature_meaning",
          "signed_by_hand",
          "voided_at",
          "void_reason",
          "release",
          "release_lines",
          "signer_skill",
          "signed_by",
          "document",
          "voided_by",
          "replaces",
          "replaced_by",
          "created_at",
          "updated_at"
        ]
      },
      "CertificateStandardField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CertificateStandardListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "ChannelTallyField": {
        "type": "string",
        "enum": [
          "object",
          "channel",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ]
      },
      "ChannelTallyListField": {
        "type": "string",
        "enum": [
          "object",
          "channel",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ]
      },
      "ChargeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "revenue_purpose",
          "expense_purpose",
          "cost_treatment",
          "default_price_cents",
          "percent",
          "currency_code",
          "inactive_at",
          "tax_category",
          "revenue_ledger_account",
          "expense_ledger_account",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ChargeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "revenue_purpose",
          "expense_purpose",
          "cost_treatment",
          "default_price_cents",
          "percent",
          "currency_code",
          "inactive_at",
          "tax_category",
          "revenue_ledger_account",
          "expense_ledger_account",
          "created_at",
          "updated_at"
        ]
      },
      "ClauseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "body",
          "url",
          "default_record_types",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ClauseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "body",
          "url",
          "default_record_types",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CombinedTaxRateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "kind",
          "statement",
          "print_detail",
          "applies_to_quotes",
          "applies_to_sales_orders",
          "percentage",
          "rates",
          "inactive_at",
          "tax_origin",
          "tax_destination",
          "tax_category",
          "quickbooks_assignment",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CombinedTaxRateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "kind",
          "statement",
          "print_detail",
          "applies_to_quotes",
          "applies_to_sales_orders",
          "percentage",
          "rates",
          "inactive_at",
          "tax_origin",
          "tax_destination",
          "tax_category",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "CompanyAddressField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "billing",
          "primary_shipping",
          "primary_billing",
          "inactive_at",
          "country_name",
          "source_fields",
          "company",
          "tax_destination",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CompanyAddressListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "billing",
          "primary_shipping",
          "primary_billing",
          "inactive_at",
          "country_name",
          "source_fields",
          "company",
          "tax_destination",
          "created_at",
          "updated_at"
        ]
      },
      "CompanyField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "trading_name",
          "legal_name",
          "code",
          "cage_code",
          "tax_id",
          "website",
          "phone",
          "fax",
          "email_address",
          "notes",
          "inactive_at",
          "source_fields",
          "roles",
          "vendor_approval",
          "vendor_approval_refusals",
          "vendor_currency_code",
          "migration_hold",
          "unsent_to_avsight",
          "account_owner",
          "segments",
          "primary_billing_address",
          "primary_shipping_address",
          "created_at",
          "updated_at",
          "actions",
          "primary_billing_address.object",
          "primary_billing_address.uuid",
          "primary_billing_address.label",
          "primary_billing_address.attn",
          "primary_billing_address.street",
          "primary_billing_address.city",
          "primary_billing_address.region",
          "primary_billing_address.postal_code",
          "primary_billing_address.country_code",
          "primary_billing_address.shipping",
          "primary_billing_address.billing",
          "primary_billing_address.primary_shipping",
          "primary_billing_address.primary_billing",
          "primary_billing_address.inactive_at",
          "primary_billing_address.country_name",
          "primary_billing_address.source_fields",
          "primary_billing_address.company",
          "primary_billing_address.tax_destination",
          "primary_billing_address.created_at",
          "primary_billing_address.updated_at",
          "primary_shipping_address.object",
          "primary_shipping_address.uuid",
          "primary_shipping_address.label",
          "primary_shipping_address.attn",
          "primary_shipping_address.street",
          "primary_shipping_address.city",
          "primary_shipping_address.region",
          "primary_shipping_address.postal_code",
          "primary_shipping_address.country_code",
          "primary_shipping_address.shipping",
          "primary_shipping_address.billing",
          "primary_shipping_address.primary_shipping",
          "primary_shipping_address.primary_billing",
          "primary_shipping_address.inactive_at",
          "primary_shipping_address.country_name",
          "primary_shipping_address.source_fields",
          "primary_shipping_address.company",
          "primary_shipping_address.tax_destination",
          "primary_shipping_address.created_at",
          "primary_shipping_address.updated_at"
        ]
      },
      "CompanyListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "trading_name",
          "legal_name",
          "code",
          "cage_code",
          "tax_id",
          "website",
          "phone",
          "fax",
          "email_address",
          "notes",
          "inactive_at",
          "source_fields",
          "roles",
          "vendor_approval",
          "vendor_approval_refusals",
          "vendor_currency_code",
          "migration_hold",
          "unsent_to_avsight",
          "account_owner",
          "segments",
          "primary_billing_address",
          "primary_shipping_address",
          "created_at",
          "updated_at",
          "primary_billing_address.object",
          "primary_billing_address.uuid",
          "primary_billing_address.label",
          "primary_billing_address.attn",
          "primary_billing_address.street",
          "primary_billing_address.city",
          "primary_billing_address.region",
          "primary_billing_address.postal_code",
          "primary_billing_address.country_code",
          "primary_billing_address.shipping",
          "primary_billing_address.billing",
          "primary_billing_address.primary_shipping",
          "primary_billing_address.primary_billing",
          "primary_billing_address.inactive_at",
          "primary_billing_address.country_name",
          "primary_billing_address.source_fields",
          "primary_billing_address.company",
          "primary_billing_address.tax_destination",
          "primary_billing_address.created_at",
          "primary_billing_address.updated_at",
          "primary_shipping_address.object",
          "primary_shipping_address.uuid",
          "primary_shipping_address.label",
          "primary_shipping_address.attn",
          "primary_shipping_address.street",
          "primary_shipping_address.city",
          "primary_shipping_address.region",
          "primary_shipping_address.postal_code",
          "primary_shipping_address.country_code",
          "primary_shipping_address.shipping",
          "primary_shipping_address.billing",
          "primary_shipping_address.primary_shipping",
          "primary_shipping_address.primary_billing",
          "primary_shipping_address.inactive_at",
          "primary_shipping_address.country_name",
          "primary_shipping_address.source_fields",
          "primary_shipping_address.company",
          "primary_shipping_address.tax_destination",
          "primary_shipping_address.created_at",
          "primary_shipping_address.updated_at"
        ]
      },
      "CompanySegmentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CompanySegmentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "ConditionAnswerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace_condition",
          "condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ConditionAnswerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace_condition",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "ConditionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "standard_code",
          "position",
          "warranty_days",
          "inactive_at",
          "requirements",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ConditionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "standard_code",
          "position",
          "warranty_days",
          "inactive_at",
          "requirements",
          "created_at",
          "updated_at"
        ]
      },
      "ConditionListingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "condition",
          "marketplace_condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ConditionListingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "condition",
          "marketplace_condition",
          "created_at",
          "updated_at"
        ]
      },
      "ConsignorStatementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "consignor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ConsignorStatementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "consignor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "ConsignorStatementLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ConsignorStatementLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at"
        ]
      },
      "ContactField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "salutation",
          "first_name",
          "last_name",
          "email_address",
          "title",
          "department",
          "phone",
          "mobile",
          "fax",
          "birthdate",
          "notes",
          "primary",
          "receives_invoices",
          "receives_statements",
          "inactive_at",
          "source_fields",
          "name",
          "migration_hold",
          "unsent_to_avsight",
          "company",
          "contact_roles",
          "linked_companies",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ContactListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "salutation",
          "first_name",
          "last_name",
          "email_address",
          "title",
          "department",
          "phone",
          "mobile",
          "fax",
          "birthdate",
          "notes",
          "primary",
          "receives_invoices",
          "receives_statements",
          "inactive_at",
          "source_fields",
          "name",
          "migration_hold",
          "unsent_to_avsight",
          "company",
          "contact_roles",
          "linked_companies",
          "created_at",
          "updated_at"
        ]
      },
      "ContactRoleField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ContactRoleListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "ConversationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "subject",
          "label",
          "purpose",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "ConversationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "subject",
          "label",
          "purpose",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CorepilotLegacyMigrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "system_of_record_switched_at",
          "created_at",
          "updated_at"
        ]
      },
      "CorepilotLegacyMigrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "system_of_record_switched_at",
          "created_at",
          "updated_at"
        ]
      },
      "CorepilotLegacyMigrationFileField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ]
      },
      "CorepilotLegacyMigrationFileListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "status",
          "problem",
          "byte_size",
          "upload",
          "created_at",
          "updated_at"
        ]
      },
      "CountryField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "CountryListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "CurrencyField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name",
          "exponent"
        ]
      },
      "CurrencyListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name",
          "exponent"
        ]
      },
      "CustomerField": {
        "type": "string",
        "enum": [
          "object",
          "currency_code",
          "currency_exponent",
          "credit_limit_cents",
          "credit_hold",
          "email_invoices",
          "ship_complete",
          "default_billing_party",
          "shipping_instructions",
          "wire_transfer_fee_cents",
          "inactive_at",
          "credit_card_fee_percentage",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "tax_destination",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerListField": {
        "type": "string",
        "enum": [
          "object",
          "currency_code",
          "currency_exponent",
          "credit_limit_cents",
          "credit_hold",
          "email_invoices",
          "ship_complete",
          "default_billing_party",
          "shipping_instructions",
          "wire_transfer_fee_cents",
          "inactive_at",
          "credit_card_fee_percentage",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "tax_destination",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerEmailTemplatePreferencesField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "CustomerEmailTemplatePreferencesListField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "CustomerExchangeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "expected_core_serial",
          "exchange_type",
          "core_disposition",
          "return_disposition",
          "core_repair_nte_cents",
          "home_core_basis_cents",
          "identifier",
          "shipped_at",
          "core_due_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_billed",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "bills",
          "expected_core_condition",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "expected_core_part",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerExchangeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "expected_core_serial",
          "exchange_type",
          "core_disposition",
          "return_disposition",
          "core_repair_nte_cents",
          "home_core_basis_cents",
          "identifier",
          "shipped_at",
          "core_due_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_billed",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "bills",
          "expected_core_condition",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "expected_core_part",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerLeaseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "home_unit_basis_cents",
          "writedown_percent",
          "effective_writedown_percent",
          "billed_through_on",
          "returned_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "unbilled_days",
          "started_on",
          "due_back_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerLeaseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "home_unit_basis_cents",
          "writedown_percent",
          "effective_writedown_percent",
          "billed_through_on",
          "returned_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "unbilled_days",
          "started_on",
          "due_back_on",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_received",
          "quantity_outstanding",
          "currency_code",
          "currency_exponent",
          "sales_order_line",
          "migration_hold",
          "document_forms",
          "shipped_part",
          "sales_order",
          "customer",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerNoQuoteReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "printed_text",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerNoQuoteReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "printed_text",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerPartPriceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "request_type",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "part",
          "supply",
          "condition",
          "customer",
          "company_segment",
          "lead_time",
          "exchange",
          "lease",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerPartPriceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "request_type",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "part",
          "supply",
          "condition",
          "customer",
          "company_segment",
          "lead_time",
          "exchange",
          "lease",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerPaymentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "customer",
          "sales_order",
          "voided_by",
          "creator",
          "created_at",
          "updated_at",
          "actions",
          "applications.object",
          "applications.uuid",
          "applications.kind",
          "applications.status",
          "applications.applied_on",
          "applications.amount_cents",
          "applications.currency_code",
          "applications.reference",
          "applications.voided_at",
          "applications.migration_hold",
          "applications.payment",
          "applications.credit",
          "applications.bill",
          "applications.creator",
          "applications.voided_by",
          "applications.created_at",
          "applications.updated_at"
        ]
      },
      "CustomerPaymentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "customer",
          "sales_order",
          "voided_by",
          "creator",
          "created_at",
          "updated_at",
          "applications.object",
          "applications.uuid",
          "applications.kind",
          "applications.status",
          "applications.applied_on",
          "applications.amount_cents",
          "applications.currency_code",
          "applications.reference",
          "applications.voided_at",
          "applications.migration_hold",
          "applications.payment",
          "applications.credit",
          "applications.bill",
          "applications.creator",
          "applications.voided_by",
          "applications.created_at",
          "applications.updated_at"
        ]
      },
      "CustomerQuoteArchiveReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerQuoteArchiveReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerQuoteField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "channel",
          "customer_name_raw",
          "customer_email_address_raw",
          "contact_name_raw",
          "contact_email_address_raw",
          "customer_reference",
          "fob",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "currency_code",
          "identifier",
          "priority",
          "valid_until",
          "sent_at",
          "won_at",
          "lost_at",
          "customer_replied_at",
          "reply_handled_at",
          "trashed_at",
          "status",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "contact_email_address",
          "priced",
          "orderable",
          "sourceable",
          "quantity_quoted",
          "contingent_core_charge_cents",
          "part_summaries",
          "created_on",
          "sent_on",
          "default_valid_until",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "requested_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "part_line_count",
          "unit_priced_count",
          "lines_aligned_to_requests",
          "needs_review",
          "review_reasons",
          "autoquote",
          "migration_hold",
          "avsight_send",
          "source_fields",
          "document_forms",
          "triage_action",
          "kept_from_autoquote",
          "ship_to_address",
          "bill_to_address",
          "organization",
          "customer",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "lost_reason",
          "archive_reason",
          "triage_rule",
          "ship_via",
          "tax_destination",
          "duplicate_of",
          "message",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerQuoteListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "channel",
          "customer_name_raw",
          "customer_email_address_raw",
          "contact_name_raw",
          "contact_email_address_raw",
          "customer_reference",
          "fob",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "currency_code",
          "identifier",
          "priority",
          "valid_until",
          "sent_at",
          "won_at",
          "lost_at",
          "customer_replied_at",
          "reply_handled_at",
          "trashed_at",
          "status",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "contact_email_address",
          "priced",
          "orderable",
          "sourceable",
          "quantity_quoted",
          "contingent_core_charge_cents",
          "part_summaries",
          "created_on",
          "sent_on",
          "default_valid_until",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "requested_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "part_line_count",
          "unit_priced_count",
          "lines_aligned_to_requests",
          "needs_review",
          "review_reasons",
          "autoquote",
          "migration_hold",
          "avsight_send",
          "source_fields",
          "document_forms",
          "triage_action",
          "kept_from_autoquote",
          "ship_to_address",
          "bill_to_address",
          "organization",
          "customer",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "lost_reason",
          "archive_reason",
          "triage_rule",
          "ship_via",
          "tax_destination",
          "duplicate_of",
          "message",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerQuoteLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "part_quantity_available",
          "description",
          "unit_price_cents",
          "serial_number",
          "tagged_by_raw",
          "trace_source",
          "tag_types",
          "tag_number",
          "certificate_number",
          "trace_type",
          "external_notes",
          "internal_notes",
          "priority",
          "warranty_days",
          "valid_until",
          "effective_valid_until",
          "tagged_on",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "calibration_due_on",
          "warranty_expires_on",
          "quantity",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "label",
          "requested_reference",
          "currency_code",
          "customer_quote_status",
          "response",
          "no_quote_reason_printed",
          "home_vendor_offer_unit_cost_cents",
          "source_fields",
          "sourcing_request_closed",
          "external_order_number",
          "exchange",
          "repair",
          "tagged_by",
          "customer_quote",
          "customer",
          "part",
          "charge",
          "condition",
          "lead_time",
          "inventory_line",
          "vendor_offer",
          "vendor_rfq",
          "customer_rfq_line",
          "no_quote_reason",
          "combined_tax_rate",
          "sales_order",
          "work_order",
          "sourcing_request",
          "lease",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerQuoteLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "part_quantity_available",
          "description",
          "unit_price_cents",
          "serial_number",
          "tagged_by_raw",
          "trace_source",
          "tag_types",
          "tag_number",
          "certificate_number",
          "trace_type",
          "external_notes",
          "internal_notes",
          "priority",
          "warranty_days",
          "valid_until",
          "effective_valid_until",
          "tagged_on",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "calibration_due_on",
          "warranty_expires_on",
          "quantity",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "label",
          "requested_reference",
          "currency_code",
          "customer_quote_status",
          "response",
          "no_quote_reason_printed",
          "home_vendor_offer_unit_cost_cents",
          "source_fields",
          "sourcing_request_closed",
          "external_order_number",
          "exchange",
          "repair",
          "tagged_by",
          "customer_quote",
          "customer",
          "part",
          "charge",
          "condition",
          "lead_time",
          "inventory_line",
          "vendor_offer",
          "vendor_rfq",
          "customer_rfq_line",
          "no_quote_reason",
          "combined_tax_rate",
          "sales_order",
          "work_order",
          "sourcing_request",
          "lease",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerQuoteLostReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerQuoteLostReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerRepairPriceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "organization",
          "part",
          "repair_service",
          "customer",
          "company_segment",
          "lead_time",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerRepairPriceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_price_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "audience",
          "reason",
          "inactive_at",
          "organization",
          "part",
          "repair_service",
          "customer",
          "company_segment",
          "lead_time",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerReturnField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_creditable",
          "received",
          "outstanding",
          "receivable",
          "line_count",
          "credit_memo_count",
          "currency_code",
          "currency_exponent",
          "migration_hold",
          "document_forms",
          "sales_order",
          "customer",
          "credit_memo",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerReturnListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_creditable",
          "received",
          "outstanding",
          "receivable",
          "line_count",
          "credit_memo_count",
          "currency_code",
          "currency_exponent",
          "migration_hold",
          "document_forms",
          "sales_order",
          "customer",
          "credit_memo",
          "open_receipt",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerReturnLineField": {
        "type": "string",
        "enum": [
          "object",
          "unit_price_cents",
          "uuid",
          "quantity",
          "quantity_received",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "reason",
          "customer_return_status",
          "line_position",
          "currency_code",
          "customer_return",
          "customer",
          "sales_order_line",
          "part",
          "release_line",
          "release",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerReturnLineListField": {
        "type": "string",
        "enum": [
          "object",
          "unit_price_cents",
          "uuid",
          "quantity",
          "quantity_received",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "reason",
          "customer_return_status",
          "line_position",
          "currency_code",
          "customer_return",
          "customer",
          "sales_order_line",
          "part",
          "release_line",
          "release",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerReturnReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerReturnReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerRfqLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "notes",
          "requested_types",
          "condition_raw",
          "repair_service_raw",
          "non_oem_allowance",
          "requested_tag_types",
          "tag_type_raw",
          "need_by",
          "quantity_requested",
          "priority",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "no_quote_count",
          "part_quantity_available",
          "customer_quote",
          "part",
          "conditions",
          "repair_services",
          "no_quote_reason",
          "sourcing_request",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerRfqLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "notes",
          "requested_types",
          "condition_raw",
          "repair_service_raw",
          "non_oem_allowance",
          "requested_tag_types",
          "tag_type_raw",
          "need_by",
          "quantity_requested",
          "priority",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "no_quote_count",
          "part_quantity_available",
          "customer_quote",
          "part",
          "conditions",
          "repair_services",
          "no_quote_reason",
          "sourcing_request",
          "created_at",
          "updated_at"
        ]
      },
      "CustomerTaxExemptionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "country_code",
          "region",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "reason",
          "expired",
          "jurisdiction",
          "statement_text",
          "statement",
          "customer",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "CustomerTaxExemptionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "country_code",
          "region",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "reason",
          "expired",
          "jurisdiction",
          "statement_text",
          "statement",
          "customer",
          "created_at",
          "updated_at"
        ]
      },
      "DashboardAudienceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "opens_first",
          "dashboard",
          "team",
          "membership",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DashboardAudienceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "opens_first",
          "dashboard",
          "team",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "DashboardField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "period",
          "span",
          "refresh_interval_minutes",
          "refreshing_since",
          "last_refreshed_at",
          "creator",
          "created_at",
          "updated_at",
          "actions",
          "tiles.object",
          "tiles.uuid",
          "tiles.title",
          "tiles.resource",
          "tiles.query",
          "tiles.visualization",
          "tiles.x",
          "tiles.y",
          "tiles.w",
          "tiles.h",
          "tiles.dashboard",
          "tiles.created_at",
          "tiles.updated_at",
          "audiences.object",
          "audiences.uuid",
          "audiences.opens_first",
          "audiences.dashboard",
          "audiences.team",
          "audiences.membership",
          "audiences.created_at",
          "audiences.updated_at"
        ]
      },
      "DashboardListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "period",
          "span",
          "refresh_interval_minutes",
          "refreshing_since",
          "last_refreshed_at",
          "creator",
          "created_at",
          "updated_at",
          "tiles.object",
          "tiles.uuid",
          "tiles.title",
          "tiles.resource",
          "tiles.query",
          "tiles.visualization",
          "tiles.x",
          "tiles.y",
          "tiles.w",
          "tiles.h",
          "tiles.dashboard",
          "tiles.created_at",
          "tiles.updated_at",
          "audiences.object",
          "audiences.uuid",
          "audiences.opens_first",
          "audiences.dashboard",
          "audiences.team",
          "audiences.membership",
          "audiences.created_at",
          "audiences.updated_at"
        ]
      },
      "DashboardOpeningField": {
        "type": "string",
        "enum": [
          "object",
          "dashboard"
        ]
      },
      "DashboardOpeningListField": {
        "type": "string",
        "enum": [
          "object",
          "dashboard"
        ]
      },
      "DashboardTileField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "resource",
          "query",
          "visualization",
          "x",
          "y",
          "w",
          "h",
          "dashboard",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DashboardTileListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "resource",
          "query",
          "visualization",
          "x",
          "y",
          "w",
          "h",
          "dashboard",
          "created_at",
          "updated_at"
        ]
      },
      "DefaultIssuePartField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "order_type",
          "quantity",
          "market_value_cents",
          "issued_part_description",
          "currency_code",
          "part",
          "issued_part",
          "condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DefaultIssuePartListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "order_type",
          "quantity",
          "market_value_cents",
          "issued_part_description",
          "currency_code",
          "part",
          "issued_part",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "DemandField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "need_type",
          "part_number_raw",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "need_by",
          "status",
          "closed_at",
          "part_quantity_available_in_condition",
          "part_quantity_available",
          "part_quantity_inbound",
          "needed_for",
          "order",
          "counterparty",
          "part",
          "condition",
          "sourcing_request",
          "created_at",
          "updated_at",
          "sourcing_request.object",
          "sourcing_request.uuid",
          "sourcing_request.part_number_raw",
          "sourcing_request.description",
          "sourcing_request.priority",
          "sourcing_request.internal_notes",
          "sourcing_request.identifier",
          "sourcing_request.need_by",
          "sourcing_request.closed_at",
          "sourcing_request.trashed_at",
          "sourcing_request.states",
          "sourcing_request.status",
          "sourcing_request.quantity",
          "sourcing_request.quantity_ordered",
          "sourcing_request.quantity_remaining",
          "sourcing_request.currency_code",
          "sourcing_request.currency_exponent",
          "sourcing_request.vendors_asked",
          "sourcing_request.quotes_received",
          "sourcing_request.part_description",
          "sourcing_request.asked_count",
          "sourcing_request.quoted_count",
          "sourcing_request.declined_count",
          "sourcing_request.awaiting_count",
          "sourcing_request.sent_rfq_count",
          "sourcing_request.awaited_elsewhere_rfq_count",
          "sourcing_request.orderable_quotes",
          "sourcing_request.migration_hold",
          "sourcing_request.demand",
          "sourcing_request.part",
          "sourcing_request.conditions",
          "sourcing_request.origin",
          "sourcing_request.draft_rfqs",
          "sourcing_request.purchase_orders",
          "sourcing_request.created_at",
          "sourcing_request.updated_at"
        ]
      },
      "DemandListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "need_type",
          "part_number_raw",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "need_by",
          "status",
          "closed_at",
          "part_quantity_available_in_condition",
          "part_quantity_available",
          "part_quantity_inbound",
          "needed_for",
          "order",
          "counterparty",
          "part",
          "condition",
          "sourcing_request",
          "created_at",
          "updated_at",
          "sourcing_request.object",
          "sourcing_request.uuid",
          "sourcing_request.part_number_raw",
          "sourcing_request.description",
          "sourcing_request.priority",
          "sourcing_request.internal_notes",
          "sourcing_request.identifier",
          "sourcing_request.need_by",
          "sourcing_request.closed_at",
          "sourcing_request.trashed_at",
          "sourcing_request.states",
          "sourcing_request.status",
          "sourcing_request.quantity",
          "sourcing_request.quantity_ordered",
          "sourcing_request.quantity_remaining",
          "sourcing_request.currency_code",
          "sourcing_request.currency_exponent",
          "sourcing_request.vendors_asked",
          "sourcing_request.quotes_received",
          "sourcing_request.part_description",
          "sourcing_request.asked_count",
          "sourcing_request.quoted_count",
          "sourcing_request.declined_count",
          "sourcing_request.awaiting_count",
          "sourcing_request.sent_rfq_count",
          "sourcing_request.awaited_elsewhere_rfq_count",
          "sourcing_request.orderable_quotes",
          "sourcing_request.migration_hold",
          "sourcing_request.demand",
          "sourcing_request.part",
          "sourcing_request.conditions",
          "sourcing_request.origin",
          "sourcing_request.draft_rfqs",
          "sourcing_request.purchase_orders",
          "sourcing_request.created_at",
          "sourcing_request.updated_at"
        ]
      },
      "DirectRfqConditionAnswerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "direct_rfq_condition",
          "condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DirectRfqConditionAnswerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "direct_rfq_condition",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "DirectRfqConditionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_conditions",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DirectRfqConditionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_conditions",
          "created_at",
          "updated_at"
        ]
      },
      "DirectRfqRepairServiceAnswerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "direct_rfq_repair_service",
          "repair_service",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DirectRfqRepairServiceAnswerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "direct_rfq_repair_service",
          "repair_service",
          "created_at",
          "updated_at"
        ]
      },
      "DirectRfqRepairServiceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_repair_services",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DirectRfqRepairServiceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_repair_services",
          "created_at",
          "updated_at"
        ]
      },
      "DirectRfqTagTypeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_tag_types",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DirectRfqTagTypeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "position",
          "answering_tag_types",
          "created_at",
          "updated_at"
        ]
      },
      "DocumentField": {
        "type": "string",
        "enum": [
          "object",
          "error",
          "layout_failure",
          "uuid",
          "status",
          "current",
          "form",
          "form_label",
          "title",
          "reference",
          "version",
          "record",
          "template_version",
          "upload",
          "creator",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DocumentListField": {
        "type": "string",
        "enum": [
          "object",
          "error",
          "layout_failure",
          "uuid",
          "status",
          "current",
          "form",
          "form_label",
          "title",
          "reference",
          "version",
          "record",
          "template_version",
          "upload",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "DocumentPreviewField": {
        "type": "string",
        "enum": [
          "object",
          "form",
          "rendered",
          "content_type",
          "content_base64",
          "pages",
          "page_count",
          "record"
        ]
      },
      "DocumentPreviewListField": {
        "type": "string",
        "enum": [
          "object",
          "form",
          "rendered",
          "content_type",
          "content_base64",
          "pages",
          "page_count",
          "record"
        ]
      },
      "DocumentTemplateField": {
        "type": "string",
        "enum": [
          "object",
          "form",
          "label",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "default_accent_color",
          "body_hint",
          "remarks_hint",
          "record_type",
          "standard_layout_source",
          "custom_layouts_standing",
          "printer_kind",
          "signable",
          "publish_check",
          "signer_skill",
          "published_version",
          "draft",
          "actions"
        ]
      },
      "DocumentTemplateListField": {
        "type": "string",
        "enum": [
          "object",
          "form",
          "label",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "default_accent_color",
          "body_hint",
          "remarks_hint",
          "record_type",
          "standard_layout_source",
          "custom_layouts_standing",
          "printer_kind",
          "signable",
          "publish_check",
          "signer_skill",
          "published_version",
          "draft"
        ]
      },
      "DocumentTemplateVersionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "form",
          "number",
          "published_at",
          "current",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "publisher",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "DocumentTemplateVersionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "form",
          "number",
          "published_at",
          "current",
          "page_size",
          "date_format",
          "accent_color",
          "body",
          "footer",
          "layout_source",
          "frame_version",
          "remarks",
          "printed_fields",
          "publisher",
          "created_at",
          "updated_at"
        ]
      },
      "DueInLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity_outstanding",
          "ordered_on",
          "due_on",
          "part_description",
          "order",
          "open_receipt",
          "counterparty",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "DueInLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity_outstanding",
          "ordered_on",
          "due_on",
          "part_description",
          "order",
          "open_receipt",
          "counterparty",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "DueInOrderField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "due_on",
          "line_count",
          "status",
          "open_receipt",
          "order",
          "counterparty",
          "created_at",
          "updated_at"
        ]
      },
      "DueInOrderListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "due_on",
          "line_count",
          "status",
          "open_receipt",
          "order",
          "counterparty",
          "created_at",
          "updated_at"
        ]
      },
      "EmailBannerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "alt_text",
          "link_url",
          "starts_on",
          "ends_on",
          "audiences",
          "email_kinds",
          "inactive_at",
          "organization",
          "image",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmailBannerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "alt_text",
          "link_url",
          "starts_on",
          "ends_on",
          "audiences",
          "email_kinds",
          "inactive_at",
          "organization",
          "image",
          "created_at",
          "updated_at"
        ]
      },
      "EmailFileField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "in_form",
          "category",
          "byte_size",
          "content_type",
          "source",
          "upload"
        ]
      },
      "EmailFileListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "in_form",
          "category",
          "byte_size",
          "content_type",
          "source",
          "upload"
        ]
      },
      "EmailKindField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "label",
          "audience",
          "fields",
          "subject",
          "body"
        ]
      },
      "EmailKindListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "label",
          "audience",
          "fields",
          "subject",
          "body"
        ]
      },
      "EmailLayoutBlockField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "placement",
          "position",
          "body",
          "alt_text",
          "organization",
          "actions"
        ]
      },
      "EmailLayoutBlockListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "placement",
          "position",
          "body",
          "alt_text",
          "organization"
        ]
      },
      "EmailLayoutField": {
        "type": "string",
        "enum": [
          "object",
          "accent_color",
          "font",
          "alignment",
          "organization",
          "actions"
        ]
      },
      "EmailLayoutListField": {
        "type": "string",
        "enum": [
          "object",
          "accent_color",
          "font",
          "alignment",
          "organization"
        ]
      },
      "EmailPreviewField": {
        "type": "string",
        "enum": [
          "object",
          "subject",
          "html",
          "plain",
          "record"
        ]
      },
      "EmailPreviewListField": {
        "type": "string",
        "enum": [
          "object",
          "subject",
          "html",
          "plain",
          "record"
        ]
      },
      "EmailSenderRuleField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sender",
          "kind",
          "effect",
          "note",
          "expiry",
          "expires_on",
          "expires_after_days_unused",
          "last_used_at",
          "created_by",
          "message",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmailSenderRuleListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sender",
          "kind",
          "effect",
          "note",
          "expiry",
          "expires_on",
          "expires_after_days_unused",
          "last_used_at",
          "created_by",
          "message",
          "created_at",
          "updated_at"
        ]
      },
      "EmailSendingSettingsField": {
        "type": "string",
        "enum": [
          "object",
          "mode",
          "sending",
          "reply_to",
          "bcc_sender",
          "organization",
          "sending_domain"
        ]
      },
      "EmailSendingSettingsListField": {
        "type": "string",
        "enum": [
          "object",
          "mode",
          "sending",
          "reply_to",
          "bcc_sender",
          "organization",
          "sending_domain"
        ]
      },
      "EmailSuppressionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "email_address",
          "reason",
          "suppressed_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmailSuppressionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "email_address",
          "reason",
          "suppressed_at",
          "created_at",
          "updated_at"
        ]
      },
      "EmailTemplateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "subject",
          "body",
          "cc_addresses",
          "adds_signature",
          "default",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmailTemplateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "subject",
          "body",
          "cc_addresses",
          "adds_signature",
          "default",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "EmailTemplatePreferencesField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "EmailTemplatePreferencesListField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "EmployeeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "name",
          "email_address",
          "hourly_cost_cents",
          "certificate_number",
          "assigned_hours",
          "away_until",
          "has_avatar",
          "currency_code",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmployeeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "name",
          "email_address",
          "hourly_cost_cents",
          "certificate_number",
          "assigned_hours",
          "away_until",
          "has_avatar",
          "currency_code",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "EmployeeSkillField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "expires_on",
          "expired",
          "skill_inspection_approved",
          "assigned_hours",
          "inactive_at",
          "employee",
          "skill",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "EmployeeSkillListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "expires_on",
          "expired",
          "skill_inspection_approved",
          "assigned_hours",
          "inactive_at",
          "employee",
          "skill",
          "created_at",
          "updated_at"
        ]
      },
      "EventField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "action",
          "summary",
          "summarized",
          "subject_type",
          "actor_kind",
          "via",
          "particulars",
          "field_labels",
          "value_labels",
          "change_labels",
          "links",
          "actor_label",
          "subject_label",
          "type",
          "previous_attributes",
          "creator",
          "subject",
          "created_at",
          "updated_at"
        ]
      },
      "EventListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "action",
          "summary",
          "summarized",
          "subject_type",
          "actor_kind",
          "via",
          "particulars",
          "field_labels",
          "value_labels",
          "change_labels",
          "links",
          "actor_label",
          "subject_label",
          "type",
          "previous_attributes",
          "creator",
          "subject",
          "created_at",
          "updated_at"
        ]
      },
      "ExportField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "report",
          "kind",
          "query",
          "format",
          "layout",
          "status",
          "total_rows",
          "error",
          "label",
          "help",
          "filename",
          "omitted_count",
          "stalled",
          "completed_at",
          "creator",
          "organization",
          "upload",
          "host",
          "created_at",
          "updated_at",
          "omissions.object",
          "omissions.uuid",
          "omissions.position",
          "omissions.inventory_line_identifier",
          "omissions.part_number",
          "omissions.reason",
          "omissions.explanation",
          "omissions.sellable",
          "omissions.part",
          "omissions.created_at",
          "omissions.updated_at"
        ]
      },
      "ExportListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "report",
          "kind",
          "query",
          "format",
          "layout",
          "status",
          "total_rows",
          "error",
          "label",
          "help",
          "filename",
          "omitted_count",
          "stalled",
          "completed_at",
          "creator",
          "organization",
          "upload",
          "host",
          "created_at",
          "updated_at"
        ]
      },
      "ExportOmissionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "inventory_line_identifier",
          "part_number",
          "reason",
          "explanation",
          "sellable",
          "part",
          "created_at",
          "updated_at"
        ]
      },
      "ExportOmissionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "inventory_line_identifier",
          "part_number",
          "reason",
          "explanation",
          "sellable",
          "part",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalKeyField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "key",
          "origin",
          "linked_at",
          "external_system",
          "record",
          "linker",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ExternalKeyListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "key",
          "origin",
          "linked_at",
          "external_system",
          "record",
          "linker",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalRecordField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "key",
          "label",
          "title",
          "fields",
          "source_url",
          "source_modified_at",
          "first_seen_at",
          "changed_at",
          "removed_at",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalRecordListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "key",
          "label",
          "title",
          "fields",
          "source_url",
          "source_modified_at",
          "first_seen_at",
          "changed_at",
          "removed_at",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalStreamField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "label",
          "title_field",
          "selected",
          "records_count",
          "removed_records_count",
          "landed_through",
          "last_pulled_at",
          "last_pull_error",
          "packages",
          "external_system",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalStreamListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "label",
          "title_field",
          "selected",
          "records_count",
          "removed_records_count",
          "landed_through",
          "last_pulled_at",
          "last_pull_error",
          "packages",
          "external_system",
          "created_at",
          "updated_at"
        ]
      },
      "ExternalSystemField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "keys_count",
          "bot",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ExternalSystemListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "keys_count",
          "bot",
          "created_at",
          "updated_at"
        ]
      },
      "FacilityField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "inactive_at",
          "country_name",
          "lines",
          "default_shipping",
          "source_fields",
          "organization",
          "tax_origin",
          "default_receiving_bin",
          "default_inspection_bin",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "FacilityListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "attn",
          "street",
          "city",
          "region",
          "postal_code",
          "country_code",
          "shipping",
          "inactive_at",
          "country_name",
          "lines",
          "default_shipping",
          "source_fields",
          "organization",
          "tax_origin",
          "default_receiving_bin",
          "default_inspection_bin",
          "created_at",
          "updated_at"
        ]
      },
      "FreightTermField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "FreightTermListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "FxRateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "currency_code",
          "currency_name",
          "as_of",
          "rate",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "FxRateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "currency_code",
          "currency_name",
          "as_of",
          "rate",
          "created_at",
          "updated_at"
        ]
      },
      "ImportField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "import_type",
          "status",
          "failure_reason",
          "error",
          "date_format",
          "headers",
          "sample_rows",
          "column_mapping",
          "value_mappings",
          "options",
          "migrating",
          "saves_mapping",
          "applies_when_checked",
          "total_rows",
          "checked_rows",
          "problem_rows",
          "skipped_rows",
          "created_rows",
          "updated_rows",
          "matched_rows",
          "failed_rows",
          "label",
          "required_grants",
          "filename",
          "stalled",
          "clean",
          "rows_to_update",
          "replaces",
          "rows_to_remove",
          "removed_rows",
          "ready_rows",
          "noted_rows",
          "edited_rows",
          "started_at",
          "completed_at",
          "creator",
          "upload",
          "migration",
          "host",
          "twin",
          "mapped_from",
          "created_at",
          "updated_at",
          "actions",
          "twin.object",
          "twin.uuid",
          "twin.import_type",
          "twin.status",
          "twin.failure_reason",
          "twin.error",
          "twin.date_format",
          "twin.headers",
          "twin.sample_rows",
          "twin.column_mapping",
          "twin.value_mappings",
          "twin.options",
          "twin.migrating",
          "twin.saves_mapping",
          "twin.applies_when_checked",
          "twin.total_rows",
          "twin.checked_rows",
          "twin.problem_rows",
          "twin.skipped_rows",
          "twin.created_rows",
          "twin.updated_rows",
          "twin.matched_rows",
          "twin.failed_rows",
          "twin.label",
          "twin.required_grants",
          "twin.filename",
          "twin.stalled",
          "twin.clean",
          "twin.rows_to_update",
          "twin.replaces",
          "twin.rows_to_remove",
          "twin.removed_rows",
          "twin.ready_rows",
          "twin.noted_rows",
          "twin.edited_rows",
          "twin.started_at",
          "twin.completed_at",
          "twin.creator",
          "twin.upload",
          "twin.migration",
          "twin.host",
          "twin.twin",
          "twin.mapped_from",
          "twin.created_at",
          "twin.updated_at",
          "mapped_from.object",
          "mapped_from.uuid",
          "mapped_from.import_type",
          "mapped_from.status",
          "mapped_from.failure_reason",
          "mapped_from.error",
          "mapped_from.date_format",
          "mapped_from.headers",
          "mapped_from.sample_rows",
          "mapped_from.column_mapping",
          "mapped_from.value_mappings",
          "mapped_from.options",
          "mapped_from.migrating",
          "mapped_from.saves_mapping",
          "mapped_from.applies_when_checked",
          "mapped_from.total_rows",
          "mapped_from.checked_rows",
          "mapped_from.problem_rows",
          "mapped_from.skipped_rows",
          "mapped_from.created_rows",
          "mapped_from.updated_rows",
          "mapped_from.matched_rows",
          "mapped_from.failed_rows",
          "mapped_from.label",
          "mapped_from.required_grants",
          "mapped_from.filename",
          "mapped_from.stalled",
          "mapped_from.clean",
          "mapped_from.rows_to_update",
          "mapped_from.replaces",
          "mapped_from.rows_to_remove",
          "mapped_from.removed_rows",
          "mapped_from.ready_rows",
          "mapped_from.noted_rows",
          "mapped_from.edited_rows",
          "mapped_from.started_at",
          "mapped_from.completed_at",
          "mapped_from.creator",
          "mapped_from.upload",
          "mapped_from.migration",
          "mapped_from.host",
          "mapped_from.twin",
          "mapped_from.mapped_from",
          "mapped_from.created_at",
          "mapped_from.updated_at"
        ]
      },
      "ImportListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "import_type",
          "status",
          "failure_reason",
          "error",
          "date_format",
          "headers",
          "sample_rows",
          "column_mapping",
          "value_mappings",
          "options",
          "migrating",
          "saves_mapping",
          "applies_when_checked",
          "total_rows",
          "checked_rows",
          "problem_rows",
          "skipped_rows",
          "created_rows",
          "updated_rows",
          "matched_rows",
          "failed_rows",
          "label",
          "required_grants",
          "filename",
          "stalled",
          "clean",
          "rows_to_update",
          "replaces",
          "rows_to_remove",
          "removed_rows",
          "ready_rows",
          "noted_rows",
          "edited_rows",
          "started_at",
          "completed_at",
          "creator",
          "upload",
          "migration",
          "host",
          "twin",
          "mapped_from",
          "created_at",
          "updated_at",
          "twin.object",
          "twin.uuid",
          "twin.import_type",
          "twin.status",
          "twin.failure_reason",
          "twin.error",
          "twin.date_format",
          "twin.headers",
          "twin.sample_rows",
          "twin.column_mapping",
          "twin.value_mappings",
          "twin.options",
          "twin.migrating",
          "twin.saves_mapping",
          "twin.applies_when_checked",
          "twin.total_rows",
          "twin.checked_rows",
          "twin.problem_rows",
          "twin.skipped_rows",
          "twin.created_rows",
          "twin.updated_rows",
          "twin.matched_rows",
          "twin.failed_rows",
          "twin.label",
          "twin.required_grants",
          "twin.filename",
          "twin.stalled",
          "twin.clean",
          "twin.rows_to_update",
          "twin.replaces",
          "twin.rows_to_remove",
          "twin.removed_rows",
          "twin.ready_rows",
          "twin.noted_rows",
          "twin.edited_rows",
          "twin.started_at",
          "twin.completed_at",
          "twin.creator",
          "twin.upload",
          "twin.migration",
          "twin.host",
          "twin.twin",
          "twin.mapped_from",
          "twin.created_at",
          "twin.updated_at",
          "mapped_from.object",
          "mapped_from.uuid",
          "mapped_from.import_type",
          "mapped_from.status",
          "mapped_from.failure_reason",
          "mapped_from.error",
          "mapped_from.date_format",
          "mapped_from.headers",
          "mapped_from.sample_rows",
          "mapped_from.column_mapping",
          "mapped_from.value_mappings",
          "mapped_from.options",
          "mapped_from.migrating",
          "mapped_from.saves_mapping",
          "mapped_from.applies_when_checked",
          "mapped_from.total_rows",
          "mapped_from.checked_rows",
          "mapped_from.problem_rows",
          "mapped_from.skipped_rows",
          "mapped_from.created_rows",
          "mapped_from.updated_rows",
          "mapped_from.matched_rows",
          "mapped_from.failed_rows",
          "mapped_from.label",
          "mapped_from.required_grants",
          "mapped_from.filename",
          "mapped_from.stalled",
          "mapped_from.clean",
          "mapped_from.rows_to_update",
          "mapped_from.replaces",
          "mapped_from.rows_to_remove",
          "mapped_from.removed_rows",
          "mapped_from.ready_rows",
          "mapped_from.noted_rows",
          "mapped_from.edited_rows",
          "mapped_from.started_at",
          "mapped_from.completed_at",
          "mapped_from.creator",
          "mapped_from.upload",
          "mapped_from.migration",
          "mapped_from.host",
          "mapped_from.twin",
          "mapped_from.mapped_from",
          "mapped_from.created_at",
          "mapped_from.updated_at"
        ]
      },
      "ImportMappingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "import_type",
          "column_mapping",
          "unmatched_headers",
          "external_system",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ImportMappingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "import_type",
          "column_mapping",
          "unmatched_headers",
          "external_system",
          "created_at",
          "updated_at"
        ]
      },
      "ImportRowField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "row_number",
          "status",
          "outcome",
          "data",
          "file_data",
          "source",
          "problems",
          "note",
          "skip_reason",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "ImportRowListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "row_number",
          "status",
          "outcome",
          "data",
          "file_data",
          "source",
          "problems",
          "note",
          "skip_reason",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "ImportTypeField": {
        "type": "string",
        "enum": [
          "object",
          "label",
          "param",
          "help",
          "updates",
          "key",
          "row_label",
          "date_columns",
          "exportable",
          "host",
          "host_column",
          "host_optional",
          "retires",
          "migrates_only",
          "row_limit",
          "columns",
          "options"
        ]
      },
      "ImportTypeListField": {
        "type": "string",
        "enum": [
          "object",
          "label",
          "param",
          "help",
          "updates",
          "key",
          "row_label",
          "date_columns",
          "exportable",
          "host",
          "host_column",
          "host_optional",
          "retires",
          "migrates_only",
          "row_limit",
          "columns",
          "options"
        ]
      },
      "ImportValueMatchField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "column_key",
          "source_value",
          "value",
          "label",
          "created_at",
          "updated_at"
        ]
      },
      "ImportValueMatchListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "column_key",
          "source_value",
          "value",
          "label",
          "created_at",
          "updated_at"
        ]
      },
      "InspectionChecklistField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "step",
          "instructions",
          "organization_code",
          "items",
          "inactive_at",
          "organization",
          "skill",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InspectionChecklistListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "step",
          "instructions",
          "organization_code",
          "items",
          "inactive_at",
          "organization",
          "skill",
          "created_at",
          "updated_at"
        ]
      },
      "InspectionChecklistItemField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "measurement_unit",
          "upload_category",
          "inspection_checklist",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InspectionChecklistItemListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "measurement_unit",
          "upload_category",
          "inspection_checklist",
          "created_at",
          "updated_at"
        ]
      },
      "InspectionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "step",
          "checklist_name",
          "instructions",
          "outcome",
          "part_instructions",
          "started_at",
          "completed_at",
          "items",
          "inspection_checklist",
          "skill",
          "inventory_line",
          "receipt_line",
          "receipt",
          "release",
          "started_by",
          "completed_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InspectionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "step",
          "checklist_name",
          "instructions",
          "outcome",
          "part_instructions",
          "started_at",
          "completed_at",
          "items",
          "inspection_checklist",
          "skill",
          "inventory_line",
          "receipt_line",
          "receipt",
          "release",
          "started_by",
          "completed_by",
          "created_at",
          "updated_at"
        ]
      },
      "InspectionItemField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "result",
          "value",
          "text_value",
          "date_value",
          "chosen",
          "uploads",
          "answered",
          "fails",
          "answered_at",
          "waived_at",
          "waiver_note",
          "measurement_unit",
          "upload_category",
          "answered_by",
          "waived_by",
          "inspection",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InspectionItemListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "prompt",
          "instructions",
          "kind",
          "required",
          "enforcement",
          "minimum",
          "maximum",
          "options",
          "multiple",
          "result",
          "value",
          "text_value",
          "date_value",
          "chosen",
          "uploads",
          "answered",
          "fails",
          "answered_at",
          "waived_at",
          "waiver_note",
          "measurement_unit",
          "upload_category",
          "answered_by",
          "waived_by",
          "inspection",
          "created_at",
          "updated_at"
        ]
      },
      "InventoryCodeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "custody",
          "migration_hold",
          "currency_code",
          "source_fields",
          "owner_company",
          "consignor_participation",
          "cost_pool",
          "created_at",
          "updated_at",
          "actions",
          "consignor_participation.object",
          "consignor_participation.uuid",
          "consignor_participation.started_on",
          "consignor_participation.rate",
          "consignor_participation.investor",
          "consignor_participation.outstanding_cents",
          "consignor_participation.accrued_cents",
          "consignor_participation.adjusted_cents",
          "consignor_participation.settled_cents",
          "consignor_participation.unsettled_entry_count",
          "consignor_participation.unsettled_cents",
          "consignor_participation.currency_code",
          "consignor_participation.inventory_code",
          "consignor_participation.company",
          "consignor_participation.created_at",
          "consignor_participation.updated_at"
        ]
      },
      "InventoryCodeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "custody",
          "migration_hold",
          "currency_code",
          "source_fields",
          "owner_company",
          "consignor_participation",
          "cost_pool",
          "created_at",
          "updated_at",
          "consignor_participation.object",
          "consignor_participation.uuid",
          "consignor_participation.started_on",
          "consignor_participation.rate",
          "consignor_participation.investor",
          "consignor_participation.outstanding_cents",
          "consignor_participation.accrued_cents",
          "consignor_participation.adjusted_cents",
          "consignor_participation.settled_cents",
          "consignor_participation.unsettled_entry_count",
          "consignor_participation.unsettled_cents",
          "consignor_participation.currency_code",
          "consignor_participation.inventory_code",
          "consignor_participation.company",
          "consignor_participation.created_at",
          "consignor_participation.updated_at"
        ]
      },
      "InventoryEntryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "activity",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "accrued_cents",
          "sale_cents",
          "cost_cents",
          "note",
          "quantity",
          "serial_number",
          "currency_code",
          "inventory_code",
          "inventory_line",
          "part",
          "creator",
          "participation",
          "source",
          "statement",
          "created_at",
          "updated_at"
        ]
      },
      "InventoryEntryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "activity",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "accrued_cents",
          "sale_cents",
          "cost_cents",
          "note",
          "quantity",
          "serial_number",
          "currency_code",
          "inventory_code",
          "inventory_line",
          "part",
          "creator",
          "participation",
          "source",
          "statement",
          "created_at",
          "updated_at"
        ]
      },
      "InventoryLedgerDefaultField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account",
          "inherited_ledger_account",
          "actions"
        ]
      },
      "InventoryLedgerDefaultListField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account",
          "inherited_ledger_account"
        ]
      },
      "InventoryLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "part_description",
          "serial_number",
          "batch_lot_number",
          "serialized",
          "serial_missing",
          "quantity_on_hand",
          "quantity_reserved",
          "quantity_available",
          "total_cost_cents",
          "received_on",
          "unit_cost_cents",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "tail_number",
          "engine_serial_number",
          "receiver_number",
          "sub_location",
          "listing_notes",
          "internal_notes",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "time_remaining_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "cycles_remaining",
          "protected",
          "tool",
          "calibration_due_on",
          "calibration_state",
          "calibration_interval_months",
          "status",
          "inactive_at",
          "quantity_sold",
          "sold_for_cents",
          "cost_of_sale_cents",
          "margin_cents",
          "margin_ratio",
          "sold_on",
          "inventory_kind",
          "custody_reason",
          "shipped_back_on",
          "standard_code",
          "migration_hold",
          "inspection_outcome",
          "currency_code",
          "receipt",
          "document_forms",
          "source_fields",
          "tagged_by",
          "away_repair_order",
          "part",
          "condition",
          "offered_condition",
          "warehouse",
          "bin",
          "inventory_code",
          "owner_company",
          "parent",
          "split_from",
          "split_into",
          "releases",
          "converted_to",
          "open_rejection",
          "protection_reason",
          "inspection",
          "sold_orders",
          "sold_to",
          "serial_shared_with",
          "repair_order",
          "source",
          "organization",
          "kept_in",
          "created_at",
          "updated_at",
          "actions",
          "condition.object",
          "condition.uuid",
          "condition.code",
          "condition.name",
          "condition.standard_code",
          "condition.position",
          "condition.warranty_days",
          "condition.inactive_at",
          "condition.requirements",
          "condition.created_at",
          "condition.updated_at",
          "offered_condition.object",
          "offered_condition.uuid",
          "offered_condition.code",
          "offered_condition.name",
          "offered_condition.standard_code",
          "offered_condition.position",
          "offered_condition.warranty_days",
          "offered_condition.inactive_at",
          "offered_condition.requirements",
          "offered_condition.created_at",
          "offered_condition.updated_at",
          "warehouse.object",
          "warehouse.uuid",
          "warehouse.name",
          "warehouse.code",
          "warehouse.tool_crib",
          "warehouse.migration_hold",
          "warehouse.inactive_at",
          "warehouse.source_fields",
          "warehouse.organization",
          "warehouse.facility",
          "warehouse.hidden_marketplaces",
          "warehouse.created_at",
          "warehouse.updated_at",
          "bin.object",
          "bin.uuid",
          "bin.name",
          "bin.description",
          "bin.held_from_sale",
          "bin.inactive_at",
          "bin.source_fields",
          "bin.document_forms",
          "bin.facility",
          "bin.created_at",
          "bin.updated_at",
          "inventory_code.object",
          "inventory_code.uuid",
          "inventory_code.code",
          "inventory_code.name",
          "inventory_code.inactive_at",
          "inventory_code.custody",
          "inventory_code.migration_hold",
          "inventory_code.currency_code",
          "inventory_code.source_fields",
          "inventory_code.owner_company",
          "inventory_code.consignor_participation",
          "inventory_code.cost_pool",
          "inventory_code.created_at",
          "inventory_code.updated_at"
        ]
      },
      "InventoryLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "part_description",
          "serial_number",
          "batch_lot_number",
          "serialized",
          "serial_missing",
          "quantity_on_hand",
          "quantity_reserved",
          "quantity_available",
          "total_cost_cents",
          "received_on",
          "unit_cost_cents",
          "acquisition_cost_cents",
          "repair_cost_cents",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "tail_number",
          "engine_serial_number",
          "receiver_number",
          "sub_location",
          "listing_notes",
          "internal_notes",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "time_remaining_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "cycles_remaining",
          "protected",
          "tool",
          "calibration_due_on",
          "calibration_state",
          "calibration_interval_months",
          "status",
          "inactive_at",
          "quantity_sold",
          "sold_for_cents",
          "cost_of_sale_cents",
          "margin_cents",
          "margin_ratio",
          "sold_on",
          "inventory_kind",
          "custody_reason",
          "shipped_back_on",
          "standard_code",
          "migration_hold",
          "inspection_outcome",
          "currency_code",
          "receipt",
          "document_forms",
          "source_fields",
          "tagged_by",
          "away_repair_order",
          "part",
          "condition",
          "offered_condition",
          "warehouse",
          "bin",
          "inventory_code",
          "owner_company",
          "parent",
          "split_from",
          "split_into",
          "releases",
          "converted_to",
          "open_rejection",
          "protection_reason",
          "inspection",
          "sold_orders",
          "sold_to",
          "serial_shared_with",
          "repair_order",
          "source",
          "organization",
          "kept_in",
          "created_at",
          "updated_at",
          "condition.object",
          "condition.uuid",
          "condition.code",
          "condition.name",
          "condition.standard_code",
          "condition.position",
          "condition.warranty_days",
          "condition.inactive_at",
          "condition.requirements",
          "condition.created_at",
          "condition.updated_at",
          "offered_condition.object",
          "offered_condition.uuid",
          "offered_condition.code",
          "offered_condition.name",
          "offered_condition.standard_code",
          "offered_condition.position",
          "offered_condition.warranty_days",
          "offered_condition.inactive_at",
          "offered_condition.requirements",
          "offered_condition.created_at",
          "offered_condition.updated_at",
          "warehouse.object",
          "warehouse.uuid",
          "warehouse.name",
          "warehouse.code",
          "warehouse.tool_crib",
          "warehouse.migration_hold",
          "warehouse.inactive_at",
          "warehouse.source_fields",
          "warehouse.organization",
          "warehouse.facility",
          "warehouse.hidden_marketplaces",
          "warehouse.created_at",
          "warehouse.updated_at",
          "bin.object",
          "bin.uuid",
          "bin.name",
          "bin.description",
          "bin.held_from_sale",
          "bin.inactive_at",
          "bin.source_fields",
          "bin.document_forms",
          "bin.facility",
          "bin.created_at",
          "bin.updated_at",
          "inventory_code.object",
          "inventory_code.uuid",
          "inventory_code.code",
          "inventory_code.name",
          "inventory_code.inactive_at",
          "inventory_code.custody",
          "inventory_code.migration_hold",
          "inventory_code.currency_code",
          "inventory_code.source_fields",
          "inventory_code.owner_company",
          "inventory_code.consignor_participation",
          "inventory_code.cost_pool",
          "inventory_code.created_at",
          "inventory_code.updated_at"
        ]
      },
      "InventoryParticipationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "started_on",
          "rate",
          "investor",
          "outstanding_cents",
          "accrued_cents",
          "adjusted_cents",
          "settled_cents",
          "unsettled_entry_count",
          "unsettled_cents",
          "currency_code",
          "inventory_code",
          "company",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InventoryParticipationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "started_on",
          "rate",
          "investor",
          "outstanding_cents",
          "accrued_cents",
          "adjusted_cents",
          "settled_cents",
          "unsettled_entry_count",
          "unsettled_cents",
          "currency_code",
          "inventory_code",
          "company",
          "created_at",
          "updated_at"
        ]
      },
      "InventoryUnitCostField": {
        "type": "string",
        "enum": [
          "object",
          "part_number",
          "part_description",
          "serial_number",
          "quantity_on_hand",
          "on_hand_cents",
          "sold_cents",
          "charged_out_cents",
          "other_cents",
          "currency_code",
          "inventory_line",
          "part",
          "sold_orders",
          "created_at",
          "updated_at"
        ]
      },
      "InventoryUnitCostListField": {
        "type": "string",
        "enum": [
          "object",
          "part_number",
          "part_description",
          "serial_number",
          "quantity_on_hand",
          "on_hand_cents",
          "sold_cents",
          "charged_out_cents",
          "other_cents",
          "currency_code",
          "inventory_line",
          "part",
          "sold_orders",
          "created_at",
          "updated_at"
        ]
      },
      "InvestorStatementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "investor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InvestorStatementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "statement_date",
          "rate",
          "net_cents",
          "line_count",
          "currency_code",
          "currency_exponent",
          "editable",
          "paid_cents",
          "balance_cents",
          "settlement",
          "inventory_name",
          "document_forms",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "statement_recipients_missing",
          "investor",
          "inventory_code",
          "clause",
          "participation",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "InvestorStatementLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "margin_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InvestorStatementLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "part_number",
          "serial_number",
          "note",
          "settled_on",
          "sale_cents",
          "cost_cents",
          "margin_cents",
          "amount_cents",
          "currency_code",
          "part",
          "reference",
          "created_at",
          "updated_at"
        ]
      },
      "InvoiceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "invoice_date",
          "customer_po_number",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "home_cogs_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "migration_hold",
          "automatic_email_refusal",
          "invoice_recipients_missing",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "customer",
          "payment_term",
          "clause",
          "tax_destination",
          "source",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InvoiceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "invoice_date",
          "customer_po_number",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "sent_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "home_cogs_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "migration_hold",
          "automatic_email_refusal",
          "invoice_recipients_missing",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "customer",
          "payment_term",
          "clause",
          "tax_destination",
          "source",
          "created_at",
          "updated_at"
        ]
      },
      "InvoiceLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "description",
          "serial_number",
          "part_number_raw",
          "part_description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "quantity",
          "condition_code",
          "line_total_cents",
          "home_line_cost_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "inventory_kind",
          "custody_reason",
          "warranty_days",
          "customer_warranty_expires_on",
          "currency_code",
          "release_line",
          "customer_return_line",
          "corrects",
          "sales_order_line",
          "company",
          "part",
          "charge",
          "combined_tax_rate",
          "inventory_line",
          "inventory_code",
          "owner_company",
          "invoice",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "InvoiceLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "description",
          "serial_number",
          "part_number_raw",
          "part_description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "quantity",
          "condition_code",
          "line_total_cents",
          "home_line_cost_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "inventory_kind",
          "custody_reason",
          "warranty_days",
          "customer_warranty_expires_on",
          "currency_code",
          "release_line",
          "customer_return_line",
          "corrects",
          "sales_order_line",
          "company",
          "part",
          "charge",
          "combined_tax_rate",
          "inventory_line",
          "inventory_code",
          "owner_company",
          "invoice",
          "created_at",
          "updated_at"
        ]
      },
      "IssuedPartField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "market_value_cents",
          "stage",
          "line_position",
          "quantity",
          "quantity_allocated",
          "quantity_issued",
          "quantity_put_back",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_to_issue",
          "quantity_to_put_back",
          "allocations",
          "currency_code",
          "order",
          "order_line",
          "part",
          "condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "IssuedPartListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "market_value_cents",
          "stage",
          "line_position",
          "quantity",
          "quantity_allocated",
          "quantity_issued",
          "quantity_put_back",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_to_issue",
          "quantity_to_put_back",
          "allocations",
          "currency_code",
          "order",
          "order_line",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "ItemField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "label",
          "description",
          "inactive_at",
          "part",
          "charge",
          "tax_category",
          "revenue_ledger_account",
          "created_at",
          "updated_at"
        ]
      },
      "ItemListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "label",
          "description",
          "inactive_at",
          "part",
          "charge",
          "tax_category",
          "revenue_ledger_account",
          "created_at",
          "updated_at"
        ]
      },
      "JunkHelpField": {
        "type": "string",
        "enum": [
          "object",
          "email_address",
          "domain",
          "mail_system",
          "gateway",
          "mail_servers",
          "signing_domain",
          "own_domain",
          "recipient_request",
          "admin_request",
          "organization"
        ]
      },
      "JunkHelpListField": {
        "type": "string",
        "enum": [
          "object",
          "email_address",
          "domain",
          "mail_system",
          "gateway",
          "mail_servers",
          "signing_domain",
          "own_domain",
          "recipient_request",
          "admin_request",
          "organization"
        ]
      },
      "LaborEntryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "origin",
          "started_at",
          "ended_at",
          "hours",
          "cost_rate_cents",
          "bill_rate_cents",
          "cost_cents",
          "bill_cents",
          "currency_code",
          "work_order_task",
          "work_order",
          "employee",
          "skill",
          "entered_by",
          "reversal_of",
          "reversal",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "LaborEntryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "origin",
          "started_at",
          "ended_at",
          "hours",
          "cost_rate_cents",
          "bill_rate_cents",
          "cost_cents",
          "bill_cents",
          "currency_code",
          "work_order_task",
          "work_order",
          "employee",
          "skill",
          "entered_by",
          "reversal_of",
          "reversal",
          "created_at",
          "updated_at"
        ]
      },
      "LeadTimeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "days",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "LeadTimeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "days",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "LedgerAccountActivityField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name",
          "kind",
          "debit_cents",
          "credit_cents",
          "net_change_cents",
          "posted_to_date_cents",
          "pending_to_date_cents",
          "net_to_date_cents",
          "currency_code",
          "ledger_account"
        ]
      },
      "LedgerAccountActivityListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name",
          "kind",
          "debit_cents",
          "credit_cents",
          "net_change_cents",
          "posted_to_date_cents",
          "pending_to_date_cents",
          "net_to_date_cents",
          "currency_code",
          "ledger_account"
        ]
      },
      "LedgerAccountField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "kind",
          "inactive_at",
          "quickbooks_assignment",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "LedgerAccountListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "kind",
          "inactive_at",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "LedgerAccountLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "posted_on",
          "activity",
          "accounting_transaction_status",
          "memo",
          "purpose",
          "purpose_label",
          "description",
          "home_debit_cents",
          "home_credit_cents",
          "home_net_to_date_cents",
          "home_currency_code",
          "home_currency_exponent",
          "accounting_transaction",
          "source",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ]
      },
      "LedgerAccountLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "posted_on",
          "activity",
          "accounting_transaction_status",
          "memo",
          "purpose",
          "purpose_label",
          "description",
          "home_debit_cents",
          "home_credit_cents",
          "home_net_to_date_cents",
          "home_currency_code",
          "home_currency_exponent",
          "accounting_transaction",
          "source",
          "inventory_code",
          "entity",
          "created_at",
          "updated_at"
        ]
      },
      "ListingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number",
          "alternate_part_numbers",
          "description",
          "condition",
          "traceability",
          "quantity_available",
          "unit_of_measure",
          "manufacturer",
          "cage_code",
          "serial_number",
          "trace_source",
          "unit_price_cents",
          "inventory_line_identifier",
          "currency_code",
          "organization",
          "part",
          "sellable"
        ]
      },
      "ListingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number",
          "alternate_part_numbers",
          "description",
          "condition",
          "traceability",
          "quantity_available",
          "unit_of_measure",
          "manufacturer",
          "cage_code",
          "serial_number",
          "trace_source",
          "unit_price_cents",
          "inventory_line_identifier",
          "currency_code",
          "organization",
          "part",
          "sellable"
        ]
      },
      "ListingRefreshField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "trigger",
          "status",
          "outcome",
          "outcome_detail",
          "error",
          "listed_count",
          "added_count",
          "dropped_count",
          "quantity_changed_count",
          "omitted_count",
          "started_at",
          "completed_at",
          "marketplace_integration",
          "marketplace_catalog",
          "export",
          "requester",
          "created_at",
          "updated_at"
        ]
      },
      "ListingRefreshListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "trigger",
          "status",
          "outcome",
          "outcome_detail",
          "error",
          "listed_count",
          "added_count",
          "dropped_count",
          "quantity_changed_count",
          "omitted_count",
          "started_at",
          "completed_at",
          "marketplace_integration",
          "marketplace_catalog",
          "export",
          "requester",
          "created_at",
          "updated_at"
        ]
      },
      "ManifestField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "label",
          "quantity_expected",
          "quantity_received",
          "quantity_rejected",
          "quantity_pending",
          "quantity_scrapped",
          "quantity_cancelled",
          "quantity_outstanding",
          "status",
          "open",
          "line_count",
          "receipt_count",
          "import_count",
          "export_count",
          "inventory_name",
          "funding",
          "source_unit",
          "migration_hold",
          "document_forms",
          "organization",
          "inventory_code",
          "open_receipt",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ManifestListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "label",
          "quantity_expected",
          "quantity_received",
          "quantity_rejected",
          "quantity_pending",
          "quantity_scrapped",
          "quantity_cancelled",
          "quantity_outstanding",
          "status",
          "open",
          "line_count",
          "receipt_count",
          "import_count",
          "export_count",
          "inventory_name",
          "funding",
          "source_unit",
          "migration_hold",
          "document_forms",
          "organization",
          "inventory_code",
          "open_receipt",
          "created_at",
          "updated_at"
        ]
      },
      "ManifestLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "serial_number",
          "note",
          "status",
          "quantity",
          "quantity_scrapped",
          "quantity_received",
          "quantity_pending",
          "quantity_rejected",
          "quantity_outstanding",
          "resolved",
          "cancelled",
          "cancelled_at",
          "receipt_lines",
          "manifest",
          "part",
          "condition",
          "warehouse",
          "bin",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ManifestLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "serial_number",
          "note",
          "status",
          "quantity",
          "quantity_scrapped",
          "quantity_received",
          "quantity_pending",
          "quantity_rejected",
          "quantity_outstanding",
          "resolved",
          "cancelled",
          "cancelled_at",
          "receipt_lines",
          "manifest",
          "part",
          "condition",
          "warehouse",
          "bin",
          "created_at",
          "updated_at"
        ]
      },
      "ManufacturerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "cage_code",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ManufacturerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "cage_code",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceCatalogField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "lists",
          "buyer_group",
          "inactive_at",
          "marketplace_integration",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceCatalogListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "lists",
          "buyer_group",
          "inactive_at",
          "marketplace_integration",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceConditionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_conditions",
          "answering_conditions",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceConditionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_conditions",
          "answering_conditions",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "known_as",
          "takes_listings",
          "includes_prices",
          "includes_vendor_inventory",
          "seller_id_label",
          "credential_fields",
          "marketplace_conditions",
          "marketplace_tag_types",
          "marketplace_measurement_units",
          "marketplace_repair_services",
          "inactive_at",
          "external_system",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "known_as",
          "takes_listings",
          "includes_prices",
          "includes_vendor_inventory",
          "seller_id_label",
          "credential_fields",
          "marketplace_conditions",
          "marketplace_tag_types",
          "marketplace_measurement_units",
          "marketplace_repair_services",
          "inactive_at",
          "external_system",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceIntegrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mode",
          "schedule",
          "credential_fields",
          "last_refresh",
          "signed_out_at",
          "sign_in_refusal",
          "paused_until",
          "inactive_at",
          "organization",
          "marketplace",
          "creator",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceIntegrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "mode",
          "schedule",
          "credential_fields",
          "last_refresh",
          "signed_out_at",
          "sign_in_refusal",
          "paused_until",
          "inactive_at",
          "organization",
          "marketplace",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceMeasurementUnitField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_measurement_units",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceMeasurementUnitListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_measurement_units",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceRepairServiceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_repair_services",
          "answering_repair_services",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceRepairServiceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "marketplace",
          "listed_repair_services",
          "answering_repair_services",
          "created_at",
          "updated_at"
        ]
      },
      "MarketplaceTagTypeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "listed_tag_types",
          "answering_tag_types",
          "marketplace",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MarketplaceTagTypeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "listed_tag_types",
          "answering_tag_types",
          "marketplace",
          "created_at",
          "updated_at"
        ]
      },
      "MeasurementUnitField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "dimension",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MeasurementUnitListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "dimension",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "MeasurementUnitListingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "measurement_unit",
          "marketplace_measurement_unit",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MeasurementUnitListingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "measurement_unit",
          "marketplace_measurement_unit",
          "created_at",
          "updated_at"
        ]
      },
      "MembershipField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "inactive_at",
          "has_avatar",
          "away_until",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MembershipListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "inactive_at",
          "has_avatar",
          "away_until",
          "created_at",
          "updated_at"
        ]
      },
      "MessageField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "channel",
          "kind",
          "subject",
          "label",
          "from_address",
          "from_name",
          "to_addresses",
          "cc_addresses",
          "delivered_to_address",
          "internet_message_id",
          "in_reply_to",
          "occurred_at",
          "body_plain",
          "body_html",
          "status",
          "status_reason",
          "status_reason_label",
          "attachments",
          "attachments_left_out",
          "suspected_malware",
          "suspected_spam",
          "sender_check",
          "first_from_address",
          "sender_rule_effect",
          "sender_domain_block_refusal",
          "sender_domain_allow_refusal",
          "passes",
          "imitated_domain",
          "conversation",
          "marketplace",
          "suggested_conversation",
          "imitated_company",
          "company",
          "contact",
          "logged_by",
          "delivery",
          "reading",
          "created_at",
          "updated_at",
          "actions",
          "rfq_reading_lines.object",
          "rfq_reading_lines.uuid",
          "rfq_reading_lines.position",
          "rfq_reading_lines.part_number",
          "rfq_reading_lines.alternate_part_numbers",
          "rfq_reading_lines.quantity",
          "rfq_reading_lines.conditions",
          "rfq_reading_lines.part_description",
          "rfq_reading_lines.need_by",
          "rfq_reading_lines.customer_comment",
          "rfq_reading_lines.services",
          "rfq_reading_lines.requested_types",
          "rfq_reading_lines.tag_types",
          "rfq_reading_lines.part",
          "rfq_reading_lines.created_at",
          "rfq_reading_lines.updated_at",
          "unread_sheet_rows.object",
          "unread_sheet_rows.uuid",
          "unread_sheet_rows.sheet",
          "unread_sheet_rows.row",
          "unread_sheet_rows.reasons",
          "unread_sheet_rows.left_out",
          "unread_sheet_rows.reread",
          "unread_sheet_rows.ruling",
          "unread_sheet_rows.message_file",
          "unread_sheet_rows.created_at",
          "unread_sheet_rows.updated_at"
        ]
      },
      "MessageListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "channel",
          "kind",
          "subject",
          "label",
          "from_address",
          "from_name",
          "to_addresses",
          "cc_addresses",
          "delivered_to_address",
          "internet_message_id",
          "in_reply_to",
          "occurred_at",
          "body_plain",
          "body_html",
          "status",
          "status_reason",
          "status_reason_label",
          "attachments",
          "attachments_left_out",
          "suspected_malware",
          "suspected_spam",
          "sender_check",
          "first_from_address",
          "sender_rule_effect",
          "sender_domain_block_refusal",
          "sender_domain_allow_refusal",
          "passes",
          "imitated_domain",
          "conversation",
          "marketplace",
          "suggested_conversation",
          "imitated_company",
          "company",
          "contact",
          "logged_by",
          "delivery",
          "reading",
          "created_at",
          "updated_at"
        ]
      },
      "MigrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "system_of_record_switched_at",
          "comparisons",
          "external_system",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "MigrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "system_of_record_switched_at",
          "comparisons",
          "external_system",
          "created_at",
          "updated_at"
        ]
      },
      "MyWorkItemField": {
        "type": "string",
        "enum": [
          "object",
          "urgency",
          "headline",
          "due_on",
          "due_label",
          "detail",
          "reasons",
          "subject"
        ]
      },
      "MyWorkItemListField": {
        "type": "string",
        "enum": [
          "object",
          "urgency",
          "headline",
          "due_on",
          "due_label",
          "detail",
          "reasons",
          "subject"
        ]
      },
      "NotificationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "reason",
          "read_at",
          "event",
          "created_at",
          "updated_at",
          "actions",
          "event.object",
          "event.uuid",
          "event.action",
          "event.summary",
          "event.summarized",
          "event.subject_type",
          "event.actor_kind",
          "event.via",
          "event.particulars",
          "event.field_labels",
          "event.value_labels",
          "event.change_labels",
          "event.links",
          "event.actor_label",
          "event.subject_label",
          "event.type",
          "event.previous_attributes",
          "event.creator",
          "event.subject",
          "event.created_at",
          "event.updated_at"
        ]
      },
      "NotificationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "reason",
          "read_at",
          "event",
          "created_at",
          "updated_at",
          "event.object",
          "event.uuid",
          "event.action",
          "event.summary",
          "event.summarized",
          "event.subject_type",
          "event.actor_kind",
          "event.via",
          "event.particulars",
          "event.field_labels",
          "event.value_labels",
          "event.change_labels",
          "event.links",
          "event.actor_label",
          "event.subject_label",
          "event.type",
          "event.previous_attributes",
          "event.creator",
          "event.subject",
          "event.created_at",
          "event.updated_at"
        ]
      },
      "NotificationPreferencesField": {
        "type": "string",
        "enum": [
          "object",
          "topics"
        ]
      },
      "NotificationPreferencesListField": {
        "type": "string",
        "enum": [
          "object",
          "topics"
        ]
      },
      "OauthAuthorizationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "application",
          "scopes",
          "resource",
          "status",
          "last_used_at",
          "revoked_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "OauthAuthorizationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "application",
          "scopes",
          "resource",
          "status",
          "last_used_at",
          "revoked_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "OnboardingField": {
        "type": "string",
        "enum": [
          "object",
          "steps_done",
          "steps_skipped",
          "steps_total",
          "next_step",
          "complete",
          "dismissed_at",
          "actions"
        ]
      },
      "OnboardingListField": {
        "type": "string",
        "enum": [
          "object",
          "steps_done",
          "steps_skipped",
          "steps_total",
          "next_step",
          "complete",
          "dismissed_at"
        ]
      },
      "OnboardingStepField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "title",
          "summary",
          "detail",
          "state",
          "done_at",
          "confirmable",
          "organization",
          "answer",
          "actions"
        ]
      },
      "OnboardingStepListField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "title",
          "summary",
          "detail",
          "state",
          "done_at",
          "confirmable",
          "organization",
          "answer"
        ]
      },
      "OrganizationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "code",
          "legal_name",
          "print_name",
          "tax_id",
          "phone",
          "email_address",
          "website",
          "lines",
          "has_logo",
          "logo_version",
          "logo_height_mm",
          "automatic_invoices_at",
          "default_notes_to_shop",
          "inspection_required_for",
          "default_shipping_address",
          "primary_billing_address",
          "actions"
        ]
      },
      "OrganizationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "code",
          "legal_name",
          "print_name",
          "tax_id",
          "phone",
          "email_address",
          "website",
          "lines",
          "has_logo",
          "logo_version",
          "logo_height_mm",
          "automatic_invoices_at",
          "default_notes_to_shop",
          "inspection_required_for",
          "default_shipping_address",
          "primary_billing_address"
        ]
      },
      "OrganizationLedgerDefaultField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account",
          "actions"
        ]
      },
      "OrganizationLedgerDefaultListField": {
        "type": "string",
        "enum": [
          "object",
          "key",
          "group",
          "label",
          "usage",
          "expected_kind",
          "ledger_account_inactive",
          "mismatched",
          "migration_hold",
          "ledger_account"
        ]
      },
      "PartClassificationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PartClassificationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "PartField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number",
          "description",
          "keywords",
          "notes",
          "ata_chapter",
          "nsn",
          "shelf_life_months",
          "eccn",
          "hts_code",
          "country_of_origin",
          "un_number",
          "hazmat_shipping_name",
          "hazmat_class",
          "usml_category",
          "weight",
          "length",
          "width",
          "height",
          "lead_time_days",
          "serialized",
          "life_limited",
          "hazmat",
          "pma",
          "inspection_required",
          "inspection_instructions",
          "export_controlled",
          "hot",
          "tool",
          "calibration_required",
          "calibration_interval_months",
          "inactive_at",
          "source_fields",
          "country_of_origin_name",
          "ata_chapter_name",
          "quantity_on_hand",
          "quantity_available",
          "migration_hold",
          "unsent_to_avsight",
          "repair_services",
          "manufacturer",
          "classification",
          "measurement_unit",
          "weight_unit",
          "dimension_unit",
          "preferred_vendor",
          "tax_category",
          "revenue_ledger_account",
          "applicabilities",
          "hidden_marketplaces",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at",
          "actions",
          "manufacturer.object",
          "manufacturer.uuid",
          "manufacturer.name",
          "manufacturer.cage_code",
          "manufacturer.inactive_at",
          "manufacturer.created_at",
          "manufacturer.updated_at",
          "classification.object",
          "classification.uuid",
          "classification.name",
          "classification.position",
          "classification.inactive_at",
          "classification.created_at",
          "classification.updated_at",
          "measurement_unit.object",
          "measurement_unit.uuid",
          "measurement_unit.code",
          "measurement_unit.name",
          "measurement_unit.dimension",
          "measurement_unit.inactive_at",
          "measurement_unit.created_at",
          "measurement_unit.updated_at",
          "weight_unit.object",
          "weight_unit.uuid",
          "weight_unit.code",
          "weight_unit.name",
          "weight_unit.dimension",
          "weight_unit.inactive_at",
          "weight_unit.created_at",
          "weight_unit.updated_at",
          "dimension_unit.object",
          "dimension_unit.uuid",
          "dimension_unit.code",
          "dimension_unit.name",
          "dimension_unit.dimension",
          "dimension_unit.inactive_at",
          "dimension_unit.created_at",
          "dimension_unit.updated_at",
          "preferred_vendor.object",
          "preferred_vendor.uuid",
          "preferred_vendor.name",
          "preferred_vendor.trading_name",
          "preferred_vendor.legal_name",
          "preferred_vendor.code",
          "preferred_vendor.cage_code",
          "preferred_vendor.tax_id",
          "preferred_vendor.website",
          "preferred_vendor.phone",
          "preferred_vendor.fax",
          "preferred_vendor.email_address",
          "preferred_vendor.notes",
          "preferred_vendor.inactive_at",
          "preferred_vendor.source_fields",
          "preferred_vendor.roles",
          "preferred_vendor.vendor_approval",
          "preferred_vendor.vendor_approval_refusals",
          "preferred_vendor.vendor_currency_code",
          "preferred_vendor.migration_hold",
          "preferred_vendor.unsent_to_avsight",
          "preferred_vendor.account_owner",
          "preferred_vendor.segments",
          "preferred_vendor.primary_billing_address",
          "preferred_vendor.primary_shipping_address",
          "preferred_vendor.created_at",
          "preferred_vendor.updated_at",
          "tax_category.object",
          "tax_category.uuid",
          "tax_category.code",
          "tax_category.name",
          "tax_category.description",
          "tax_category.inactive_at",
          "tax_category.created_at",
          "tax_category.updated_at",
          "revenue_ledger_account.object",
          "revenue_ledger_account.uuid",
          "revenue_ledger_account.code",
          "revenue_ledger_account.name",
          "revenue_ledger_account.description",
          "revenue_ledger_account.kind",
          "revenue_ledger_account.inactive_at",
          "revenue_ledger_account.quickbooks_assignment",
          "revenue_ledger_account.created_at",
          "revenue_ledger_account.updated_at",
          "applicabilities.object",
          "applicabilities.uuid",
          "applicabilities.name",
          "applicabilities.category",
          "applicabilities.inactive_at",
          "applicabilities.created_at",
          "applicabilities.updated_at",
          "hidden_marketplaces.object",
          "hidden_marketplaces.uuid",
          "hidden_marketplaces.code",
          "hidden_marketplaces.name",
          "hidden_marketplaces.known_as",
          "hidden_marketplaces.takes_listings",
          "hidden_marketplaces.includes_prices",
          "hidden_marketplaces.includes_vendor_inventory",
          "hidden_marketplaces.seller_id_label",
          "hidden_marketplaces.credential_fields",
          "hidden_marketplaces.marketplace_conditions",
          "hidden_marketplaces.marketplace_tag_types",
          "hidden_marketplaces.marketplace_measurement_units",
          "hidden_marketplaces.marketplace_repair_services",
          "hidden_marketplaces.inactive_at",
          "hidden_marketplaces.external_system",
          "hidden_marketplaces.created_at",
          "hidden_marketplaces.updated_at",
          "requirements.object",
          "requirements.uuid",
          "requirements.name",
          "requirements.step",
          "requirements.received_on",
          "requirements.kind",
          "requirements.fact",
          "requirements.minimum_shelf_life_percent",
          "requirements.enforcement",
          "requirements.every_order",
          "requirements.instructions",
          "requirements.inactive_at",
          "requirements.upload_category",
          "requirements.created_at",
          "requirements.updated_at"
        ]
      },
      "PartListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number",
          "description",
          "keywords",
          "notes",
          "ata_chapter",
          "nsn",
          "shelf_life_months",
          "eccn",
          "hts_code",
          "country_of_origin",
          "un_number",
          "hazmat_shipping_name",
          "hazmat_class",
          "usml_category",
          "weight",
          "length",
          "width",
          "height",
          "lead_time_days",
          "serialized",
          "life_limited",
          "hazmat",
          "pma",
          "inspection_required",
          "inspection_instructions",
          "export_controlled",
          "hot",
          "tool",
          "calibration_required",
          "calibration_interval_months",
          "inactive_at",
          "source_fields",
          "country_of_origin_name",
          "ata_chapter_name",
          "quantity_on_hand",
          "quantity_available",
          "migration_hold",
          "unsent_to_avsight",
          "repair_services",
          "manufacturer",
          "classification",
          "measurement_unit",
          "weight_unit",
          "dimension_unit",
          "preferred_vendor",
          "tax_category",
          "revenue_ledger_account",
          "applicabilities",
          "hidden_marketplaces",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at",
          "manufacturer.object",
          "manufacturer.uuid",
          "manufacturer.name",
          "manufacturer.cage_code",
          "manufacturer.inactive_at",
          "manufacturer.created_at",
          "manufacturer.updated_at",
          "classification.object",
          "classification.uuid",
          "classification.name",
          "classification.position",
          "classification.inactive_at",
          "classification.created_at",
          "classification.updated_at",
          "measurement_unit.object",
          "measurement_unit.uuid",
          "measurement_unit.code",
          "measurement_unit.name",
          "measurement_unit.dimension",
          "measurement_unit.inactive_at",
          "measurement_unit.created_at",
          "measurement_unit.updated_at",
          "weight_unit.object",
          "weight_unit.uuid",
          "weight_unit.code",
          "weight_unit.name",
          "weight_unit.dimension",
          "weight_unit.inactive_at",
          "weight_unit.created_at",
          "weight_unit.updated_at",
          "dimension_unit.object",
          "dimension_unit.uuid",
          "dimension_unit.code",
          "dimension_unit.name",
          "dimension_unit.dimension",
          "dimension_unit.inactive_at",
          "dimension_unit.created_at",
          "dimension_unit.updated_at",
          "preferred_vendor.object",
          "preferred_vendor.uuid",
          "preferred_vendor.name",
          "preferred_vendor.trading_name",
          "preferred_vendor.legal_name",
          "preferred_vendor.code",
          "preferred_vendor.cage_code",
          "preferred_vendor.tax_id",
          "preferred_vendor.website",
          "preferred_vendor.phone",
          "preferred_vendor.fax",
          "preferred_vendor.email_address",
          "preferred_vendor.notes",
          "preferred_vendor.inactive_at",
          "preferred_vendor.source_fields",
          "preferred_vendor.roles",
          "preferred_vendor.vendor_approval",
          "preferred_vendor.vendor_approval_refusals",
          "preferred_vendor.vendor_currency_code",
          "preferred_vendor.migration_hold",
          "preferred_vendor.unsent_to_avsight",
          "preferred_vendor.account_owner",
          "preferred_vendor.segments",
          "preferred_vendor.primary_billing_address",
          "preferred_vendor.primary_shipping_address",
          "preferred_vendor.created_at",
          "preferred_vendor.updated_at",
          "tax_category.object",
          "tax_category.uuid",
          "tax_category.code",
          "tax_category.name",
          "tax_category.description",
          "tax_category.inactive_at",
          "tax_category.created_at",
          "tax_category.updated_at",
          "revenue_ledger_account.object",
          "revenue_ledger_account.uuid",
          "revenue_ledger_account.code",
          "revenue_ledger_account.name",
          "revenue_ledger_account.description",
          "revenue_ledger_account.kind",
          "revenue_ledger_account.inactive_at",
          "revenue_ledger_account.quickbooks_assignment",
          "revenue_ledger_account.created_at",
          "revenue_ledger_account.updated_at",
          "applicabilities.object",
          "applicabilities.uuid",
          "applicabilities.name",
          "applicabilities.category",
          "applicabilities.inactive_at",
          "applicabilities.created_at",
          "applicabilities.updated_at",
          "hidden_marketplaces.object",
          "hidden_marketplaces.uuid",
          "hidden_marketplaces.code",
          "hidden_marketplaces.name",
          "hidden_marketplaces.known_as",
          "hidden_marketplaces.takes_listings",
          "hidden_marketplaces.includes_prices",
          "hidden_marketplaces.includes_vendor_inventory",
          "hidden_marketplaces.seller_id_label",
          "hidden_marketplaces.credential_fields",
          "hidden_marketplaces.marketplace_conditions",
          "hidden_marketplaces.marketplace_tag_types",
          "hidden_marketplaces.marketplace_measurement_units",
          "hidden_marketplaces.marketplace_repair_services",
          "hidden_marketplaces.inactive_at",
          "hidden_marketplaces.external_system",
          "hidden_marketplaces.created_at",
          "hidden_marketplaces.updated_at",
          "requirements.object",
          "requirements.uuid",
          "requirements.name",
          "requirements.step",
          "requirements.received_on",
          "requirements.kind",
          "requirements.fact",
          "requirements.minimum_shelf_life_percent",
          "requirements.enforcement",
          "requirements.every_order",
          "requirements.instructions",
          "requirements.inactive_at",
          "requirements.upload_category",
          "requirements.created_at",
          "requirements.updated_at"
        ]
      },
      "PartRepairServiceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "part",
          "repair_service",
          "work_order_templates",
          "created_at",
          "updated_at"
        ]
      },
      "PartRepairServiceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "part",
          "repair_service",
          "work_order_templates",
          "created_at",
          "updated_at"
        ]
      },
      "PartTallyField": {
        "type": "string",
        "enum": [
          "object",
          "part_number",
          "description",
          "requests",
          "quantity_requested",
          "no_quotes",
          "part",
          "no_quote_reason"
        ]
      },
      "PartTallyListField": {
        "type": "string",
        "enum": [
          "object",
          "part_number",
          "description",
          "requests",
          "quantity_requested",
          "no_quotes",
          "part",
          "no_quote_reason"
        ]
      },
      "PasswordConfirmationField": {
        "type": "string",
        "enum": [
          "object",
          "confirmed_at"
        ]
      },
      "PasswordConfirmationListField": {
        "type": "string",
        "enum": [
          "object",
          "confirmed_at"
        ]
      },
      "PayableApplicationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ]
      },
      "PayableApplicationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ]
      },
      "PaymentTermField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "net_days",
          "prepayment_required",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PaymentTermListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "net_days",
          "prepayment_required",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "PrintNodeIntegrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "configured",
          "connected",
          "connected_at",
          "client_download_url",
          "actions"
        ]
      },
      "PrintNodeIntegrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "configured",
          "connected",
          "connected_at",
          "client_download_url"
        ]
      },
      "PrintNodePrinterField": {
        "type": "string",
        "enum": [
          "object",
          "print_node_id",
          "name",
          "state",
          "computer_name",
          "computer_state",
          "printer"
        ]
      },
      "PrintNodePrinterListField": {
        "type": "string",
        "enum": [
          "object",
          "print_node_id",
          "name",
          "state",
          "computer_name",
          "computer_state",
          "printer"
        ]
      },
      "PrintRequestField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "reason",
          "title",
          "forms",
          "document_count",
          "left_out",
          "error",
          "expires_at",
          "sent_at",
          "printed_at",
          "failed_at",
          "expired_at",
          "printer",
          "creator",
          "organization",
          "resumes",
          "created_at",
          "updated_at",
          "actions",
          "documents.object",
          "documents.uuid",
          "documents.position",
          "documents.copies",
          "documents.reprint",
          "documents.title",
          "documents.document",
          "documents.record",
          "documents.created_at",
          "documents.updated_at"
        ]
      },
      "PrintRequestListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "reason",
          "title",
          "forms",
          "document_count",
          "left_out",
          "error",
          "expires_at",
          "sent_at",
          "printed_at",
          "failed_at",
          "expired_at",
          "printer",
          "creator",
          "organization",
          "resumes",
          "created_at",
          "updated_at"
        ]
      },
      "PrintRequestDocumentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "copies",
          "reprint",
          "title",
          "document",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "PrintRequestDocumentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "copies",
          "reprint",
          "title",
          "document",
          "record",
          "created_at",
          "updated_at"
        ]
      },
      "PrinterField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "dpi",
          "label_size",
          "print_node_id",
          "computer_name",
          "inactive_at",
          "facility",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PrinterListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "kind",
          "dpi",
          "label_size",
          "print_node_id",
          "computer_name",
          "inactive_at",
          "facility",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "ProfileField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "title",
          "phone",
          "email_signature",
          "email_address",
          "time_zone",
          "has_avatar",
          "avatar_version",
          "has_signature",
          "signature_version",
          "nav_item_order",
          "hidden_nav_items",
          "calendar_feed_issued_at",
          "calendar_feed_url",
          "employee",
          "default_facility",
          "actions"
        ]
      },
      "ProfileListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "title",
          "phone",
          "email_signature",
          "email_address",
          "time_zone",
          "has_avatar",
          "avatar_version",
          "has_signature",
          "signature_version",
          "nav_item_order",
          "hidden_nav_items",
          "calendar_feed_issued_at",
          "calendar_feed_url",
          "employee",
          "default_facility"
        ]
      },
      "ProtectionReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ProtectionReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "PublicationCategoryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PublicationCategoryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "PublicationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "reference",
          "description",
          "ata_zone",
          "url",
          "published_on",
          "expires_on",
          "inactive_at",
          "ata_zone_label",
          "expired",
          "verified",
          "verification_due",
          "verification_verified_on",
          "verification_due_on",
          "parts",
          "category",
          "manufacturer",
          "superseded_by",
          "bin",
          "facility",
          "verifier_skill",
          "current_revision",
          "verification_employee",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PublicationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "reference",
          "description",
          "ata_zone",
          "url",
          "published_on",
          "expires_on",
          "inactive_at",
          "ata_zone_label",
          "expired",
          "verified",
          "verification_due",
          "verification_verified_on",
          "verification_due_on",
          "parts",
          "category",
          "manufacturer",
          "superseded_by",
          "bin",
          "facility",
          "verifier_skill",
          "current_revision",
          "verification_employee",
          "created_at",
          "updated_at"
        ]
      },
      "PublicationRevisionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "revision",
          "name",
          "url",
          "published_on",
          "effective_on",
          "expires_on",
          "received_on",
          "temporary",
          "current",
          "expired",
          "effective",
          "publication",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PublicationRevisionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "revision",
          "name",
          "url",
          "published_on",
          "effective_on",
          "expires_on",
          "received_on",
          "temporary",
          "current",
          "expired",
          "effective",
          "publication",
          "created_at",
          "updated_at"
        ]
      },
      "PublicationVerificationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "verified_on",
          "due_on",
          "due",
          "employee",
          "publication",
          "created_at",
          "updated_at"
        ]
      },
      "PublicationVerificationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "verified_on",
          "due_on",
          "due",
          "employee",
          "publication",
          "created_at",
          "updated_at"
        ]
      },
      "PurchaseOrderField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_reference",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "sent_at",
          "amended_at",
          "closed_at",
          "cancelled_at",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "editable",
          "currency_locked",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "contact_email_address",
          "total_cents",
          "home_total_cents",
          "paid_cents",
          "tax_cents",
          "subtotal_cents",
          "line_count",
          "quantity_ordered",
          "quantity_received",
          "quantity_outstanding",
          "fully_received",
          "receiving",
          "receivable",
          "consignment",
          "inventory_kind",
          "inventory_name",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "priority",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "inventory_code",
          "sourced_for",
          "package_manifest",
          "open_receipt",
          "created_at",
          "updated_at",
          "actions",
          "package_manifest.object",
          "package_manifest.uuid",
          "package_manifest.name",
          "package_manifest.label",
          "package_manifest.quantity_expected",
          "package_manifest.quantity_received",
          "package_manifest.quantity_rejected",
          "package_manifest.quantity_pending",
          "package_manifest.quantity_scrapped",
          "package_manifest.quantity_cancelled",
          "package_manifest.quantity_outstanding",
          "package_manifest.status",
          "package_manifest.open",
          "package_manifest.line_count",
          "package_manifest.receipt_count",
          "package_manifest.import_count",
          "package_manifest.export_count",
          "package_manifest.inventory_name",
          "package_manifest.funding",
          "package_manifest.source_unit",
          "package_manifest.migration_hold",
          "package_manifest.document_forms",
          "package_manifest.organization",
          "package_manifest.inventory_code",
          "package_manifest.open_receipt",
          "package_manifest.created_at",
          "package_manifest.updated_at",
          "requirements.object",
          "requirements.uuid",
          "requirements.source",
          "requirements.met",
          "requirements.state",
          "requirements.told_vendor",
          "requirements.waived_at",
          "requirements.waiver_note",
          "requirements.requirement",
          "requirements.sales_order",
          "requirements.part",
          "requirements.condition",
          "requirements.added_by",
          "requirements.waived_by",
          "requirements.created_at",
          "requirements.updated_at"
        ]
      },
      "PurchaseOrderListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_reference",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "sent_at",
          "amended_at",
          "closed_at",
          "cancelled_at",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "editable",
          "currency_locked",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "contact_email_address",
          "total_cents",
          "home_total_cents",
          "paid_cents",
          "tax_cents",
          "subtotal_cents",
          "line_count",
          "quantity_ordered",
          "quantity_received",
          "quantity_outstanding",
          "fully_received",
          "receiving",
          "receivable",
          "consignment",
          "inventory_kind",
          "inventory_name",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "priority",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "inventory_code",
          "sourced_for",
          "package_manifest",
          "open_receipt",
          "created_at",
          "updated_at",
          "package_manifest.object",
          "package_manifest.uuid",
          "package_manifest.name",
          "package_manifest.label",
          "package_manifest.quantity_expected",
          "package_manifest.quantity_received",
          "package_manifest.quantity_rejected",
          "package_manifest.quantity_pending",
          "package_manifest.quantity_scrapped",
          "package_manifest.quantity_cancelled",
          "package_manifest.quantity_outstanding",
          "package_manifest.status",
          "package_manifest.open",
          "package_manifest.line_count",
          "package_manifest.receipt_count",
          "package_manifest.import_count",
          "package_manifest.export_count",
          "package_manifest.inventory_name",
          "package_manifest.funding",
          "package_manifest.source_unit",
          "package_manifest.migration_hold",
          "package_manifest.document_forms",
          "package_manifest.organization",
          "package_manifest.inventory_code",
          "package_manifest.open_receipt",
          "package_manifest.created_at",
          "package_manifest.updated_at"
        ]
      },
      "PurchaseOrderLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "unit_cost_cents",
          "tax_cents",
          "request_type",
          "priority",
          "external_notes",
          "internal_notes",
          "period_starts_on",
          "period_ends_on",
          "reported_hours",
          "reported_cycles",
          "quantity",
          "quantity_reserved",
          "quantity_received",
          "quantity_outstanding",
          "quantity_held",
          "awaited_requirements",
          "line_total_cents",
          "receivable",
          "received",
          "arrived",
          "quantity_available",
          "part_description",
          "sourcing_request_closed",
          "removal_refusal",
          "billed_lease_removal_refusal",
          "currency_code",
          "currency_exponent",
          "order_status",
          "need_by",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "warranty_days",
          "source_fields",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "hold_reason",
          "sold_on",
          "tagged_by",
          "purchase_order",
          "vendor",
          "part",
          "charge",
          "condition",
          "warehouse",
          "inventory_code",
          "vendor_offer",
          "vendor_rfq",
          "arrival_receipt",
          "sourcing_request",
          "vendor_lease",
          "billed_lease",
          "period_lines",
          "exchange",
          "lease",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "PurchaseOrderLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "unit_cost_cents",
          "tax_cents",
          "request_type",
          "priority",
          "external_notes",
          "internal_notes",
          "period_starts_on",
          "period_ends_on",
          "reported_hours",
          "reported_cycles",
          "quantity",
          "quantity_reserved",
          "quantity_received",
          "quantity_outstanding",
          "quantity_held",
          "awaited_requirements",
          "line_total_cents",
          "receivable",
          "received",
          "arrived",
          "quantity_available",
          "part_description",
          "sourcing_request_closed",
          "removal_refusal",
          "billed_lease_removal_refusal",
          "currency_code",
          "currency_exponent",
          "order_status",
          "need_by",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "warranty_days",
          "source_fields",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "hold_reason",
          "sold_on",
          "tagged_by",
          "purchase_order",
          "vendor",
          "part",
          "charge",
          "condition",
          "warehouse",
          "inventory_code",
          "vendor_offer",
          "vendor_rfq",
          "arrival_receipt",
          "sourcing_request",
          "vendor_lease",
          "billed_lease",
          "period_lines",
          "exchange",
          "lease",
          "created_at",
          "updated_at"
        ]
      },
      "PurchaseOrderRequirementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "actions",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "PurchaseOrderRequirementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "QuickbooksAccountField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name",
          "code",
          "account_type"
        ]
      },
      "QuickbooksAccountListField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name",
          "code",
          "account_type"
        ]
      },
      "QuickbooksAssignmentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quickbooks_id",
          "quickbooks_entity_type",
          "origin",
          "linked_at",
          "record",
          "linker",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "QuickbooksAssignmentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quickbooks_id",
          "quickbooks_entity_type",
          "origin",
          "linked_at",
          "record",
          "linker",
          "created_at",
          "updated_at"
        ]
      },
      "QuickbooksCustomerField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuickbooksCustomerListField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuickbooksIntegrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "connected",
          "sandbox",
          "realm_id",
          "company_name",
          "home_currency_code",
          "multi_currency_enabled",
          "books_closed_through",
          "cutover_on",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "last_synced_at",
          "last_sync_error",
          "problems",
          "connection_refusal",
          "authorize_url",
          "actions"
        ]
      },
      "QuickbooksIntegrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "connected",
          "sandbox",
          "realm_id",
          "company_name",
          "home_currency_code",
          "multi_currency_enabled",
          "books_closed_through",
          "cutover_on",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "last_synced_at",
          "last_sync_error",
          "problems",
          "connection_refusal",
          "authorize_url"
        ]
      },
      "QuickbooksItemField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuickbooksItemListField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuickbooksTaxCodeField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name",
          "description"
        ]
      },
      "QuickbooksTaxCodeListField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name",
          "description"
        ]
      },
      "QuickbooksVendorField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuickbooksVendorListField": {
        "type": "string",
        "enum": [
          "object",
          "quickbooks_id",
          "name"
        ]
      },
      "QuoteResponseTimeField": {
        "type": "string",
        "enum": [
          "object",
          "bucket",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ]
      },
      "QuoteResponseTimeListField": {
        "type": "string",
        "enum": [
          "object",
          "bucket",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate"
        ]
      },
      "ReceiptField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "internal_notes",
          "order_internal_notes",
          "counterparty_role",
          "external_notes",
          "shipped_via",
          "tracking_number",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "source_label",
          "pool_code",
          "funding",
          "packages",
          "quantity",
          "quantity_held",
          "line_count",
          "received_count",
          "inspection_required_count",
          "inspected_count",
          "drop_ship",
          "fx_rate",
          "home_currency_code",
          "source_fields",
          "document_forms",
          "organization",
          "company",
          "source",
          "receiving_inspection_checklist",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ReceiptListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "internal_notes",
          "order_internal_notes",
          "counterparty_role",
          "external_notes",
          "shipped_via",
          "tracking_number",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "source_label",
          "pool_code",
          "funding",
          "packages",
          "quantity",
          "quantity_held",
          "line_count",
          "received_count",
          "inspection_required_count",
          "inspected_count",
          "drop_ship",
          "fx_rate",
          "home_currency_code",
          "source_fields",
          "document_forms",
          "organization",
          "company",
          "source",
          "receiving_inspection_checklist",
          "created_at",
          "updated_at"
        ]
      },
      "ReceiptLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "trace_type",
          "tag_types",
          "quantity",
          "serial_number",
          "protected",
          "received",
          "missing_facts",
          "expected_serials",
          "from_manifest",
          "rejection_reason_names",
          "inventory_line_protected",
          "inventory_line_awaited_requirements",
          "inventory_line_release_refusal",
          "inspection_required",
          "inspection_not_required_reason",
          "inspection_outcome",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "tag_number",
          "certificate_number",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "effective_shelf_life_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "tail_number",
          "engine_serial_number",
          "internal_notes",
          "shelf_life",
          "tool",
          "calibration_due_on",
          "calibration_result",
          "calibration_certificate_number",
          "destinations",
          "inventory_kind",
          "custody_reason",
          "part_description",
          "inventory_code_refusal",
          "quantity_vouchered",
          "quantity_unvouchered",
          "unvouchered_cents",
          "home_unvouchered_cents",
          "currency_code",
          "line_position",
          "order_line",
          "company",
          "order",
          "received_at",
          "serial_shared_with",
          "inventory_line_protection_reason",
          "inspection",
          "tagged_by",
          "part",
          "condition",
          "warehouse",
          "bin",
          "suggested_warehouse",
          "suggested_bin",
          "inventory_code",
          "protection_reason",
          "rejection",
          "inventory_line",
          "owner_company",
          "receipt",
          "manifest",
          "return",
          "created_at",
          "updated_at",
          "actions",
          "receipt.object",
          "receipt.uuid",
          "receipt.status",
          "receipt.currency_code",
          "receipt.internal_notes",
          "receipt.order_internal_notes",
          "receipt.counterparty_role",
          "receipt.external_notes",
          "receipt.shipped_via",
          "receipt.tracking_number",
          "receipt.identifier",
          "receipt.trashed_at",
          "receipt.received_at",
          "receipt.cancelled_at",
          "receipt.source_label",
          "receipt.pool_code",
          "receipt.funding",
          "receipt.packages",
          "receipt.quantity",
          "receipt.quantity_held",
          "receipt.line_count",
          "receipt.received_count",
          "receipt.inspection_required_count",
          "receipt.inspected_count",
          "receipt.drop_ship",
          "receipt.fx_rate",
          "receipt.home_currency_code",
          "receipt.source_fields",
          "receipt.document_forms",
          "receipt.organization",
          "receipt.company",
          "receipt.source",
          "receipt.receiving_inspection_checklist",
          "receipt.created_at",
          "receipt.updated_at"
        ]
      },
      "ReceiptLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "trace_type",
          "tag_types",
          "quantity",
          "serial_number",
          "protected",
          "received",
          "missing_facts",
          "expected_serials",
          "from_manifest",
          "rejection_reason_names",
          "inventory_line_protected",
          "inventory_line_awaited_requirements",
          "inventory_line_release_refusal",
          "inspection_required",
          "inspection_not_required_reason",
          "inspection_outcome",
          "trace_source",
          "tagged_by_raw",
          "tagged_on",
          "tag_number",
          "certificate_number",
          "date_of_manufacture",
          "shelf_life_expires_on",
          "effective_shelf_life_expires_on",
          "time_since_new_hours",
          "time_since_overhaul_hours",
          "time_limit_hours",
          "cycles_since_new",
          "cycles_since_overhaul",
          "cycle_limit",
          "tail_number",
          "engine_serial_number",
          "internal_notes",
          "shelf_life",
          "tool",
          "calibration_due_on",
          "calibration_result",
          "calibration_certificate_number",
          "destinations",
          "inventory_kind",
          "custody_reason",
          "part_description",
          "inventory_code_refusal",
          "quantity_vouchered",
          "quantity_unvouchered",
          "unvouchered_cents",
          "home_unvouchered_cents",
          "currency_code",
          "line_position",
          "order_line",
          "company",
          "order",
          "received_at",
          "serial_shared_with",
          "inventory_line_protection_reason",
          "inspection",
          "tagged_by",
          "part",
          "condition",
          "warehouse",
          "bin",
          "suggested_warehouse",
          "suggested_bin",
          "inventory_code",
          "protection_reason",
          "rejection",
          "inventory_line",
          "owner_company",
          "receipt",
          "manifest",
          "return",
          "created_at",
          "updated_at",
          "receipt.object",
          "receipt.uuid",
          "receipt.status",
          "receipt.currency_code",
          "receipt.internal_notes",
          "receipt.order_internal_notes",
          "receipt.counterparty_role",
          "receipt.external_notes",
          "receipt.shipped_via",
          "receipt.tracking_number",
          "receipt.identifier",
          "receipt.trashed_at",
          "receipt.received_at",
          "receipt.cancelled_at",
          "receipt.source_label",
          "receipt.pool_code",
          "receipt.funding",
          "receipt.packages",
          "receipt.quantity",
          "receipt.quantity_held",
          "receipt.line_count",
          "receipt.received_count",
          "receipt.inspection_required_count",
          "receipt.inspected_count",
          "receipt.drop_ship",
          "receipt.fx_rate",
          "receipt.home_currency_code",
          "receipt.source_fields",
          "receipt.document_forms",
          "receipt.organization",
          "receipt.company",
          "receipt.source",
          "receipt.receiving_inspection_checklist",
          "receipt.created_at",
          "receipt.updated_at"
        ]
      },
      "ReceivableApplicationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ]
      },
      "ReceivableApplicationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "status",
          "applied_on",
          "amount_cents",
          "currency_code",
          "reference",
          "voided_at",
          "migration_hold",
          "payment",
          "credit",
          "bill",
          "creator",
          "voided_by",
          "created_at",
          "updated_at"
        ]
      },
      "RejectionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "status",
          "resolution",
          "identifier",
          "resolved_at",
          "cancelled_at",
          "trashed_at",
          "part_number",
          "part_description",
          "serial_number",
          "quantity",
          "condition_code",
          "document_forms",
          "organization",
          "part",
          "clause",
          "inventory_line",
          "receipt",
          "purchase_order",
          "replacement",
          "outcome",
          "assignee",
          "reasons",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RejectionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "status",
          "resolution",
          "identifier",
          "resolved_at",
          "cancelled_at",
          "trashed_at",
          "part_number",
          "part_description",
          "serial_number",
          "quantity",
          "condition_code",
          "document_forms",
          "organization",
          "part",
          "clause",
          "inventory_line",
          "receipt",
          "purchase_order",
          "replacement",
          "outcome",
          "assignee",
          "reasons",
          "created_at",
          "updated_at"
        ]
      },
      "RejectionReasonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RejectionReasonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "ReleaseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "urgency",
          "requested_ship_date",
          "documents_only",
          "internal_notes",
          "external_notes",
          "shipped_via",
          "pieces",
          "freight_charge_cents",
          "change_reason",
          "identifier",
          "trashed_at",
          "shipped_at",
          "changed_at",
          "worked_at",
          "total_weight",
          "weight_unit_code",
          "shipping_instructions",
          "migration_hold",
          "ship_via_label",
          "freight_account",
          "customer_po_number",
          "contact_name_raw",
          "billing_party",
          "currency_code",
          "currency_exponent",
          "line_count",
          "part_line_count",
          "picked_count",
          "verified_count",
          "qc_inspection_count",
          "awaiting_check_count",
          "shipping_status",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "tracking_references",
          "requirements",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "company",
          "contact",
          "invoice",
          "freight_term",
          "source",
          "clause",
          "outbound_qc_checklist",
          "worked_by",
          "ship_via",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ReleaseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "urgency",
          "requested_ship_date",
          "documents_only",
          "internal_notes",
          "external_notes",
          "shipped_via",
          "pieces",
          "freight_charge_cents",
          "change_reason",
          "identifier",
          "trashed_at",
          "shipped_at",
          "changed_at",
          "worked_at",
          "total_weight",
          "weight_unit_code",
          "shipping_instructions",
          "migration_hold",
          "ship_via_label",
          "freight_account",
          "customer_po_number",
          "contact_name_raw",
          "billing_party",
          "currency_code",
          "currency_exponent",
          "line_count",
          "part_line_count",
          "picked_count",
          "verified_count",
          "qc_inspection_count",
          "awaiting_check_count",
          "shipping_status",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "tracking_references",
          "requirements",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "organization",
          "company",
          "contact",
          "invoice",
          "freight_term",
          "source",
          "clause",
          "outbound_qc_checklist",
          "worked_by",
          "ship_via",
          "created_at",
          "updated_at"
        ]
      },
      "ReleaseLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "home_unit_cost_cents",
          "quantity",
          "description",
          "unit_price_cents",
          "customs_value_cents",
          "printed_customs_value_cents",
          "sells_at_zero",
          "settles_at_sale",
          "charge_code",
          "part_number",
          "part_description",
          "serial_number",
          "serial_missing",
          "condition_code",
          "inventory_kind",
          "custody_reason",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "picked_at",
          "verified_at",
          "hazmat",
          "life_limited",
          "hazmat_shipping_name",
          "un_number",
          "hazmat_class",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "customer_warranty_expires_on",
          "calibration_due_on",
          "calibration_state",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "warehouse",
          "bin",
          "held",
          "inspection_outcome",
          "currency_code",
          "customer_po_number",
          "urgency",
          "requested_ship_date",
          "stage",
          "answers_qc_checklist",
          "rejection_refusal",
          "unverification_refusal",
          "split_refusal",
          "migration_hold",
          "order_holds",
          "unmet_requirements",
          "sales_order_line",
          "tagged_by",
          "inventory_line",
          "inventory_code",
          "part",
          "ordered_part",
          "inspection",
          "picked_by",
          "verified_by",
          "owner_company",
          "release",
          "order",
          "company",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ReleaseLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "home_unit_cost_cents",
          "quantity",
          "description",
          "unit_price_cents",
          "customs_value_cents",
          "printed_customs_value_cents",
          "sells_at_zero",
          "settles_at_sale",
          "charge_code",
          "part_number",
          "part_description",
          "serial_number",
          "serial_missing",
          "condition_code",
          "inventory_kind",
          "custody_reason",
          "shipped_part_number",
          "alternate_kind",
          "alternate_interchangeability",
          "alternate_direction",
          "picked_at",
          "verified_at",
          "hazmat",
          "life_limited",
          "hazmat_shipping_name",
          "un_number",
          "hazmat_class",
          "shelf_life_expires_on",
          "warranty_expires_on",
          "customer_warranty_expires_on",
          "calibration_due_on",
          "calibration_state",
          "trace_type",
          "tag_types",
          "trace_source",
          "certificate_number",
          "tag_number",
          "tagged_on",
          "tagged_by_raw",
          "warehouse",
          "bin",
          "held",
          "inspection_outcome",
          "currency_code",
          "customer_po_number",
          "urgency",
          "requested_ship_date",
          "stage",
          "answers_qc_checklist",
          "rejection_refusal",
          "unverification_refusal",
          "split_refusal",
          "migration_hold",
          "order_holds",
          "unmet_requirements",
          "sales_order_line",
          "tagged_by",
          "inventory_line",
          "inventory_code",
          "part",
          "ordered_part",
          "inspection",
          "picked_by",
          "verified_by",
          "owner_company",
          "release",
          "order",
          "company",
          "created_at",
          "updated_at"
        ]
      },
      "RepairOrderField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_quote_number",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "estimated_total_cents",
          "contact_email_address",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "line_count",
          "releasable",
          "receivable",
          "partially_received",
          "awaiting_shipment",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "return_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "open_receipt",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at",
          "actions",
          "requirements.object",
          "requirements.uuid",
          "requirements.source",
          "requirements.met",
          "requirements.state",
          "requirements.told_vendor",
          "requirements.waived_at",
          "requirements.waiver_note",
          "requirements.requirement",
          "requirements.sales_order",
          "requirements.part",
          "requirements.condition",
          "requirements.added_by",
          "requirements.waived_by",
          "requirements.created_at",
          "requirements.updated_at"
        ]
      },
      "RepairOrderListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "currency_code",
          "vendor_quote_number",
          "billing_party",
          "internal_notes",
          "external_notes",
          "vendor_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "received_at",
          "cancelled_at",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "estimated_total_cents",
          "contact_email_address",
          "vendor_approved",
          "vendor_approval_state",
          "vendor_approval_refusal",
          "vendor_approval_lapses_on",
          "vendor_approvable",
          "line_count",
          "releasable",
          "receivable",
          "partially_received",
          "awaiting_shipment",
          "unvouchered_receipts",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_customer_mismatched",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "return_to_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "open_receipt",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "RepairOrderLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "purpose",
          "non_oem_allowance",
          "position",
          "expected_part_number_raw",
          "estimated_unit_cost_cents",
          "final_unit_cost_cents",
          "initial_estimated_unit_cost_cents",
          "estimate_received_on",
          "estimate_approved_on",
          "final_cost_received_on",
          "description",
          "part_description",
          "external_notes",
          "internal_notes",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_outstanding",
          "at_vendor",
          "settled",
          "teardown",
          "teardown_completed",
          "releasable",
          "supply_part_number",
          "quantity_available",
          "currency_code",
          "order_status",
          "promised_on",
          "claims",
          "allocations",
          "stage",
          "quantity_at_vendor",
          "owner_company",
          "for",
          "repair_order",
          "vendor",
          "charge",
          "repair_service",
          "expected_condition",
          "expected_part",
          "supply_part",
          "teardown_inventory_code",
          "teardown_manifest",
          "supply",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RepairOrderLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "purpose",
          "non_oem_allowance",
          "position",
          "expected_part_number_raw",
          "estimated_unit_cost_cents",
          "final_unit_cost_cents",
          "initial_estimated_unit_cost_cents",
          "estimate_received_on",
          "estimate_approved_on",
          "final_cost_received_on",
          "description",
          "part_description",
          "external_notes",
          "internal_notes",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_outstanding",
          "at_vendor",
          "settled",
          "teardown",
          "teardown_completed",
          "releasable",
          "supply_part_number",
          "quantity_available",
          "currency_code",
          "order_status",
          "promised_on",
          "claims",
          "allocations",
          "stage",
          "quantity_at_vendor",
          "owner_company",
          "for",
          "repair_order",
          "vendor",
          "charge",
          "repair_service",
          "expected_condition",
          "expected_part",
          "supply_part",
          "teardown_inventory_code",
          "teardown_manifest",
          "supply",
          "created_at",
          "updated_at"
        ]
      },
      "RepairOrderRequirementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "actions",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "RepairOrderRequirementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "told_vendor",
          "waived_at",
          "waiver_note",
          "requirement",
          "sales_order",
          "part",
          "condition",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "RepairOrderStageField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "status",
          "time_tracking",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "RepairOrderStageListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "status",
          "time_tracking",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "RepairServiceAnswerField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace_repair_service",
          "repair_service",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RepairServiceAnswerListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace_repair_service",
          "repair_service",
          "created_at",
          "updated_at"
        ]
      },
      "RepairServiceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "default_condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RepairServiceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "default_condition",
          "created_at",
          "updated_at"
        ]
      },
      "RepairServiceListingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "repair_service",
          "marketplace_repair_service",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RepairServiceListingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "marketplace",
          "repair_service",
          "marketplace_repair_service",
          "created_at",
          "updated_at"
        ]
      },
      "RequirementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "step",
          "received_on",
          "kind",
          "fact",
          "minimum_shelf_life_percent",
          "enforcement",
          "every_order",
          "instructions",
          "inactive_at",
          "upload_category",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RequirementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "step",
          "received_on",
          "kind",
          "fact",
          "minimum_shelf_life_percent",
          "enforcement",
          "every_order",
          "instructions",
          "inactive_at",
          "upload_category",
          "created_at",
          "updated_at"
        ]
      },
      "RfqReadingLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number",
          "alternate_part_numbers",
          "quantity",
          "conditions",
          "part_description",
          "need_by",
          "customer_comment",
          "services",
          "requested_types",
          "tag_types",
          "part",
          "created_at",
          "updated_at"
        ]
      },
      "RfqReadingLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number",
          "alternate_part_numbers",
          "quantity",
          "conditions",
          "part_description",
          "need_by",
          "customer_comment",
          "services",
          "requested_types",
          "tag_types",
          "part",
          "created_at",
          "updated_at"
        ]
      },
      "RoleField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "seed",
          "grants",
          "standard",
          "member_count",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "RoleListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "seed",
          "grants",
          "standard",
          "member_count",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "SalesOrderField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "priority",
          "customer_po_number",
          "currency_code",
          "billing_party",
          "auto_charge_credit_card_fee",
          "auto_charge_wire_transfer_fee",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "paid_cents",
          "awaiting_prepayment",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "fulfillment_status",
          "billing_status",
          "on_hold",
          "contact_email_address",
          "repeated_po_orders",
          "earliest_open_promise_on",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "customer",
          "drop_ship_company",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "tax_destination",
          "customer_quote",
          "organization",
          "open_receipt",
          "created_at",
          "updated_at",
          "actions",
          "lines.object",
          "lines.uuid",
          "lines.kind",
          "lines.position",
          "lines.part_number_raw",
          "lines.part_description",
          "lines.description",
          "lines.unit_price_cents",
          "lines.home_unit_cost_cents",
          "lines.external_notes",
          "lines.internal_notes",
          "lines.customer_reference",
          "lines.customer_reference_line",
          "lines.staged",
          "lines.shipped",
          "lines.quantity_shipped",
          "lines.quantity",
          "lines.quantity_allocated",
          "lines.quantity_remaining",
          "lines.quantity_returnable",
          "lines.part_quantity_available",
          "lines.priority",
          "lines.warranty_days",
          "lines.source_fields",
          "lines.request_type",
          "lines.line_total_cents",
          "lines.tax_cents",
          "lines.tax_label",
          "lines.taxes",
          "lines.currency_code",
          "lines.order_status",
          "lines.quoted_serial_number",
          "lines.need_by",
          "lines.initial_promise_on",
          "lines.updated_promise_on",
          "lines.promised_on",
          "lines.period_starts_on",
          "lines.period_ends_on",
          "lines.sales_order",
          "lines.customer",
          "lines.part",
          "lines.charge",
          "lines.condition",
          "lines.purchase_order_line",
          "lines.purchase_order",
          "lines.customer_quote_line",
          "lines.customer_quote",
          "lines.combined_tax_rate",
          "lines.billed_lease",
          "lines.sourcing_request",
          "lines.tax_origins",
          "lines.exchange",
          "lines.lease",
          "lines.repair",
          "lines.created_at",
          "lines.updated_at",
          "lines.allocations.object",
          "lines.allocations.uuid",
          "lines.allocations.unit_cost_cents",
          "lines.allocations.currency_code",
          "lines.allocations.quantity",
          "lines.allocations.status",
          "lines.allocations.shippable",
          "lines.allocations.consumed_at",
          "lines.allocations.serial_number",
          "lines.allocations.trace_type",
          "lines.allocations.trace_source",
          "lines.allocations.tag_number",
          "lines.allocations.certificate_number",
          "lines.allocations.tagged_by_raw",
          "lines.allocations.tag_types",
          "lines.allocations.serial_missing",
          "lines.allocations.tagged_on",
          "lines.allocations.issued_unit_cost_cents",
          "lines.allocations.line_position",
          "lines.allocations.part_description",
          "lines.allocations.demand_part_number",
          "lines.allocations.inventory_kind",
          "lines.allocations.custody_reason",
          "lines.allocations.condition_code",
          "lines.allocations.shipped_part_number",
          "lines.allocations.alternate_kind",
          "lines.allocations.alternate_interchangeability",
          "lines.allocations.alternate_direction",
          "lines.allocations.customer_po_number",
          "lines.allocations.order_line_position",
          "lines.allocations.tagged_by",
          "lines.allocations.demand",
          "lines.allocations.supply",
          "lines.allocations.release",
          "lines.allocations.part",
          "lines.allocations.condition",
          "lines.allocations.purchase_order",
          "lines.allocations.repair_order",
          "lines.allocations.inventory_code",
          "lines.allocations.owner_company",
          "lines.allocations.creator",
          "lines.allocations.ordered_part",
          "lines.allocations.demand_order",
          "lines.allocations.counterparty",
          "lines.allocations.order_line",
          "lines.allocations.created_at",
          "lines.allocations.updated_at",
          "holds.object",
          "holds.uuid",
          "holds.note",
          "holds.kind",
          "holds.label",
          "holds.placed_by_hand",
          "holds.lifted_at",
          "holds.placed_by",
          "holds.lifted_by",
          "holds.created_at",
          "holds.updated_at",
          "requirements.object",
          "requirements.uuid",
          "requirements.source",
          "requirements.met",
          "requirements.state",
          "requirements.waived_at",
          "requirements.waiver_note",
          "requirements.requirement",
          "requirements.purchase_orders",
          "requirements.repair_orders",
          "requirements.added_by",
          "requirements.waived_by",
          "requirements.created_at",
          "requirements.updated_at"
        ]
      },
      "SalesOrderListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "priority",
          "customer_po_number",
          "currency_code",
          "billing_party",
          "auto_charge_credit_card_fee",
          "auto_charge_wire_transfer_fee",
          "internal_notes",
          "external_notes",
          "customer_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "trashed_at",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "total_cents",
          "home_total_cents",
          "tax_cents",
          "home_tax_cents",
          "grand_total_cents",
          "paid_cents",
          "awaiting_prepayment",
          "tax_applies",
          "tax_destination_source",
          "tax_suppressed",
          "tax_exemption",
          "fulfillment_status",
          "billing_status",
          "on_hold",
          "contact_email_address",
          "repeated_po_orders",
          "earliest_open_promise_on",
          "migration_hold",
          "source_fields",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "customer",
          "drop_ship_company",
          "contact",
          "salesperson",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "freight_account",
          "tax_destination",
          "customer_quote",
          "organization",
          "open_receipt",
          "created_at",
          "updated_at"
        ]
      },
      "SalesOrderHoldField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SalesOrderHoldListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at"
        ]
      },
      "SalesOrderLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "external_notes",
          "internal_notes",
          "customer_reference",
          "customer_reference_line",
          "staged",
          "shipped",
          "quantity_shipped",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_returnable",
          "part_quantity_available",
          "priority",
          "warranty_days",
          "source_fields",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "currency_code",
          "order_status",
          "quoted_serial_number",
          "need_by",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "period_starts_on",
          "period_ends_on",
          "sales_order",
          "customer",
          "part",
          "charge",
          "condition",
          "purchase_order_line",
          "purchase_order",
          "customer_quote_line",
          "customer_quote",
          "combined_tax_rate",
          "billed_lease",
          "sourcing_request",
          "tax_origins",
          "exchange",
          "lease",
          "repair",
          "created_at",
          "updated_at",
          "actions",
          "allocations.object",
          "allocations.uuid",
          "allocations.unit_cost_cents",
          "allocations.currency_code",
          "allocations.quantity",
          "allocations.status",
          "allocations.shippable",
          "allocations.consumed_at",
          "allocations.serial_number",
          "allocations.trace_type",
          "allocations.trace_source",
          "allocations.tag_number",
          "allocations.certificate_number",
          "allocations.tagged_by_raw",
          "allocations.tag_types",
          "allocations.serial_missing",
          "allocations.tagged_on",
          "allocations.issued_unit_cost_cents",
          "allocations.line_position",
          "allocations.part_description",
          "allocations.demand_part_number",
          "allocations.inventory_kind",
          "allocations.custody_reason",
          "allocations.condition_code",
          "allocations.shipped_part_number",
          "allocations.alternate_kind",
          "allocations.alternate_interchangeability",
          "allocations.alternate_direction",
          "allocations.customer_po_number",
          "allocations.order_line_position",
          "allocations.tagged_by",
          "allocations.demand",
          "allocations.supply",
          "allocations.release",
          "allocations.part",
          "allocations.condition",
          "allocations.purchase_order",
          "allocations.repair_order",
          "allocations.inventory_code",
          "allocations.owner_company",
          "allocations.creator",
          "allocations.ordered_part",
          "allocations.demand_order",
          "allocations.counterparty",
          "allocations.order_line",
          "allocations.created_at",
          "allocations.updated_at"
        ]
      },
      "SalesOrderLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "unit_price_cents",
          "home_unit_cost_cents",
          "external_notes",
          "internal_notes",
          "customer_reference",
          "customer_reference_line",
          "staged",
          "shipped",
          "quantity_shipped",
          "quantity",
          "quantity_allocated",
          "quantity_remaining",
          "quantity_returnable",
          "part_quantity_available",
          "priority",
          "warranty_days",
          "source_fields",
          "request_type",
          "line_total_cents",
          "tax_cents",
          "tax_label",
          "taxes",
          "currency_code",
          "order_status",
          "quoted_serial_number",
          "need_by",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "period_starts_on",
          "period_ends_on",
          "sales_order",
          "customer",
          "part",
          "charge",
          "condition",
          "purchase_order_line",
          "purchase_order",
          "customer_quote_line",
          "customer_quote",
          "combined_tax_rate",
          "billed_lease",
          "sourcing_request",
          "tax_origins",
          "exchange",
          "lease",
          "repair",
          "created_at",
          "updated_at",
          "allocations.object",
          "allocations.uuid",
          "allocations.unit_cost_cents",
          "allocations.currency_code",
          "allocations.quantity",
          "allocations.status",
          "allocations.shippable",
          "allocations.consumed_at",
          "allocations.serial_number",
          "allocations.trace_type",
          "allocations.trace_source",
          "allocations.tag_number",
          "allocations.certificate_number",
          "allocations.tagged_by_raw",
          "allocations.tag_types",
          "allocations.serial_missing",
          "allocations.tagged_on",
          "allocations.issued_unit_cost_cents",
          "allocations.line_position",
          "allocations.part_description",
          "allocations.demand_part_number",
          "allocations.inventory_kind",
          "allocations.custody_reason",
          "allocations.condition_code",
          "allocations.shipped_part_number",
          "allocations.alternate_kind",
          "allocations.alternate_interchangeability",
          "allocations.alternate_direction",
          "allocations.customer_po_number",
          "allocations.order_line_position",
          "allocations.tagged_by",
          "allocations.demand",
          "allocations.supply",
          "allocations.release",
          "allocations.part",
          "allocations.condition",
          "allocations.purchase_order",
          "allocations.repair_order",
          "allocations.inventory_code",
          "allocations.owner_company",
          "allocations.creator",
          "allocations.ordered_part",
          "allocations.demand_order",
          "allocations.counterparty",
          "allocations.order_line",
          "allocations.created_at",
          "allocations.updated_at"
        ]
      },
      "SalesOrderRequirementField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "waived_at",
          "waiver_note",
          "requirement",
          "purchase_orders",
          "repair_orders",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "actions",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "SalesOrderRequirementListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "source",
          "met",
          "state",
          "waived_at",
          "waiver_note",
          "requirement",
          "purchase_orders",
          "repair_orders",
          "added_by",
          "waived_by",
          "created_at",
          "updated_at",
          "requirement.object",
          "requirement.uuid",
          "requirement.name",
          "requirement.step",
          "requirement.received_on",
          "requirement.kind",
          "requirement.fact",
          "requirement.minimum_shelf_life_percent",
          "requirement.enforcement",
          "requirement.every_order",
          "requirement.instructions",
          "requirement.inactive_at",
          "requirement.upload_category",
          "requirement.created_at",
          "requirement.updated_at"
        ]
      },
      "SalesforceIntegrationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "connected",
          "instance_url",
          "client_id",
          "org_id",
          "org_name",
          "org_edition",
          "sandbox",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "sign_in_refusal",
          "run_as_name",
          "run_as_username",
          "run_as_profile_name",
          "checking",
          "check_step",
          "check_refusal",
          "last_pulled_at",
          "streams_stopped_short_count",
          "pull_interval_minutes",
          "pull_interval_reason",
          "pull_interval_override_minutes",
          "api_calls_in_last_day",
          "api_budget",
          "api_budget_override",
          "api_budget_default",
          "api_budget_default_rule",
          "org_api_requests_used",
          "org_api_requests_max",
          "org_api_read_at",
          "org_api_ceiling",
          "org_api_ceiling_percent",
          "api_pause",
          "external_system",
          "avsight",
          "actions",
          "avsight.object",
          "avsight.uuid",
          "avsight.version",
          "avsight.version_refusal",
          "avsight.read_refusal",
          "avsight.inactive_at",
          "avsight.fields_checked_at",
          "avsight.fields_refusal",
          "avsight.records_checked_at",
          "avsight.system_of_record_switched_at",
          "avsight.sends_declined_quotes",
          "avsight.reads_quoting_only",
          "avsight.created_at",
          "avsight.updated_at"
        ]
      },
      "SalesforceIntegrationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "connected",
          "instance_url",
          "client_id",
          "org_id",
          "org_name",
          "org_edition",
          "sandbox",
          "connected_at",
          "disconnected_at",
          "signed_out_at",
          "sign_in_refusal",
          "run_as_name",
          "run_as_username",
          "run_as_profile_name",
          "checking",
          "check_step",
          "check_refusal",
          "last_pulled_at",
          "streams_stopped_short_count",
          "pull_interval_minutes",
          "pull_interval_reason",
          "pull_interval_override_minutes",
          "api_calls_in_last_day",
          "api_budget",
          "api_budget_override",
          "api_budget_default",
          "api_budget_default_rule",
          "org_api_requests_used",
          "org_api_requests_max",
          "org_api_read_at",
          "org_api_ceiling",
          "org_api_ceiling_percent",
          "api_pause",
          "external_system",
          "avsight",
          "avsight.object",
          "avsight.uuid",
          "avsight.version",
          "avsight.version_refusal",
          "avsight.read_refusal",
          "avsight.inactive_at",
          "avsight.fields_checked_at",
          "avsight.fields_refusal",
          "avsight.records_checked_at",
          "avsight.system_of_record_switched_at",
          "avsight.sends_declined_quotes",
          "avsight.reads_quoting_only",
          "avsight.created_at",
          "avsight.updated_at"
        ]
      },
      "SalespersonField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "away_until",
          "has_avatar",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SalespersonListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "away_until",
          "has_avatar",
          "inactive_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "SalespersonTallyField": {
        "type": "string",
        "enum": [
          "object",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate",
          "average_response_hours",
          "salesperson"
        ]
      },
      "SalespersonTallyListField": {
        "type": "string",
        "enum": [
          "object",
          "label",
          "requests",
          "quoted",
          "no_quote",
          "sent",
          "won",
          "lost",
          "open",
          "win_rate",
          "average_response_hours",
          "salesperson"
        ]
      },
      "SendingAddressField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "email_address",
          "display_name",
          "confirmed_at",
          "code_sent_at",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SendingAddressListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "email_address",
          "display_name",
          "confirmed_at",
          "code_sent_at",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "SendingDomainField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "domain",
          "state",
          "sendable",
          "dmarc_policy",
          "records",
          "checked_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SendingDomainListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "domain",
          "state",
          "sendable",
          "dmarc_policy",
          "records",
          "checked_at",
          "created_at",
          "updated_at"
        ]
      },
      "SessionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "browser",
          "ip_address",
          "authenticated_via",
          "current",
          "last_active_at",
          "created_at",
          "updated_at"
        ]
      },
      "SessionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "browser",
          "ip_address",
          "authenticated_via",
          "current",
          "last_active_at",
          "created_at",
          "updated_at"
        ]
      },
      "ShareField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "title",
          "message",
          "expires_on",
          "revoked_at",
          "documents_stale",
          "links",
          "record",
          "creator",
          "revoked_by",
          "created_at",
          "updated_at",
          "actions",
          "recipients.object",
          "recipients.uuid",
          "recipients.name",
          "recipients.email_address",
          "recipients.state",
          "recipients.expires_on",
          "recipients.verified_at",
          "recipients.last_opened_at",
          "recipients.revoked_at",
          "recipients.link",
          "recipients.files_count",
          "recipients.file_names",
          "recipients.downloads_count",
          "recipients.shared_from",
          "recipients.share",
          "recipients.record",
          "recipients.contact",
          "recipients.company",
          "recipients.shared_by",
          "recipients.created_at",
          "recipients.updated_at"
        ]
      },
      "ShareListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "title",
          "message",
          "expires_on",
          "revoked_at",
          "documents_stale",
          "links",
          "record",
          "creator",
          "revoked_by",
          "created_at",
          "updated_at",
          "recipients.object",
          "recipients.uuid",
          "recipients.name",
          "recipients.email_address",
          "recipients.state",
          "recipients.expires_on",
          "recipients.verified_at",
          "recipients.last_opened_at",
          "recipients.revoked_at",
          "recipients.link",
          "recipients.files_count",
          "recipients.file_names",
          "recipients.downloads_count",
          "recipients.shared_from",
          "recipients.share",
          "recipients.record",
          "recipients.contact",
          "recipients.company",
          "recipients.shared_by",
          "recipients.created_at",
          "recipients.updated_at"
        ]
      },
      "ShareFileField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "heading",
          "position",
          "pending",
          "removed_at",
          "version",
          "share",
          "upload",
          "document",
          "source",
          "removed_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ShareFileListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "heading",
          "position",
          "pending",
          "removed_at",
          "version",
          "share",
          "upload",
          "document",
          "source",
          "removed_by",
          "created_at",
          "updated_at"
        ]
      },
      "ShareRecipientField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "email_address",
          "state",
          "expires_on",
          "verified_at",
          "last_opened_at",
          "revoked_at",
          "link",
          "files_count",
          "file_names",
          "downloads_count",
          "shared_from",
          "share",
          "record",
          "contact",
          "company",
          "shared_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ShareRecipientListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "email_address",
          "state",
          "expires_on",
          "verified_at",
          "last_opened_at",
          "revoked_at",
          "link",
          "files_count",
          "file_names",
          "downloads_count",
          "shared_from",
          "share",
          "record",
          "contact",
          "company",
          "shared_by",
          "created_at",
          "updated_at"
        ]
      },
      "ShareViewField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "ip_address",
          "user_agent",
          "share_recipient",
          "share_file",
          "created_at",
          "updated_at"
        ]
      },
      "ShareViewListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "ip_address",
          "user_agent",
          "share_recipient",
          "share_file",
          "created_at",
          "updated_at"
        ]
      },
      "ShareableFileField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "preselected",
          "category",
          "byte_size",
          "content_type",
          "version",
          "document_version",
          "rendered_at",
          "source",
          "upload",
          "document"
        ]
      },
      "ShareableFileListField": {
        "type": "string",
        "enum": [
          "object",
          "kind",
          "heading",
          "name",
          "form",
          "preselected",
          "category",
          "byte_size",
          "content_type",
          "version",
          "document_version",
          "rendered_at",
          "source",
          "upload",
          "document"
        ]
      },
      "ShipViaField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "mode",
          "international",
          "inactive_at",
          "carrier",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ShipViaListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "mode",
          "international",
          "inactive_at",
          "carrier",
          "created_at",
          "updated_at"
        ]
      },
      "ShortcutField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "url",
          "position",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ShortcutListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "title",
          "url",
          "position",
          "created_at",
          "updated_at"
        ]
      },
      "SkillField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inspection_approved",
          "excluded_from_assigned_hours",
          "burden_rate_cents",
          "bill_rate_cents",
          "currency_code",
          "inactive_at",
          "ledger_account",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SkillListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inspection_approved",
          "excluded_from_assigned_hours",
          "burden_rate_cents",
          "bill_rate_cents",
          "currency_code",
          "inactive_at",
          "ledger_account",
          "created_at",
          "updated_at"
        ]
      },
      "SmartListingField": {
        "type": "string",
        "enum": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "refresh_refusal"
        ]
      },
      "SmartListingListField": {
        "type": "string",
        "enum": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "refresh_refusal"
        ]
      },
      "SmartQuotingField": {
        "type": "string",
        "enum": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "intake_addresses",
          "emails_this_month",
          "model_limit_used_percent"
        ]
      },
      "SmartQuotingListField": {
        "type": "string",
        "enum": [
          "object",
          "name",
          "standing",
          "starts_on",
          "ends_on",
          "intake_addresses",
          "emails_this_month",
          "model_limit_used_percent"
        ]
      },
      "SourcingRequestField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number_raw",
          "description",
          "priority",
          "internal_notes",
          "identifier",
          "need_by",
          "closed_at",
          "trashed_at",
          "states",
          "status",
          "quantity",
          "quantity_ordered",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "vendors_asked",
          "quotes_received",
          "part_description",
          "asked_count",
          "quoted_count",
          "declined_count",
          "awaiting_count",
          "sent_rfq_count",
          "awaited_elsewhere_rfq_count",
          "orderable_quotes",
          "migration_hold",
          "demand",
          "part",
          "conditions",
          "origin",
          "draft_rfqs",
          "purchase_orders",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "SourcingRequestListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_number_raw",
          "description",
          "priority",
          "internal_notes",
          "identifier",
          "need_by",
          "closed_at",
          "trashed_at",
          "states",
          "status",
          "quantity",
          "quantity_ordered",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "vendors_asked",
          "quotes_received",
          "part_description",
          "asked_count",
          "quoted_count",
          "declined_count",
          "awaiting_count",
          "sent_rfq_count",
          "awaited_elsewhere_rfq_count",
          "orderable_quotes",
          "migration_hold",
          "demand",
          "part",
          "conditions",
          "origin",
          "draft_rfqs",
          "purchase_orders",
          "created_at",
          "updated_at"
        ]
      },
      "SupportAccessField": {
        "type": "string",
        "enum": [
          "object",
          "turned_off_at",
          "actions"
        ]
      },
      "SupportAccessListField": {
        "type": "string",
        "enum": [
          "object",
          "turned_off_at"
        ]
      },
      "SupportMessengerField": {
        "type": "string",
        "enum": [
          "object",
          "app_id",
          "api_base",
          "token",
          "expires_at"
        ]
      },
      "SupportMessengerListField": {
        "type": "string",
        "enum": [
          "object",
          "app_id",
          "api_base",
          "token",
          "expires_at"
        ]
      },
      "SupportSessionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "reason",
          "ended_at",
          "changes_first_allowed_at",
          "token_issued_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "SupportSessionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "reason",
          "ended_at",
          "changes_first_allowed_at",
          "token_issued_at",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "TaxCategoryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "TaxCategoryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "TaxDestinationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "country_code",
          "region",
          "description",
          "inactive_at",
          "jurisdiction",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "TaxDestinationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "country_code",
          "region",
          "description",
          "inactive_at",
          "jurisdiction",
          "created_at",
          "updated_at"
        ]
      },
      "TaxOriginField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "TaxOriginListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "description",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "TeamField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "memberships",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "TeamListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "inactive_at",
          "memberships",
          "created_at",
          "updated_at"
        ]
      },
      "TimeZoneField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "TimeZoneListField": {
        "type": "string",
        "enum": [
          "object",
          "code",
          "name"
        ]
      },
      "TriageRuleField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "triage_action",
          "keeps_from_autoquote",
          "sender_domains",
          "countries",
          "priorities",
          "channels",
          "organization_code",
          "inactive_at",
          "organization",
          "archive_reason",
          "no_quote_reason",
          "customers",
          "salespeople",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "TriageRuleListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "triage_action",
          "keeps_from_autoquote",
          "sender_domains",
          "countries",
          "priorities",
          "channels",
          "organization_code",
          "inactive_at",
          "organization",
          "archive_reason",
          "no_quote_reason",
          "customers",
          "salespeople",
          "created_at",
          "updated_at"
        ]
      },
      "UnreadSheetRowField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sheet",
          "row",
          "reasons",
          "left_out",
          "reread",
          "ruling",
          "message_file",
          "created_at",
          "updated_at"
        ]
      },
      "UnreadSheetRowListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sheet",
          "row",
          "reasons",
          "left_out",
          "reread",
          "ruling",
          "message_file",
          "created_at",
          "updated_at"
        ]
      },
      "UploadCategoryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "UploadCategoryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "UploadField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "generated",
          "byte_size",
          "content_type",
          "version",
          "file_filename",
          "attachments_count",
          "thumbnailed",
          "trashed_at",
          "category",
          "creator",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "UploadListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "description",
          "generated",
          "byte_size",
          "content_type",
          "version",
          "file_filename",
          "attachments_count",
          "thumbnailed",
          "trashed_at",
          "category",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "VendorCapabilityField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "vendor",
          "part",
          "repair_service",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorCapabilityListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "inactive_at",
          "vendor",
          "part",
          "repair_service",
          "created_at",
          "updated_at"
        ]
      },
      "VendorCertificateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "approval_basis",
          "expired",
          "scan_count",
          "certificate_standard",
          "vendor",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorCertificateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "certificate_number",
          "inactive_at",
          "effective_on",
          "expires_on",
          "approval_basis",
          "expired",
          "scan_count",
          "certificate_standard",
          "vendor",
          "created_at",
          "updated_at"
        ]
      },
      "VendorField": {
        "type": "string",
        "enum": [
          "object",
          "currency_code",
          "approval_status",
          "approved_at",
          "approved_for",
          "approved_until",
          "approval_state",
          "approval_lapses_on",
          "approvable",
          "export_control",
          "track_1099",
          "default_notes_to_shop",
          "inactive_at",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "approver",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "VendorListField": {
        "type": "string",
        "enum": [
          "object",
          "currency_code",
          "approval_status",
          "approved_at",
          "approved_for",
          "approved_until",
          "approval_state",
          "approval_lapses_on",
          "approvable",
          "export_control",
          "track_1099",
          "default_notes_to_shop",
          "inactive_at",
          "payment_term",
          "preferred_ship_via",
          "default_freight_account",
          "approver",
          "clause",
          "requirements",
          "quickbooks_assignment",
          "created_at",
          "updated_at"
        ]
      },
      "VendorEmailTemplatePreferencesField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "VendorEmailTemplatePreferencesListField": {
        "type": "string",
        "enum": [
          "object",
          "choices"
        ]
      },
      "VendorExchangeField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "identifier",
          "received_at",
          "core_due_on",
          "core_shipped_at",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_bought",
          "quantity_outstanding",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "expected_core_condition",
          "part_number",
          "purchase_order_line",
          "document_forms",
          "expected_core_part",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorExchangeListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "core_charge_cents",
          "core_due_days",
          "expected_core_part_number",
          "identifier",
          "received_at",
          "core_due_on",
          "core_shipped_at",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_bought",
          "quantity_outstanding",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "expected_core_condition",
          "part_number",
          "purchase_order_line",
          "document_forms",
          "expected_core_part",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "VendorInventoryLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "request_type",
          "serial_number",
          "effective_on",
          "expires_on",
          "current",
          "part_description",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorInventoryLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "request_type",
          "serial_number",
          "effective_on",
          "expires_on",
          "current",
          "part_description",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "VendorLeaseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "started_on",
          "due_back_on",
          "shipped_back_on",
          "charged_through_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "uncharged_days",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_bought",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "purchase_order_line",
          "document_forms",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorLeaseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "internal_notes",
          "external_notes",
          "rate_cents",
          "lease_rate_unit",
          "lease_minimum_days",
          "lease_included_hours",
          "lease_included_cycles",
          "lease_hour_fee_cents",
          "lease_cycle_fee_cents",
          "lease_outright_price_cents",
          "lease_due_days",
          "started_on",
          "due_back_on",
          "shipped_back_on",
          "charged_through_on",
          "next_period_starts_on",
          "next_period_ends_on",
          "uncharged_days",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "quantity_owed",
          "quantity_allocated",
          "quantity_shipped",
          "quantity_outstanding",
          "quantity_bought",
          "quantity_remaining",
          "currency_code",
          "currency_exponent",
          "purchase_order_line",
          "document_forms",
          "purchase_order",
          "vendor",
          "part",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "VendorPartPriceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "lead_time",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorPartPriceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "unit_cost_cents",
          "currency_code",
          "home_unit_cost_cents",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "source_fields",
          "organization",
          "vendor",
          "part",
          "condition",
          "lead_time",
          "created_at",
          "updated_at"
        ]
      },
      "VendorPaymentField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "vendor",
          "purchase_order",
          "source",
          "voided_by",
          "creator",
          "created_at",
          "updated_at",
          "actions",
          "applications.object",
          "applications.uuid",
          "applications.kind",
          "applications.status",
          "applications.applied_on",
          "applications.amount_cents",
          "applications.currency_code",
          "applications.reference",
          "applications.voided_at",
          "applications.migration_hold",
          "applications.payment",
          "applications.credit",
          "applications.bill",
          "applications.creator",
          "applications.voided_by",
          "applications.created_at",
          "applications.updated_at"
        ]
      },
      "VendorPaymentListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "amount_cents",
          "unapplied_cents",
          "applied_cents",
          "applied_to",
          "kind",
          "reference",
          "paid_on",
          "voided_at",
          "migration_hold",
          "held_by_trash",
          "currency_code",
          "vendor",
          "purchase_order",
          "source",
          "voided_by",
          "creator",
          "created_at",
          "updated_at",
          "applications.object",
          "applications.uuid",
          "applications.kind",
          "applications.status",
          "applications.applied_on",
          "applications.amount_cents",
          "applications.currency_code",
          "applications.reference",
          "applications.voided_at",
          "applications.migration_hold",
          "applications.payment",
          "applications.credit",
          "applications.bill",
          "applications.creator",
          "applications.voided_by",
          "applications.created_at",
          "applications.updated_at"
        ]
      },
      "VendorQuoteLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "unit_cost_cents",
          "request_type",
          "core_charge_cents",
          "core_due_days",
          "vendor_remarks",
          "no_quote",
          "tagged_by_raw",
          "serial_number",
          "home_unit_cost_cents",
          "quantity",
          "minimum_quantity",
          "line_total_cents",
          "answered_at",
          "tagged_on",
          "date_of_manufacture",
          "vendor_rfq_valid_until",
          "vendor_rfq_expired",
          "vendor_rfq_status",
          "response",
          "vendor_approval",
          "vendor_approval_refusal",
          "currency_code",
          "currency_exponent",
          "tagged_by",
          "vendor_rfq",
          "vendor",
          "part",
          "charge",
          "condition",
          "lead_time",
          "vendor_rfq_line",
          "purchase_order",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorQuoteLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "kind",
          "position",
          "part_number_raw",
          "description",
          "part_description",
          "unit_cost_cents",
          "request_type",
          "core_charge_cents",
          "core_due_days",
          "vendor_remarks",
          "no_quote",
          "tagged_by_raw",
          "serial_number",
          "home_unit_cost_cents",
          "quantity",
          "minimum_quantity",
          "line_total_cents",
          "answered_at",
          "tagged_on",
          "date_of_manufacture",
          "vendor_rfq_valid_until",
          "vendor_rfq_expired",
          "vendor_rfq_status",
          "response",
          "vendor_approval",
          "vendor_approval_refusal",
          "currency_code",
          "currency_exponent",
          "tagged_by",
          "vendor_rfq",
          "vendor",
          "part",
          "charge",
          "condition",
          "lead_time",
          "vendor_rfq_line",
          "purchase_order",
          "created_at",
          "updated_at"
        ]
      },
      "VendorRepairPriceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "non_oem_allowance",
          "unit_cost_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "organization",
          "vendor",
          "part",
          "repair_service",
          "condition",
          "lead_time",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorRepairPriceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "non_oem_allowance",
          "unit_cost_cents",
          "currency_code",
          "currency_exponent",
          "minimum_quantity",
          "effective_from",
          "effective_until",
          "notes",
          "part_description",
          "reason",
          "inactive_at",
          "organization",
          "vendor",
          "part",
          "repair_service",
          "condition",
          "lead_time",
          "created_at",
          "updated_at"
        ]
      },
      "VendorReturnField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "consignment",
          "quantity_creditable",
          "creditable_cents",
          "currency_code",
          "currency_exponent",
          "line_count",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "credit_count",
          "migration_hold",
          "document_forms",
          "purchase_order",
          "vendor",
          "credit",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorReturnListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "internal_notes",
          "external_notes",
          "identifier",
          "trashed_at",
          "closed_at",
          "cancelled_at",
          "consignment",
          "quantity_creditable",
          "creditable_cents",
          "currency_code",
          "currency_exponent",
          "line_count",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "credit_count",
          "migration_hold",
          "document_forms",
          "purchase_order",
          "vendor",
          "credit",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "VendorReturnLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "condition_code",
          "serial_number",
          "releases",
          "vendor_return",
          "receipt_line",
          "part",
          "inventory_line",
          "receipt",
          "rejection",
          "created_at",
          "updated_at"
        ]
      },
      "VendorReturnLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "quantity_shipped",
          "quantity_outstanding",
          "part_number",
          "part_description",
          "condition_code",
          "serial_number",
          "releases",
          "vendor_return",
          "receipt_line",
          "part",
          "inventory_line",
          "receipt",
          "rejection",
          "created_at",
          "updated_at"
        ]
      },
      "VendorRfqField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "reference",
          "currency_code",
          "vendor_quote_number",
          "internal_notes",
          "external_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "need_by",
          "valid_until",
          "trashed_at",
          "sent_at",
          "closed_at",
          "cancelled_at",
          "states",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "editable",
          "currency_locked",
          "contact_email_address",
          "quantity_requested",
          "quantity_quoted",
          "line_count",
          "quote_line_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "quote_lines_aligned_to_requests",
          "orderable",
          "total_cents",
          "home_total_cents",
          "priority",
          "contingent_core_charge_cents",
          "sourcing_requests",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "organization",
          "sourced_for",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorRfqListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "reference",
          "currency_code",
          "vendor_quote_number",
          "internal_notes",
          "external_notes",
          "contact_name_raw",
          "contact_email_address_raw",
          "identifier",
          "need_by",
          "valid_until",
          "trashed_at",
          "sent_at",
          "closed_at",
          "cancelled_at",
          "states",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "editable",
          "currency_locked",
          "contact_email_address",
          "quantity_requested",
          "quantity_quoted",
          "line_count",
          "quote_line_count",
          "unanswered_count",
          "unpriced_count",
          "unrequested_count",
          "quote_lines_aligned_to_requests",
          "orderable",
          "total_cents",
          "home_total_cents",
          "priority",
          "contingent_core_charge_cents",
          "sourcing_requests",
          "migration_hold",
          "document_forms",
          "ship_to_address",
          "bill_to_address",
          "default_email_to",
          "default_email_subject",
          "default_email_body",
          "troubled_email",
          "vendor",
          "contact",
          "payment_term",
          "freight_term",
          "clause",
          "ship_via",
          "organization",
          "sourced_for",
          "created_at",
          "updated_at"
        ]
      },
      "VendorRfqLineField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "external_notes",
          "internal_notes",
          "priority",
          "requested_types",
          "quantity",
          "need_by",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "vendor_rfq",
          "part",
          "conditions",
          "sourcing_request",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VendorRfqLineListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "part_number_raw",
          "part_description",
          "description",
          "external_notes",
          "internal_notes",
          "priority",
          "requested_types",
          "quantity",
          "need_by",
          "reference",
          "sourcing_request_closed",
          "response",
          "line_count",
          "vendor_rfq",
          "part",
          "conditions",
          "sourcing_request",
          "created_at",
          "updated_at"
        ]
      },
      "ViewAudienceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "opens_first",
          "view",
          "team",
          "membership",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "ViewAudienceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "opens_first",
          "view",
          "team",
          "membership",
          "created_at",
          "updated_at"
        ]
      },
      "ViewField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "criteria",
          "creator",
          "created_at",
          "updated_at",
          "actions",
          "audiences.object",
          "audiences.uuid",
          "audiences.opens_first",
          "audiences.view",
          "audiences.team",
          "audiences.membership",
          "audiences.created_at",
          "audiences.updated_at"
        ]
      },
      "ViewListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "criteria",
          "creator",
          "created_at",
          "updated_at",
          "audiences.object",
          "audiences.uuid",
          "audiences.opens_first",
          "audiences.view",
          "audiences.team",
          "audiences.membership",
          "audiences.created_at",
          "audiences.updated_at"
        ]
      },
      "ViewOpeningsField": {
        "type": "string",
        "enum": [
          "object",
          "openings"
        ]
      },
      "ViewOpeningsListField": {
        "type": "string",
        "enum": [
          "object",
          "openings"
        ]
      },
      "ViewPersonalizationField": {
        "type": "string",
        "enum": [
          "object",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "opens_by_default",
          "view",
          "actions"
        ]
      },
      "ViewPersonalizationListField": {
        "type": "string",
        "enum": [
          "object",
          "resource",
          "context",
          "fields",
          "sections",
          "sort",
          "direction",
          "opens_by_default",
          "view"
        ]
      },
      "VoucherField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "invoice_number",
          "invoice_date",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "approved_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "currency_locked",
          "total_cents",
          "home_total_cents",
          "ordered_cents",
          "variance_cents",
          "charges_cents",
          "inventory_variance_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "vendor",
          "payment_term",
          "source",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VoucherListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "status",
          "invoice_number",
          "invoice_date",
          "currency_code",
          "internal_notes",
          "external_notes",
          "identifier",
          "kind",
          "editable",
          "trashed_at",
          "approved_at",
          "cancelled_at",
          "due_on",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_missing",
          "currency_locked",
          "total_cents",
          "home_total_cents",
          "ordered_cents",
          "variance_cents",
          "charges_cents",
          "inventory_variance_cents",
          "paid_cents",
          "credited_cents",
          "balance_cents",
          "settlement",
          "overdue",
          "applied_cents",
          "vendor",
          "payment_term",
          "source",
          "created_at",
          "updated_at"
        ]
      },
      "VoucherLineField": {
        "type": "string",
        "enum": [
          "object",
          "description",
          "part_number_raw",
          "unit_cost_cents",
          "ordered_unit_cost_cents",
          "tax_cents",
          "ordered_tax_cents",
          "uuid",
          "kind",
          "quantity",
          "correction",
          "line_total_cents",
          "ordered_total_cents",
          "variance_cents",
          "capitalized_into",
          "quantity_received",
          "inventory_line_protected",
          "currency_code",
          "receipt_line",
          "order_line",
          "company",
          "part",
          "charge",
          "inventory_line",
          "receipt",
          "voucher",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "VoucherLineListField": {
        "type": "string",
        "enum": [
          "object",
          "description",
          "part_number_raw",
          "unit_cost_cents",
          "ordered_unit_cost_cents",
          "tax_cents",
          "ordered_tax_cents",
          "uuid",
          "kind",
          "quantity",
          "correction",
          "line_total_cents",
          "ordered_total_cents",
          "variance_cents",
          "capitalized_into",
          "quantity_received",
          "inventory_line_protected",
          "currency_code",
          "receipt_line",
          "order_line",
          "company",
          "part",
          "charge",
          "inventory_line",
          "receipt",
          "voucher",
          "created_at",
          "updated_at"
        ]
      },
      "WarehouseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "code",
          "tool_crib",
          "migration_hold",
          "inactive_at",
          "source_fields",
          "organization",
          "facility",
          "hidden_marketplaces",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WarehouseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "code",
          "tool_crib",
          "migration_hold",
          "inactive_at",
          "source_fields",
          "organization",
          "facility",
          "hidden_marketplaces",
          "created_at",
          "updated_at"
        ]
      },
      "WarehouseWorkItemField": {
        "type": "string",
        "enum": [
          "object",
          "step",
          "kind",
          "urgency",
          "due_on",
          "line_count",
          "bins",
          "ship_refusal",
          "detail",
          "subject",
          "company",
          "open_receipt"
        ]
      },
      "WarehouseWorkItemListField": {
        "type": "string",
        "enum": [
          "object",
          "step",
          "kind",
          "urgency",
          "due_on",
          "line_count",
          "bins",
          "ship_refusal",
          "detail",
          "subject",
          "company",
          "open_receipt"
        ]
      },
      "WebhookDeliveryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "type",
          "status",
          "attempts",
          "response_status",
          "error",
          "next_attempt_at",
          "last_attempted_at",
          "delivered_at",
          "event",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WebhookDeliveryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "type",
          "status",
          "attempts",
          "response_status",
          "error",
          "next_attempt_at",
          "last_attempted_at",
          "delivered_at",
          "event",
          "created_at",
          "updated_at"
        ]
      },
      "WebhookEndpointField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "url",
          "description",
          "secret",
          "enabled_actions",
          "inactive_at",
          "creator",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WebhookEndpointListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "url",
          "description",
          "secret",
          "enabled_actions",
          "inactive_at",
          "creator",
          "created_at",
          "updated_at"
        ]
      },
      "WorkCenterField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkCenterListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "WorkInstructionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "notes",
          "status",
          "carried_forward_note",
          "completed_at",
          "environment_check",
          "max_humidity_percent",
          "humidity_percent",
          "temperature",
          "temperature_unit",
          "starts_on",
          "due_on",
          "over_limit",
          "skill_caution",
          "work_order_task",
          "skill",
          "work_station",
          "assigned_to",
          "completed_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkInstructionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "notes",
          "status",
          "carried_forward_note",
          "completed_at",
          "environment_check",
          "max_humidity_percent",
          "humidity_percent",
          "temperature",
          "temperature_unit",
          "starts_on",
          "due_on",
          "over_limit",
          "skill_caution",
          "work_order_task",
          "skill",
          "work_station",
          "assigned_to",
          "completed_by",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "work_scope",
          "deal_type",
          "work_order_type",
          "outcome",
          "part_number",
          "part_number_raw",
          "description",
          "serial_number",
          "quantity_to_repair",
          "quantity_received",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "customer_po_number",
          "customer_reference",
          "internal_notes",
          "part_markings",
          "contact_name_raw",
          "contact_email_address_raw",
          "contact_email_address",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_on",
          "spending_limit_cents",
          "home_spending_limit_cents",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "received_at",
          "evaluating_at",
          "awaiting_approval_at",
          "in_work_at",
          "awaiting_inspection_at",
          "completed_at",
          "closed_at",
          "cancelled_at",
          "trashed_at",
          "import_count",
          "export_count",
          "home_labor_wip_cents",
          "home_parts_wip_cents",
          "ship_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "publications",
          "template_caution",
          "document_forms",
          "stage",
          "next_stages",
          "customer",
          "contact",
          "open_receipt",
          "contacts",
          "part",
          "repair_service",
          "technician",
          "work_center",
          "gate",
          "default_parts_task",
          "final_condition",
          "customer_quote",
          "customer_quote_line",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at",
          "actions",
          "customer.object",
          "customer.uuid",
          "customer.name",
          "customer.trading_name",
          "customer.legal_name",
          "customer.code",
          "customer.cage_code",
          "customer.tax_id",
          "customer.website",
          "customer.phone",
          "customer.fax",
          "customer.email_address",
          "customer.notes",
          "customer.inactive_at",
          "customer.source_fields",
          "customer.roles",
          "customer.vendor_approval",
          "customer.vendor_approval_refusals",
          "customer.vendor_currency_code",
          "customer.migration_hold",
          "customer.unsent_to_avsight",
          "customer.account_owner",
          "customer.segments",
          "customer.primary_billing_address",
          "customer.primary_shipping_address",
          "customer.created_at",
          "customer.updated_at",
          "contacts.object",
          "contacts.uuid",
          "contacts.salutation",
          "contacts.first_name",
          "contacts.last_name",
          "contacts.email_address",
          "contacts.title",
          "contacts.department",
          "contacts.phone",
          "contacts.mobile",
          "contacts.fax",
          "contacts.birthdate",
          "contacts.notes",
          "contacts.primary",
          "contacts.receives_invoices",
          "contacts.receives_statements",
          "contacts.inactive_at",
          "contacts.source_fields",
          "contacts.name",
          "contacts.migration_hold",
          "contacts.unsent_to_avsight",
          "contacts.company",
          "contacts.contact_roles",
          "contacts.linked_companies",
          "contacts.created_at",
          "contacts.updated_at",
          "holds.object",
          "holds.uuid",
          "holds.note",
          "holds.kind",
          "holds.label",
          "holds.placed_by_hand",
          "holds.placed_by_credit_limit",
          "holds.lifted_at",
          "holds.placed_by",
          "holds.lifted_by",
          "holds.created_at",
          "holds.updated_at",
          "findings.object",
          "findings.uuid",
          "findings.position",
          "findings.description",
          "findings.necessity",
          "findings.in_scope",
          "findings.corrective_action",
          "findings.resolved",
          "findings.work_order",
          "findings.raised_from_task",
          "findings.created_at",
          "findings.updated_at",
          "tasks.object",
          "tasks.uuid",
          "tasks.sequence",
          "tasks.name",
          "tasks.instructions",
          "tasks.task_type",
          "tasks.work_scope",
          "tasks.status",
          "tasks.approval_status",
          "tasks.billing_type",
          "tasks.summary",
          "tasks.percent_complete",
          "tasks.independent_inspection",
          "tasks.der_repair",
          "tasks.skills",
          "tasks.publication_caution",
          "tasks.started_at",
          "tasks.completed_at",
          "tasks.cancelled_at",
          "tasks.cancellation_note",
          "tasks.labor_hours",
          "tasks.labor_cost_cents",
          "tasks.labor_bill_cents",
          "tasks.parts_cost_cents",
          "tasks.currency_code",
          "tasks.work_order",
          "tasks.parent",
          "tasks.generated_from",
          "tasks.finding",
          "tasks.assigned_to",
          "tasks.work_station",
          "tasks.gate",
          "tasks.publication",
          "tasks.publication_revision",
          "tasks.cancelled_by",
          "tasks.stage",
          "tasks.next_stages",
          "tasks.created_at",
          "tasks.updated_at"
        ]
      },
      "WorkOrderListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "identifier",
          "status",
          "work_scope",
          "deal_type",
          "work_order_type",
          "outcome",
          "part_number",
          "part_number_raw",
          "description",
          "serial_number",
          "quantity_to_repair",
          "quantity_received",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "customer_po_number",
          "customer_reference",
          "internal_notes",
          "part_markings",
          "contact_name_raw",
          "contact_email_address_raw",
          "contact_email_address",
          "currency_code",
          "currency_exponent",
          "home_currency_code",
          "home_currency_exponent",
          "fx_rate",
          "fx_rate_on",
          "spending_limit_cents",
          "home_spending_limit_cents",
          "initial_promise_on",
          "updated_promise_on",
          "promised_on",
          "received_at",
          "evaluating_at",
          "awaiting_approval_at",
          "in_work_at",
          "awaiting_inspection_at",
          "completed_at",
          "closed_at",
          "cancelled_at",
          "trashed_at",
          "import_count",
          "export_count",
          "home_labor_wip_cents",
          "home_parts_wip_cents",
          "ship_to_address",
          "drop_ship",
          "drop_ship_email_address",
          "drop_ship_address",
          "publications",
          "template_caution",
          "document_forms",
          "stage",
          "next_stages",
          "customer",
          "contact",
          "open_receipt",
          "contacts",
          "part",
          "repair_service",
          "technician",
          "work_center",
          "gate",
          "default_parts_task",
          "final_condition",
          "customer_quote",
          "customer_quote_line",
          "drop_ship_company",
          "organization",
          "created_at",
          "updated_at",
          "customer.object",
          "customer.uuid",
          "customer.name",
          "customer.trading_name",
          "customer.legal_name",
          "customer.code",
          "customer.cage_code",
          "customer.tax_id",
          "customer.website",
          "customer.phone",
          "customer.fax",
          "customer.email_address",
          "customer.notes",
          "customer.inactive_at",
          "customer.source_fields",
          "customer.roles",
          "customer.vendor_approval",
          "customer.vendor_approval_refusals",
          "customer.vendor_currency_code",
          "customer.migration_hold",
          "customer.unsent_to_avsight",
          "customer.account_owner",
          "customer.segments",
          "customer.primary_billing_address",
          "customer.primary_shipping_address",
          "customer.created_at",
          "customer.updated_at",
          "contacts.object",
          "contacts.uuid",
          "contacts.salutation",
          "contacts.first_name",
          "contacts.last_name",
          "contacts.email_address",
          "contacts.title",
          "contacts.department",
          "contacts.phone",
          "contacts.mobile",
          "contacts.fax",
          "contacts.birthdate",
          "contacts.notes",
          "contacts.primary",
          "contacts.receives_invoices",
          "contacts.receives_statements",
          "contacts.inactive_at",
          "contacts.source_fields",
          "contacts.name",
          "contacts.migration_hold",
          "contacts.unsent_to_avsight",
          "contacts.company",
          "contacts.contact_roles",
          "contacts.linked_companies",
          "contacts.created_at",
          "contacts.updated_at"
        ]
      },
      "WorkOrderFindingField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "description",
          "necessity",
          "in_scope",
          "corrective_action",
          "resolved",
          "work_order",
          "raised_from_task",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderFindingListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "description",
          "necessity",
          "in_scope",
          "corrective_action",
          "resolved",
          "work_order",
          "raised_from_task",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderGateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderGateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderHoldField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "placed_by_credit_limit",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderHoldListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "note",
          "kind",
          "label",
          "placed_by_hand",
          "placed_by_credit_limit",
          "lifted_at",
          "placed_by",
          "lifted_by",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderIssueField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "quantity_returned",
          "work_order_material",
          "employee",
          "inventory_line",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderIssueListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "quantity_returned",
          "work_order_material",
          "employee",
          "inventory_line",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "quantity",
          "quantity_allocated",
          "quantity_reallocatable",
          "customer_supplied",
          "optional",
          "teardown",
          "requested_reason",
          "teardown_finding",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "part_off_serial_number",
          "part_off_life_status",
          "quantity_removed",
          "pick_completed_at",
          "quantity_unused",
          "unused_reason",
          "quantity_issued",
          "quantity_returned",
          "repair_status",
          "work_order_task",
          "part",
          "condition",
          "part_off",
          "part_off_condition",
          "expected_part",
          "expected_condition",
          "unused_by",
          "picker",
          "pick_status",
          "removal_priority",
          "supply_status",
          "disposition",
          "inspection_compliance",
          "ndt_quantity_status",
          "created_at",
          "updated_at",
          "actions",
          "issues.object",
          "issues.uuid",
          "issues.quantity",
          "issues.quantity_returned",
          "issues.work_order_material",
          "issues.employee",
          "issues.inventory_line",
          "issues.created_at",
          "issues.updated_at",
          "turn_ins.object",
          "turn_ins.uuid",
          "turn_ins.quantity",
          "turn_ins.serial_number",
          "turn_ins.part_description",
          "turn_ins.findings",
          "turn_ins.teardown",
          "turn_ins.status",
          "turn_ins.cancelled_at",
          "turn_ins.work_order_material",
          "turn_ins.inventory_line",
          "turn_ins.part",
          "turn_ins.condition",
          "turn_ins.bin",
          "turn_ins.created_at",
          "turn_ins.updated_at",
          "visual_checks.object",
          "visual_checks.uuid",
          "visual_checks.findings",
          "visual_checks.work_order_material",
          "visual_checks.inventory_line",
          "visual_checks.previous_condition",
          "visual_checks.condition",
          "visual_checks.created_at",
          "visual_checks.updated_at"
        ]
      },
      "WorkOrderMaterialListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "quantity",
          "quantity_allocated",
          "quantity_reallocatable",
          "customer_supplied",
          "optional",
          "teardown",
          "requested_reason",
          "teardown_finding",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "part_off_serial_number",
          "part_off_life_status",
          "quantity_removed",
          "pick_completed_at",
          "quantity_unused",
          "unused_reason",
          "quantity_issued",
          "quantity_returned",
          "repair_status",
          "work_order_task",
          "part",
          "condition",
          "part_off",
          "part_off_condition",
          "expected_part",
          "expected_condition",
          "unused_by",
          "picker",
          "pick_status",
          "removal_priority",
          "supply_status",
          "disposition",
          "inspection_compliance",
          "ndt_quantity_status",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialDispositionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialDispositionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialInspectionComplianceField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialInspectionComplianceListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialNdtQuantityStatusField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialNdtQuantityStatusListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialPickStatusField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialPickStatusListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialRemovalPriorityField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialRemovalPriorityListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderMaterialSupplyStatusField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderMaterialSupplyStatusListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderSettingsField": {
        "type": "string",
        "enum": [
          "object",
          "hold_over_credit_limit",
          "capability_check",
          "cancel_unreceived_after_days",
          "publication_check",
          "apply_part_publications",
          "warn_without_instructions_at_receiving",
          "keep_template_sequences",
          "copied_task_step",
          "template_publication_check",
          "advance_gate_when_complete",
          "gates_in_order",
          "ready_first_gate_only",
          "clocking",
          "labor_split",
          "auto_clock_out_at",
          "block_labor_until_received",
          "clock_in_required",
          "technician_hides_clock_in",
          "technician_hides_cancel",
          "technician_adds_instructions",
          "technician_hides_optional_materials",
          "technician_edits_quantity_requested",
          "technician_hides_quantity_issued",
          "multiply_by_quantity_to_repair",
          "auto_allocate_on_status",
          "allocate_from_purchase_lines",
          "allocate_from_own_location_only",
          "block_lot_allocations",
          "require_quantity_removed",
          "generate_barcode_at_turn_in",
          "triggers",
          "organization",
          "default_inventory",
          "default_warehouse",
          "new_task_skill",
          "new_task_skill.object",
          "new_task_skill.uuid",
          "new_task_skill.name",
          "new_task_skill.position",
          "new_task_skill.inspection_approved",
          "new_task_skill.excluded_from_assigned_hours",
          "new_task_skill.burden_rate_cents",
          "new_task_skill.bill_rate_cents",
          "new_task_skill.currency_code",
          "new_task_skill.inactive_at",
          "new_task_skill.ledger_account",
          "new_task_skill.created_at",
          "new_task_skill.updated_at"
        ]
      },
      "WorkOrderSettingsListField": {
        "type": "string",
        "enum": [
          "object",
          "hold_over_credit_limit",
          "capability_check",
          "cancel_unreceived_after_days",
          "publication_check",
          "apply_part_publications",
          "warn_without_instructions_at_receiving",
          "keep_template_sequences",
          "copied_task_step",
          "template_publication_check",
          "advance_gate_when_complete",
          "gates_in_order",
          "ready_first_gate_only",
          "clocking",
          "labor_split",
          "auto_clock_out_at",
          "block_labor_until_received",
          "clock_in_required",
          "technician_hides_clock_in",
          "technician_hides_cancel",
          "technician_adds_instructions",
          "technician_hides_optional_materials",
          "technician_edits_quantity_requested",
          "technician_hides_quantity_issued",
          "multiply_by_quantity_to_repair",
          "auto_allocate_on_status",
          "allocate_from_purchase_lines",
          "allocate_from_own_location_only",
          "block_lot_allocations",
          "require_quantity_removed",
          "generate_barcode_at_turn_in",
          "triggers",
          "organization",
          "default_inventory",
          "default_warehouse",
          "new_task_skill",
          "new_task_skill.object",
          "new_task_skill.uuid",
          "new_task_skill.name",
          "new_task_skill.position",
          "new_task_skill.inspection_approved",
          "new_task_skill.excluded_from_assigned_hours",
          "new_task_skill.burden_rate_cents",
          "new_task_skill.bill_rate_cents",
          "new_task_skill.currency_code",
          "new_task_skill.inactive_at",
          "new_task_skill.ledger_account",
          "new_task_skill.created_at",
          "new_task_skill.updated_at"
        ]
      },
      "WorkOrderShopSupplyField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "part_number",
          "part_description",
          "keywords",
          "quantity",
          "batch_lot_number",
          "internal_notes",
          "work_order_task",
          "part",
          "bin",
          "facility",
          "measurement_unit",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderShopSupplyListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "part_number",
          "part_description",
          "keywords",
          "quantity",
          "batch_lot_number",
          "internal_notes",
          "work_order_task",
          "part",
          "bin",
          "facility",
          "measurement_unit",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderStageField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "time_tracking",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderStageListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "time_tracking",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTaskField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "status",
          "approval_status",
          "billing_type",
          "summary",
          "percent_complete",
          "independent_inspection",
          "der_repair",
          "skills",
          "publication_caution",
          "started_at",
          "completed_at",
          "cancelled_at",
          "cancellation_note",
          "labor_hours",
          "labor_cost_cents",
          "labor_bill_cents",
          "parts_cost_cents",
          "currency_code",
          "work_order",
          "parent",
          "generated_from",
          "finding",
          "assigned_to",
          "work_station",
          "gate",
          "publication",
          "publication_revision",
          "cancelled_by",
          "stage",
          "next_stages",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTaskListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "status",
          "approval_status",
          "billing_type",
          "summary",
          "percent_complete",
          "independent_inspection",
          "der_repair",
          "skills",
          "publication_caution",
          "started_at",
          "completed_at",
          "cancelled_at",
          "cancellation_note",
          "labor_hours",
          "labor_cost_cents",
          "labor_bill_cents",
          "parts_cost_cents",
          "currency_code",
          "work_order",
          "parent",
          "generated_from",
          "finding",
          "assigned_to",
          "work_station",
          "gate",
          "publication",
          "publication_revision",
          "cancelled_by",
          "stage",
          "next_stages",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTaskStageField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "locks_deletion",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTaskStageListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "label",
          "name",
          "status",
          "system",
          "position",
          "locks_deletion",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplateCategoryField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "parent",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplateCategoryListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "position",
          "inactive_at",
          "parent",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplateField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "version",
          "made_of",
          "description",
          "work_scope",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "currency_code",
          "currency_exponent",
          "applies_at_opening",
          "prices_quote_lines",
          "copies_header",
          "copies_tasks",
          "copies_instructions",
          "copies_materials",
          "copies_publications",
          "copies_documents",
          "part_description",
          "inactive_at",
          "organization",
          "category",
          "subcategory",
          "part",
          "repair_service",
          "customer",
          "final_condition",
          "work_center",
          "publications",
          "created_at",
          "updated_at",
          "actions",
          "tasks.object",
          "tasks.uuid",
          "tasks.sequence",
          "tasks.name",
          "tasks.instructions",
          "tasks.task_type",
          "tasks.work_scope",
          "tasks.billing_type",
          "tasks.output_type",
          "tasks.currency_code",
          "tasks.currency_exponent",
          "tasks.flat_rate_price_cents",
          "tasks.parts_fixed_price_cents",
          "tasks.parts_over_and_above_fixed_price_cents",
          "tasks.labor_fixed_rate_cents",
          "tasks.misc_fixed_price_cents",
          "tasks.summary",
          "tasks.independent_inspection",
          "tasks.der_repair",
          "tasks.skills",
          "tasks.work_order_template",
          "tasks.customer",
          "tasks.parent",
          "tasks.work_station",
          "tasks.publication",
          "tasks.gate",
          "tasks.created_at",
          "tasks.updated_at",
          "phases.object",
          "phases.uuid",
          "phases.sequence",
          "phases.phase_template_version",
          "phases.phase_template_active",
          "phases.work_order_template",
          "phases.phase_template",
          "phases.created_at",
          "phases.updated_at",
          "parts.object",
          "parts.uuid",
          "parts.part_description",
          "parts.work_order_template",
          "parts.part",
          "parts.created_at",
          "parts.updated_at"
        ]
      },
      "WorkOrderTemplateListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "name",
          "version",
          "made_of",
          "description",
          "work_scope",
          "requested_tag_type",
          "no_der_repairs",
          "no_pma_material",
          "currency_code",
          "currency_exponent",
          "applies_at_opening",
          "prices_quote_lines",
          "copies_header",
          "copies_tasks",
          "copies_instructions",
          "copies_materials",
          "copies_publications",
          "copies_documents",
          "part_description",
          "inactive_at",
          "organization",
          "category",
          "subcategory",
          "part",
          "repair_service",
          "customer",
          "final_condition",
          "work_center",
          "publications",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplateInstructionField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "environment_check",
          "max_humidity_percent",
          "work_order_template_task",
          "skill",
          "work_station",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplateInstructionListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "position",
          "name",
          "instructions",
          "environment_check",
          "max_humidity_percent",
          "work_order_template_task",
          "skill",
          "work_station",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplateMaterialField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "customer_supplied",
          "optional",
          "requested_reason",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "work_order_template_task",
          "part",
          "condition",
          "part_off",
          "expected_part",
          "expected_condition",
          "removal_priority",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplateMaterialListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "material_type",
          "part_number_raw",
          "description",
          "quantity_requested",
          "multiplied_by_quantity_to_repair",
          "customer_supplied",
          "optional",
          "requested_reason",
          "currency_code",
          "currency_exponent",
          "expected_market_value_cents",
          "internal_notes",
          "work_order_template_task",
          "part",
          "condition",
          "part_off",
          "expected_part",
          "expected_condition",
          "removal_priority",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplatePartField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "work_order_template",
          "part",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplatePartListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "part_description",
          "work_order_template",
          "part",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplatePhaseField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "phase_template_version",
          "phase_template_active",
          "work_order_template",
          "phase_template",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplatePhaseListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "phase_template_version",
          "phase_template_active",
          "work_order_template",
          "phase_template",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTemplateTaskField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "billing_type",
          "output_type",
          "currency_code",
          "currency_exponent",
          "flat_rate_price_cents",
          "parts_fixed_price_cents",
          "parts_over_and_above_fixed_price_cents",
          "labor_fixed_rate_cents",
          "misc_fixed_price_cents",
          "summary",
          "independent_inspection",
          "der_repair",
          "skills",
          "work_order_template",
          "customer",
          "parent",
          "work_station",
          "publication",
          "gate",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkOrderTemplateTaskListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "sequence",
          "name",
          "instructions",
          "task_type",
          "work_scope",
          "billing_type",
          "output_type",
          "currency_code",
          "currency_exponent",
          "flat_rate_price_cents",
          "parts_fixed_price_cents",
          "parts_over_and_above_fixed_price_cents",
          "labor_fixed_rate_cents",
          "misc_fixed_price_cents",
          "summary",
          "independent_inspection",
          "der_repair",
          "skills",
          "work_order_template",
          "customer",
          "parent",
          "work_station",
          "publication",
          "gate",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTurnInField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "serial_number",
          "part_description",
          "findings",
          "teardown",
          "status",
          "cancelled_at",
          "work_order_material",
          "inventory_line",
          "part",
          "condition",
          "bin",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderTurnInListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "quantity",
          "serial_number",
          "part_description",
          "findings",
          "teardown",
          "status",
          "cancelled_at",
          "work_order_material",
          "inventory_line",
          "part",
          "condition",
          "bin",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderVisualCheckField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "findings",
          "work_order_material",
          "inventory_line",
          "previous_condition",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "WorkOrderVisualCheckListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "findings",
          "work_order_material",
          "inventory_line",
          "previous_condition",
          "condition",
          "created_at",
          "updated_at"
        ]
      },
      "WorkStationField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at",
          "actions"
        ]
      },
      "WorkStationListField": {
        "type": "string",
        "enum": [
          "object",
          "uuid",
          "code",
          "name",
          "inactive_at",
          "organization",
          "created_at",
          "updated_at"
        ]
      },
      "AccessTokenCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "scopes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "read",
                "write",
                "admin",
                "sales:write",
                "sales:manage",
                "purchasing:write",
                "purchasing:manage",
                "repairs:write",
                "repairs:manage",
                "operations:write",
                "operations:manage",
                "inventory:write",
                "inventory:manage",
                "accounting:write",
                "accounting:manage",
                "catalog:write",
                "catalog:manage",
                "settings:write",
                "settings:manage",
                "sales:release_hold",
                "inventory:adjust",
                "repairs:labor",
                "catalog:approve",
                "accounting:approve",
                "accounting:void",
                "data:import",
                "data:migrate",
                "settings:requirements",
                "settings:checklists",
                "settings:views",
                "settings:everyones_views",
                "settings:everyones_dashboards"
              ]
            }
          }
        },
        "required": [
          "description"
        ]
      },
      "AccountSettingsUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "auto_invoice_on_ship": {
            "type": "boolean"
          },
          "tax_on_quotes": {
            "type": "boolean"
          },
          "tax_on_sales_orders": {
            "type": "boolean"
          },
          "require_approved_vendors": {
            "type": "boolean"
          },
          "exchange_part_writedown_percent": {
            "type": "integer"
          },
          "lease_writedown_percent": {
            "type": "integer"
          },
          "release_on_pick": {
            "type": "boolean"
          },
          "receive_without_serials": {
            "type": "boolean"
          },
          "default_spec_inventory_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "default_managed_repair_inventory_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "default_vendor_lease_inventory_uuid": {
            "type": "string",
            "format": "uuid"
          },
          "default_customer_payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default customer payment term"
          },
          "default_vendor_payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default vendor payment term"
          },
          "time_zone": {
            "type": "string"
          }
        }
      },
      "AccountingTransactionRepost": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "posted_on": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "AgreementAcceptanceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "version": {
            "type": "integer",
            "description": "The version answered, which must be the latest to accept it"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "accepted",
              "declined"
            ],
            "description": "`accepted` or `declined`"
          }
        },
        "required": [
          "version",
          "outcome"
        ]
      },
      "AllocationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "demand_type": {
            "type": "string",
            "enum": [
              "sales_order_line",
              "issued_part",
              "vendor_exchange",
              "vendor_lease",
              "work_order_material"
            ]
          },
          "demand_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a demand"
          },
          "supply_type": {
            "type": "string",
            "enum": [
              "inventory_line",
              "purchase_order_line",
              "repair_order_line"
            ]
          },
          "supply_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a supply"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "required": [
          "demand_type",
          "demand_uuid",
          "supply_type",
          "supply_uuid",
          "quantity"
        ]
      },
      "AllocationMove": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "demand_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a demand"
          },
          "supply_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a supply"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        }
      },
      "AllocationPick": {
        "type": "object",
        "additionalProperties": false,
        "properties": {}
      },
      "AlternateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "alternate_part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an alternate part"
          },
          "kind": {
            "type": "string",
            "enum": [
              "alternate",
              "supersession"
            ]
          },
          "interchangeability": {
            "type": "string",
            "enum": [
              "two_way",
              "one_way",
              "none"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "replaces",
              "replaced_by",
              null
            ]
          },
          "authority": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "part_uuid",
          "alternate_part_uuid",
          "kind",
          "interchangeability"
        ]
      },
      "ApplicabilityCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "airframe",
              "engine",
              null
            ]
          }
        }
      },
      "ApplicabilityUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "airframe",
              "engine",
              null
            ]
          }
        }
      },
      "AttachmentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "upload_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an upload"
          },
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "record_type": {
            "type": "string"
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a record"
          }
        },
        "required": [
          "record_type",
          "record_uuid"
        ]
      },
      "AttachmentCreateMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          },
          "category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "record_type": {
            "type": "string"
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a record"
          }
        },
        "required": [
          "file",
          "record_type",
          "record_uuid"
        ]
      },
      "AutoquoteSettingsUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "automatic": {
            "type": "boolean"
          },
          "quantity_mode": {
            "type": "string",
            "enum": [
              "exact",
              "up_to_available"
            ]
          },
          "condition_mode": {
            "type": "string",
            "enum": [
              "as_asked",
              "ranked"
            ]
          },
          "inventory_order": {
            "type": "string",
            "enum": [
              "oldest_received",
              "lowest_cost"
            ]
          },
          "margin_floor_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "home_minimum_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_maximum_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "price_history_max_age_days": {
            "type": "integer"
          },
          "sends_automatically": {
            "type": "boolean"
          },
          "daily_send_limit": {
            "type": "integer"
          },
          "answers_senders": {
            "type": "string",
            "enum": [
              "verified_customer",
              "customer",
              "any_sender"
            ]
          },
          "preferred_warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The warehouse whose units autoquote picks first; null prefers none"
          },
          "no_inventory_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The no-quote reason a line with no inventory is declined with; null skips the line"
          },
          "no_price_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The no-quote reason a line with no price clearing the margin floor is declined with; null skips the line"
          },
          "default_sender_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The salesperson a quote with no active salesperson of its own is sent as; null keeps such a quote a draft"
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The conditions autoquote picks units in, best first; sent, it replaces the ranking"
          },
          "price_sources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The price sources autoquote tries for an outright sale, first to last; a source left out is never used, an exchange is priced from its exchange part price alone, and a repair from the repair price on the part's repair service"
          }
        }
      },
      "BillingAddressCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "organization_uuid"
        ]
      },
      "BillingAddressUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "BinCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "facility_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a facility"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "held_from_sale": {
            "type": "boolean"
          }
        },
        "required": [
          "facility_uuid",
          "name"
        ]
      },
      "BinUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "held_from_sale": {
            "type": "boolean"
          }
        }
      },
      "BotCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "BotUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "CalendarEventCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether it holds whole days, `starts_on` to `ends_on` (the last included), or instants, `starts_at` to `ends_at` in `time_zone`"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_as": {
            "type": "string",
            "enum": [
              "away",
              "busy",
              "free"
            ]
          },
          "private": {
            "type": "boolean",
            "description": "Everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a calendar"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The family of the record it is about, as `sales_order`, with `record_uuid`; null with `record_uuid` null unlinks it"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "attendee_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Whose time it is, the whole list, each a seat's uuid: the person away on a vacation, or everyone at a visit. Left out on a create, the maker attends; a personal event (no calendar) needs at least one"
          },
          "repeat": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "frequency": {
                "type": "string"
              },
              "interval": {
                "type": "integer"
              },
              "until": {
                "type": "string",
                "format": "date"
              },
              "count": {
                "type": "integer"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "description": "How it repeats, by RFC 5545's rule in its own time zone: `frequency` daily, weekly, monthly or yearly, every `interval` of them (1 when left out), on `weekdays` for a weekly one (`mo` to `su`; the start's own day when left out), ending on the day `until` (the last an occurrence may start on) or after `count` times, or never. Null makes it happen once, dropping every changed occurrence"
          }
        },
        "required": [
          "title"
        ]
      },
      "CalendarEventUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether it holds whole days, `starts_on` to `ends_on` (the last included), or instants, `starts_at` to `ends_at` in `time_zone`"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_as": {
            "type": "string",
            "enum": [
              "away",
              "busy",
              "free"
            ]
          },
          "private": {
            "type": "boolean",
            "description": "Everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a calendar"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The family of the record it is about, as `sales_order`, with `record_uuid`; null with `record_uuid` null unlinks it"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "attendee_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Whose time it is, the whole list, each a seat's uuid: the person away on a vacation, or everyone at a visit. Left out on a create, the maker attends; a personal event (no calendar) needs at least one"
          },
          "repeat": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "frequency": {
                "type": "string"
              },
              "interval": {
                "type": "integer"
              },
              "until": {
                "type": "string",
                "format": "date"
              },
              "count": {
                "type": "integer"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "description": "How it repeats, by RFC 5545's rule in its own time zone: `frequency` daily, weekly, monthly or yearly, every `interval` of them (1 when left out), on `weekdays` for a weekly one (`mo` to `su`; the start's own day when left out), ending on the day `until` (the last an occurrence may start on) or after `count` times, or never. Null makes it happen once, dropping every changed occurrence"
          }
        }
      },
      "CalendarEventCancelOccurrence": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "occurrence": {
            "type": "string",
            "description": "Which occurrence: the start its series' rule gave it, as each calendar item's `occurrence.start` says"
          }
        },
        "required": [
          "occurrence"
        ]
      },
      "CalendarEventReviseFollowing": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "occurrence": {
            "type": "string",
            "description": "Which occurrence: the start its series' rule gave it, as each calendar item's `occurrence.start` says"
          },
          "title": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether it holds whole days, `starts_on` to `ends_on` (the last included), or instants, `starts_at` to `ends_at` in `time_zone`"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_as": {
            "type": "string",
            "enum": [
              "away",
              "busy",
              "free"
            ]
          },
          "private": {
            "type": "boolean",
            "description": "Everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a calendar"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The family of the record it is about, as `sales_order`, with `record_uuid`; null with `record_uuid` null unlinks it"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "attendee_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Whose time it is, the whole list, each a seat's uuid: the person away on a vacation, or everyone at a visit. Left out on a create, the maker attends; a personal event (no calendar) needs at least one"
          },
          "repeat": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "frequency": {
                "type": "string"
              },
              "interval": {
                "type": "integer"
              },
              "until": {
                "type": "string",
                "format": "date"
              },
              "count": {
                "type": "integer"
              },
              "weekdays": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "description": "How it repeats, by RFC 5545's rule in its own time zone: `frequency` daily, weekly, monthly or yearly, every `interval` of them (1 when left out), on `weekdays` for a weekly one (`mo` to `su`; the start's own day when left out), ending on the day `until` (the last an occurrence may start on) or after `count` times, or never. Null makes it happen once, dropping every changed occurrence"
          }
        },
        "required": [
          "occurrence"
        ]
      },
      "CalendarEventReviseOccurrence": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "occurrence": {
            "type": "string",
            "description": "Which occurrence: the start its series' rule gave it, as each calendar item's `occurrence.start` says"
          },
          "title": {
            "type": "string"
          },
          "all_day": {
            "type": "boolean",
            "description": "Whether it holds whole days, `starts_on` to `ends_on` (the last included), or instants, `starts_at` to `ends_at` in `time_zone`"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_as": {
            "type": "string",
            "enum": [
              "away",
              "busy",
              "free"
            ]
          },
          "private": {
            "type": "boolean",
            "description": "Everyone but its organizer and attendees sees only when it is, who it is for, and whether it shows them away, busy or free"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "calendar_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a calendar"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "record_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "The family of the record it is about, as `sales_order`, with `record_uuid`; null with `record_uuid` null unlinks it"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "attendee_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Whose time it is, the whole list, each a seat's uuid: the person away on a vacation, or everyone at a visit. Left out on a create, the maker attends; a personal event (no calendar) needs at least one"
          }
        },
        "required": [
          "occurrence"
        ]
      },
      "CalendarCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "shared",
              "closures"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          }
        }
      },
      "CalendarUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "shared",
              "closures"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CalibrationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "inventory_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an inventory line"
          },
          "performed_on": {
            "type": "string",
            "format": "date"
          },
          "due_on": {
            "type": "string",
            "format": "date"
          },
          "result": {
            "type": "string",
            "enum": [
              "passed",
              "out_of_tolerance",
              "failed"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "employee_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an employee"
          }
        },
        "required": [
          "inventory_line_uuid",
          "due_on"
        ]
      },
      "CarrierAccountCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_number": {
            "type": "string"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "carrier_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a carrier"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          }
        },
        "required": [
          "carrier_uuid",
          "account_number"
        ]
      },
      "CarrierAccountUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_number": {
            "type": "string"
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "billing_country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "carrier_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a carrier"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          }
        }
      },
      "CarrierCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "CarrierUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "CertificateStandardCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CertificateStandardUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CertificateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "release_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a release"
          },
          "form": {
            "type": "string",
            "enum": [
              "conformance",
              "material_certification",
              "true_copy",
              "split_statement"
            ]
          },
          "release_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "description": "The release's part lines it certifies, each through outbound QC; omitted, every part line of the release"
          }
        },
        "required": [
          "release_uuid",
          "form"
        ]
      },
      "CertificateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "release_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "description": "Every line it certifies, replacing the lines it named; a draft only"
          }
        },
        "required": [
          "release_line_uuids"
        ]
      },
      "CertificateMarkSignedByHand": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "signer_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The employee who signed the printed copy in ink; whoever marks it is named on the event"
          }
        },
        "required": [
          "signer_uuid"
        ]
      },
      "CertificateVoid": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": "string",
            "description": "Why it no longer stands, printed on its void copy"
          }
        },
        "required": [
          "reason"
        ]
      },
      "ChargeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ]
          },
          "expense_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ]
          },
          "default_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "revenue_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a revenue ledger account"
          },
          "expense_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expense ledger account"
          }
        },
        "required": [
          "code",
          "name",
          "revenue_purpose",
          "expense_purpose"
        ]
      },
      "ChargeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "revenue_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ]
          },
          "expense_purpose": {
            "type": "string",
            "enum": [
              "inventory_acquisition",
              "inventory_repair",
              "cogs_acquisition",
              "cogs_repair",
              "revenue",
              "freight_revenue",
              "non_inventory_expense",
              "freight_expense",
              "rounding",
              "inventory_adjustment",
              "opening_balance_equity",
              "capitalized_cost",
              "unbilled_expense",
              "credit_card_fee_revenue",
              "wire_transfer_fee_revenue",
              "core_charge_revenue",
              "sales_tax_payable",
              "accounts_receivable",
              "accounts_payable",
              "vouchers_payable",
              "voucher_variance",
              "fx_gain_loss",
              "customer_deposits",
              "consignor_accrual",
              "consignor_payable",
              "investor_expense",
              "investor_accrual",
              "investor_payable",
              "repair_expense",
              "exchange_core_repair",
              "exchange_core_awaiting",
              "rma_clearing",
              "repair_inventory_accrual",
              "wo_wip_parts",
              "wo_wip_labor",
              "wo_wip_misc_charge",
              "teardown_wip",
              "wo_revenue",
              "wo_revenue_labor",
              "wo_revenue_parts",
              "wo_cogs",
              "wo_cogs_labor",
              "wo_cogs_parts",
              "wo_cogs_misc_charge",
              "wo_labor",
              "wo_warranty_expense",
              "inventory_on_lease",
              "lease_revenue",
              "lease_cogs",
              "lease_expense"
            ]
          },
          "default_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "revenue_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a revenue ledger account"
          },
          "expense_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expense ledger account"
          }
        }
      },
      "ClauseCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "default_record_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "certificate",
                "consignor_statement",
                "customer_exchange",
                "customer_lease",
                "customer_quote",
                "customer_return",
                "inventory_line",
                "investor_statement",
                "invoice",
                "manifest",
                "purchase_order",
                "receipt",
                "rejection",
                "release",
                "repair_order",
                "sales_order",
                "vendor_exchange",
                "vendor_lease",
                "vendor_return",
                "vendor_rfq",
                "bin",
                "work_order",
                "work_order_task"
              ]
            }
          }
        }
      },
      "ClauseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "default_record_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "certificate",
                "consignor_statement",
                "customer_exchange",
                "customer_lease",
                "customer_quote",
                "customer_return",
                "inventory_line",
                "investor_statement",
                "invoice",
                "manifest",
                "purchase_order",
                "receipt",
                "rejection",
                "release",
                "repair_order",
                "sales_order",
                "vendor_exchange",
                "vendor_lease",
                "vendor_return",
                "vendor_rfq",
                "bin",
                "work_order",
                "work_order_task"
              ]
            }
          }
        }
      },
      "CombinedTaxRateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "sales_tax",
              "vat",
              "gst",
              "municipal",
              "exempt"
            ]
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          },
          "print_detail": {
            "type": "boolean"
          },
          "applies_to_quotes": {
            "type": "boolean"
          },
          "applies_to_sales_orders": {
            "type": "boolean"
          },
          "tax_origin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax origin"
          },
          "tax_destination_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax destination"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "rates": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "compound": {
                  "type": "boolean"
                },
                "ledger_account_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a ledger account"
                },
                "active": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "CombinedTaxRateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "sales_tax",
              "vat",
              "gst",
              "municipal",
              "exempt"
            ]
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          },
          "print_detail": {
            "type": "boolean"
          },
          "applies_to_quotes": {
            "type": "boolean"
          },
          "applies_to_sales_orders": {
            "type": "boolean"
          },
          "tax_origin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax origin"
          },
          "tax_destination_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax destination"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "rates": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "percentage": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "compound": {
                  "type": "boolean"
                },
                "ledger_account_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a ledger account"
                },
                "active": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "CompanyCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "trading_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_owner_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an account owner"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer",
                "vendor"
              ]
            }
          },
          "segment_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "currency_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payment_term_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a payment term"
              },
              "credit_limit_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "credit_hold": {
                "type": "boolean"
              },
              "email_invoices": {
                "type": "boolean"
              },
              "ship_complete": {
                "type": "boolean"
              },
              "preferred_ship_via_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a preferred ship via"
              },
              "default_billing_party": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "shipper",
                  "recipient",
                  "third_party",
                  "collect",
                  "on_invoice",
                  null
                ]
              },
              "default_freight_account_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a default freight account"
              },
              "shipping_instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "credit_card_fee_percentage": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              },
              "wire_transfer_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "clause_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a clause"
              }
            }
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "currency_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payment_term_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a payment term"
              },
              "approval_status": {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "not_approved"
                ]
              },
              "approved_for": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "purchase_orders",
                  "repair_orders",
                  "both",
                  null
                ]
              },
              "approved_until": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "export_control": {
                "type": "boolean"
              },
              "track_1099": {
                "type": "boolean"
              },
              "preferred_ship_via_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a preferred ship via"
              },
              "default_freight_account_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a default freight account"
              },
              "clause_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a clause"
              },
              "default_notes_to_shop": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "CompanyUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "trading_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_owner_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an account owner"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer",
                "vendor"
              ]
            }
          },
          "segment_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "currency_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payment_term_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a payment term"
              },
              "credit_limit_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "credit_hold": {
                "type": "boolean"
              },
              "email_invoices": {
                "type": "boolean"
              },
              "ship_complete": {
                "type": "boolean"
              },
              "preferred_ship_via_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a preferred ship via"
              },
              "default_billing_party": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "shipper",
                  "recipient",
                  "third_party",
                  "collect",
                  "on_invoice",
                  null
                ]
              },
              "default_freight_account_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a default freight account"
              },
              "shipping_instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "credit_card_fee_percentage": {
                "type": [
                  "number",
                  "string",
                  "null"
                ],
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              },
              "wire_transfer_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "clause_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a clause"
              }
            }
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "currency_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "payment_term_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a payment term"
              },
              "approval_status": {
                "type": "string",
                "enum": [
                  "pending",
                  "approved",
                  "not_approved"
                ]
              },
              "approved_for": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "purchase_orders",
                  "repair_orders",
                  "both",
                  null
                ]
              },
              "approved_until": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "export_control": {
                "type": "boolean"
              },
              "track_1099": {
                "type": "boolean"
              },
              "preferred_ship_via_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a preferred ship via"
              },
              "default_freight_account_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a default freight account"
              },
              "clause_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a clause"
              },
              "default_notes_to_shop": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      },
      "CustomerUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "credit_limit_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "credit_hold": {
            "type": "boolean"
          },
          "email_invoices": {
            "type": "boolean"
          },
          "ship_complete": {
            "type": "boolean"
          },
          "preferred_ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a preferred ship via"
          },
          "default_billing_party": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "shipper",
              "recipient",
              "third_party",
              "collect",
              "on_invoice",
              null
            ]
          },
          "default_freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default freight account"
          },
          "shipping_instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_destination_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax destination"
          },
          "credit_card_fee_percentage": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "wire_transfer_fee_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The customer's standing requirements, the whole list: one added is copied onto its orders not yet shipped"
          }
        }
      },
      "CustomerEmailTemplatePreferencesUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "organization_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an organization"
                },
                "email_template_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an email template"
                },
                "kind": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "choices"
        ]
      },
      "ExternalKeyUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string"
          }
        },
        "required": [
          "key"
        ]
      },
      "VendorUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "approval_status": {
            "type": "string",
            "enum": [
              "pending",
              "approved",
              "not_approved"
            ]
          },
          "approved_for": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ]
          },
          "approved_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "export_control": {
            "type": "boolean"
          },
          "track_1099": {
            "type": "boolean"
          },
          "preferred_ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a preferred ship via"
          },
          "default_freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default freight account"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "default_notes_to_shop": {
            "type": [
              "string",
              "null"
            ]
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The vendor's standing receiving requirements, the whole list"
          }
        }
      },
      "VendorEmailTemplatePreferencesUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "organization_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an organization"
                },
                "email_template_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an email template"
                },
                "kind": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "choices"
        ]
      },
      "CompanyAddressCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "company_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "billing": {
            "type": "boolean"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_destination_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax destination"
          }
        },
        "required": [
          "company_uuid"
        ]
      },
      "CompanyAddressUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "billing": {
            "type": "boolean"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": "string"
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_destination_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax destination"
          }
        }
      },
      "CompanyAddressMakePrimary": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "shipping",
              "billing"
            ]
          }
        },
        "required": [
          "role"
        ]
      },
      "CompanySegmentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "CompanySegmentUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "ConditionAnswerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "marketplace_condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace condition"
          }
        },
        "required": [
          "condition_uuid",
          "marketplace_condition_uuid"
        ]
      },
      "ConditionListingCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "marketplace_condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace condition"
          }
        },
        "required": [
          "condition_uuid",
          "marketplace_condition_uuid"
        ]
      },
      "ConditionListingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace condition"
          }
        }
      },
      "ConditionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "standard_code": {
            "type": "string",
            "enum": [
              "FN",
              "NE",
              "NS",
              "OH",
              "RD",
              "IN",
              "SV",
              "AR",
              "RP",
              "BER"
            ],
            "description": "The standard grade it is. Creating one lists it as, and answers an RFQ for, each marketplace's condition for the grade, where the marketplace has one, as `/condition_listings` and `/condition_answers` show; a marketplace's `map_condition` maps it otherwise. It answers a direct RFQ for the direct RFQ condition coded as its grade, as `/direct_rfq_condition_answers` shows, and `map_direct_rfqs` maps it otherwise"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The condition's standing receiving requirements, the whole list"
          }
        }
      },
      "ConditionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "standard_code": {
            "type": "string",
            "enum": [
              "FN",
              "NE",
              "NS",
              "OH",
              "RD",
              "IN",
              "SV",
              "AR",
              "RP",
              "BER"
            ]
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The condition's standing receiving requirements, the whole list"
          }
        }
      },
      "ConditionMapDirectRfqs": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the direct RFQ conditions ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "answers_uuids"
        ]
      },
      "ConsignorStatementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "participation_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a participation"
          },
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "participation_uuid"
        ]
      },
      "ConsignorStatementUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ConsignorStatementEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "consignor_statement"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the consignor statement sends, each attaching its own PDF (`consignor_statement` the Consignor Statement); `consignor_statement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the consignor statement's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the consignor statement's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the consignor statement's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the consignor statement as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "statement_date",
                                      "net",
                                      "balance_due",
                                      "inventory_name",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the consignor statement as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "statement_date",
                                          "net",
                                          "balance_due",
                                          "inventory_name",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "statement_date",
                                                      "net",
                                                      "balance_due",
                                                      "inventory_name",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "ConsignorStatementPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "consignor_statement"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the consignor statement sends, each attaching its own PDF (`consignor_statement` the Consignor Statement); `consignor_statement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the consignor statement's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the consignor statement; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "statement_date",
                                      "net",
                                      "balance_due",
                                      "inventory_name",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the consignor statement; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "statement_date",
                                          "net",
                                          "balance_due",
                                          "inventory_name",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "statement_date",
                                                      "net",
                                                      "balance_due",
                                                      "inventory_name",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "ContactRoleCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "ContactRoleUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "ContactCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "salutation": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": "string"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "department": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "mobile": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "birthdate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "receives_invoices": {
            "type": "boolean"
          },
          "receives_statements": {
            "type": "boolean"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "contact_role_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "linked_company_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "last_name"
        ]
      },
      "ContactUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "salutation": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": "string"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "department": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "mobile": {
            "type": [
              "string",
              "null"
            ]
          },
          "fax": {
            "type": [
              "string",
              "null"
            ]
          },
          "birthdate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "receives_invoices": {
            "type": "boolean"
          },
          "receives_statements": {
            "type": "boolean"
          },
          "company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "contact_role_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "linked_company_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerExchangeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "core_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "core_due_days": {
            "type": "integer"
          }
        }
      },
      "CustomerExchangeAddToRepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "core_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a core"
          },
          "repair_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair order"
          },
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "estimated_unit_cost_cents": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_unit_cost": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The estimated unit cost in the repair order's currency (the vendor's, for an order this cuts), for a caller that can't know it; send this or `estimated_unit_cost_cents`, not both"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "core_uuid",
          "repair_service_uuid"
        ]
      },
      "CustomerExchangeBillCharge": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "charge_uuid"
        ]
      },
      "CustomerExchangeBillCore": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": "integer"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "CustomerExchangeBillCoreRepair": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_order_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair order line"
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "repair_order_line_uuid"
        ]
      },
      "CustomerExchangePutBack": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "core_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a core"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        },
        "required": [
          "core_uuid"
        ]
      },
      "CustomerExchangeScrap": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "core_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a core"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "core_uuid"
        ]
      },
      "CustomerLeaseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "writedown_percent": {
            "type": [
              "integer",
              "null"
            ]
          },
          "due_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due_back_days": {
            "type": "integer"
          }
        }
      },
      "CustomerLeaseAddToRepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an inventory line that came back on this lease"
          },
          "repair_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair order"
          },
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "estimated_unit_cost_cents": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_unit_cost": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The estimated unit cost in the repair order's currency (the vendor's, for an order this cuts), for a caller that can't know it; send this or `estimated_unit_cost_cents`, not both"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "unit_uuid",
          "repair_service_uuid"
        ]
      },
      "CustomerLeaseBillCharge": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "charge_uuid"
        ]
      },
      "CustomerLeaseBillPeriod": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "period_ends_on": {
            "type": "string",
            "format": "date"
          },
          "reported_hours": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "reported_cycles": {
            "type": "integer"
          }
        }
      },
      "CustomerLeaseSellOutright": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_price_cents": {
            "type": "integer"
          }
        }
      },
      "CustomerNoQuoteReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "printed_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerNoQuoteReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "printed_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerPartPriceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "supply_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inventory_line",
              "vendor_inventory_line",
              null
            ],
            "description": "Which kind of line `supply_uuid` names, the inventory line or vendor inventory line this price is for; fixed once added"
          },
          "supply_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a supply"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ]
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "company_segment_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company segment"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        },
        "required": [
          "part_uuid",
          "unit_price_cents"
        ]
      },
      "CustomerPartPriceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ]
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "company_segment_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company segment"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "CustomerPaymentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an invoice"
          },
          "sales_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a sales order"
          },
          "amount_cents": {
            "type": "integer"
          },
          "paid_on": {
            "type": "string",
            "format": "date"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "ReceivableApplicationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an invoice"
          },
          "amount_cents": {
            "type": "integer"
          }
        },
        "required": [
          "invoice_uuid"
        ]
      },
      "CustomerQuoteArchiveReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerQuoteArchiveReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerQuoteLostReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerQuoteLostReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerQuoteCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "customer_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "manual",
              "email",
              "phone",
              "chat",
              "ils",
              "partsbase",
              "marketplace"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "salesperson_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a salesperson"
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_requested": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "repair_service_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_type_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "repair_service_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "customer_rfq_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a customer RFQ line"
                },
                "inventory_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory line"
                },
                "vendor_offer_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "vendor_offer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a vendor offer"
                },
                "lead_time_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a lead time"
                },
                "valid_until": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trace_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "shelf_life_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "calibration_due_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_rfq_line_index": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "CustomerQuoteUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "customer_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "manual",
              "email",
              "phone",
              "chat",
              "ils",
              "partsbase",
              "marketplace"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "salesperson_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a salesperson"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "fob": {
            "type": [
              "string",
              "null"
            ]
          },
          "sent_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "bill_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "CustomerQuoteAsk": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "again": {
            "type": "boolean"
          },
          "rfq_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "vendor_uuid"
        ]
      },
      "CustomerQuoteAutoquote": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "fresh",
              "gaps",
              "price_only"
            ],
            "description": "`fresh` (the default) removes every part line and quotes every request again, `gaps` only the requests nobody answered, `price_only` reprices every part line"
          },
          "remove_lines_without_request": {
            "type": "boolean",
            "description": "`fresh` removes part lines that answer no request only when this is true; otherwise it refuses, naming how many there are"
          }
        }
      },
      "CustomerQuoteEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "customer_quote"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the quote sends, each attaching its own PDF (`customer_quote` the Customer Quote); `customer_quote` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the quote's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the quote's `email_senders`; the sender's own when given none"
          },
          "valid_until": {
            "type": "string",
            "format": "date",
            "description": "A draft's valid-until date as it is marked sent; a sent quote's moves only through `POST /customer_quotes/{uuid}/send`"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the quote's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "When given none, the RFQ email's subject under \"Re:\" while the quote's first email replies on it, else the template's subject; its fields are filled from the quote as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the quote as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "CustomerQuoteImportRfqLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      },
      "CustomerQuoteLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "customer_rfq_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a customer RFQ line"
          },
          "inventory_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory line"
          },
          "vendor_offer_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "vendor_quote_line",
              "vendor_inventory_line",
              "vendor_part_price",
              null
            ]
          },
          "vendor_offer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor offer"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "repair": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "service_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a repair service"
              },
              "non_oem_allowance": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerQuoteLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "customer_rfq_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a customer RFQ line"
          },
          "inventory_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory line"
          },
          "vendor_offer_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "vendor_quote_line",
              "vendor_inventory_line",
              "vendor_part_price",
              null
            ]
          },
          "vendor_offer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor offer"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer"
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "repair": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "service_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a repair service"
              },
              "non_oem_allowance": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerQuoteLose": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a reason"
          }
        }
      },
      "CustomerQuoteOpenWorkOrders": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "The customer's PO number, on every work order opened"
          },
          "work_scope": {
            "type": "string",
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify"
            ],
            "description": "The work scope of every work order opened; absent, each takes its template's, else `repair`"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "description": "The quote's priced repair lines, each opening a work order of its own for the customer's unit, laid out from the template that priced it, else the one applying at opening to the part's repair service and customer"
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "CustomerQuoteOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "CustomerQuotePreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "customer_quote"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the quote sends, each attaching its own PDF (`customer_quote` the Customer Quote); `customer_quote` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the quote's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "valid_until": {
            "type": "string",
            "format": "date",
            "description": "A draft's valid-until date as `email` would mark it sent, printed in the preview and saved nowhere"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the quote; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the quote; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "CustomerQuoteRecordRequests": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "all": {
            "type": "boolean"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerQuoteResolvePartNumbers": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "active_only": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manufacturer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a manufacturer"
                },
                "classification_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a classification"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                }
              }
            }
          }
        },
        "required": [
          "parts"
        ]
      },
      "CustomerQuoteReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "removed_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "customer_rfq_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a customer RFQ line"
                },
                "inventory_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory line"
                },
                "vendor_offer_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "vendor_offer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a vendor offer"
                },
                "lead_time_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a lead time"
                },
                "valid_until": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trace_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "shelf_life_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "calibration_due_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "position": {
                  "type": "integer"
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "customer_rfq_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a customer RFQ line"
                },
                "inventory_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory line"
                },
                "vendor_offer_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "vendor_offer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a vendor offer"
                },
                "lead_time_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a lead time"
                },
                "valid_until": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trace_type": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "shelf_life_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "calibration_due_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "CustomerQuoteReviseRfqLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_requested": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "repair_service_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_type_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "position": {
                  "type": "integer"
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "repair_service_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "new_rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity_requested": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "no_quote_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a no quote reason"
                },
                "notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "repair_service_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_type_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "repair_service_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "CustomerRfqLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "repair_service_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_type_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a line"
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "repair_service_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerRfqLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "repair_service_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_type_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer"
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "repair_service_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerRfqLineQuote": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CustomerQuoteSend": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "valid_until": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "CustomerQuoteSendToSourcing": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rfq_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CustomerQuoteWinOnExternalOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "external_order_number": {
            "type": "string"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "external_order_number",
          "line_uuids"
        ]
      },
      "CustomerRepairPriceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "unit_price_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "company_segment_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company segment"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        },
        "required": [
          "part_uuid",
          "repair_service_uuid",
          "unit_price_cents"
        ]
      },
      "CustomerRepairPriceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_price_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "company_segment_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company segment"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        }
      },
      "CustomerReturnReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerReturnReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "CustomerReturnUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "CustomerReturnCancelExchange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "CustomerReturnLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "release_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a release line"
          }
        }
      },
      "CustomerReturnReturnToVendor": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "picks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "inventory_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory line"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            }
          }
        },
        "required": [
          "picks"
        ]
      },
      "CustomerTaxExemptionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "country_code": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "resale",
              "common_carrier",
              "aircraft_parts",
              "export",
              "government",
              "manufacturing",
              "charitable",
              "other"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "customer_uuid",
          "country_code",
          "reason"
        ]
      },
      "CustomerTaxExemptionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "country_code": {
            "type": "string"
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "type": "string",
            "enum": [
              "resale",
              "common_carrier",
              "aircraft_parts",
              "export",
              "government",
              "manufacturing",
              "charitable",
              "other"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "statement": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "DashboardCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "last_7_days",
              "last_30_days",
              "last_90_days",
              "last_12_months",
              "month_to_date",
              "quarter_to_date",
              "year_to_date"
            ]
          },
          "refresh_interval_minutes": {
            "type": "integer",
            "description": "How often, in minutes, the schedule rereads every tile: 15, 60, 240 or 1440; left out of a new dashboard, 60"
          }
        },
        "required": [
          "name"
        ]
      },
      "DashboardUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": "string",
            "enum": [
              "last_7_days",
              "last_30_days",
              "last_90_days",
              "last_12_months",
              "month_to_date",
              "quarter_to_date",
              "year_to_date"
            ]
          },
          "refresh_interval_minutes": {
            "type": "integer",
            "description": "How often, in minutes, the schedule rereads every tile: 15, 60, 240 or 1440; left out of a new dashboard, 60"
          }
        }
      },
      "DashboardArrange": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tiles": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "x": {
                  "type": "integer"
                },
                "y": {
                  "type": "integer"
                },
                "w": {
                  "type": "integer"
                },
                "h": {
                  "type": "integer"
                }
              }
            },
            "maxItems": 50,
            "description": "Each tile to move or resize, by its uuid, at its new `x`, `y`, `w` and `h`; tiles left out stay where they are. Every tile moves at once, so two may trade places, and an arrangement in which one tile would overlap another is refused whole"
          }
        },
        "required": [
          "tiles"
        ]
      },
      "DashboardAudienceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "team_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The team to give it to; leave it and `membership_uuid` out to give it to everyone"
          },
          "membership_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The person to give it to, by their seat; leave it and `team_uuid` out to give it to everyone"
          },
          "opens_first": {
            "type": "boolean"
          }
        }
      },
      "DashboardAudienceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "opens_first": {
            "type": "boolean"
          }
        },
        "required": [
          "opens_first"
        ]
      },
      "DashboardTileCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "resource": {
            "type": "string",
            "description": "The list to summarize, its path spelled as this description publishes it: one whose `GET {resource}/summary` the API publishes (`/customer_quotes`); kept for good once saved"
          },
          "query": {
            "type": "string",
            "description": "The summary's query string, as `GET {resource}/summary` takes it but for `period`, which is the dashboard's: `measures[]=won&group_by=sent_on:month&channel[]=email`. Name a saved view with `view={view_uuid}` to read the list through it; everyone the dashboard is given to must see that view"
          },
          "visualization": {
            "type": "string",
            "enum": [
              "number",
              "bar",
              "stacked_bar",
              "line",
              "area",
              "pie",
              "scatter",
              "table"
            ]
          },
          "x": {
            "type": "integer",
            "description": "Its first column, from 0; leave `x` and `y` out and it goes at the end of the grid"
          },
          "y": {
            "type": "integer",
            "description": "Its first row, from 0; leave `x` and `y` out and it goes at the end of the grid"
          },
          "w": {
            "type": "integer",
            "description": "Its width in columns, 1 to 12; left out, 3 for a number, 4 for a pie and 6 for the rest"
          },
          "h": {
            "type": "integer",
            "description": "Its height in rows, 1 to 12; left out, 2 for a number and 4 for the rest"
          }
        },
        "required": [
          "title",
          "resource",
          "visualization"
        ]
      },
      "DashboardTileUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "visualization": {
            "type": "string",
            "enum": [
              "number",
              "bar",
              "stacked_bar",
              "line",
              "area",
              "pie",
              "scatter",
              "table"
            ]
          },
          "x": {
            "type": "integer"
          },
          "y": {
            "type": "integer"
          },
          "w": {
            "type": "integer"
          },
          "h": {
            "type": "integer"
          }
        }
      },
      "DefaultIssuePartCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "order_type": {
            "type": "string",
            "enum": [
              "repair_order",
              "purchase_order"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "issued_part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an issued part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        },
        "required": [
          "part_uuid",
          "issued_part_uuid",
          "order_type",
          "quantity"
        ]
      },
      "DefaultIssuePartUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        }
      },
      "DirectRfqConditionAnswerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "direct_rfq_condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a direct RFQ condition"
          }
        },
        "required": [
          "condition_uuid",
          "direct_rfq_condition_uuid"
        ]
      },
      "DirectRfqConditionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string",
            "description": "The condition's code as a customer writes it. Creating one that spells a standard grade makes each of our conditions of that grade answer an RFQ for it, as `/direct_rfq_condition_answers` shows"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "DirectRfqConditionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "DirectRfqRepairServiceAnswerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "direct_rfq_repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a direct RFQ repair service"
          }
        },
        "required": [
          "repair_service_uuid",
          "direct_rfq_repair_service_uuid"
        ]
      },
      "DirectRfqRepairServiceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string",
            "description": "The repair service's code as a customer writes it. Creating one makes each of our repair services named like it (or, for a standard code such as OH, named as that code's service) answer an RFQ for it, as `/direct_rfq_repair_service_answers` shows"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "DirectRfqRepairServiceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "DirectRfqTagTypeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Our tag types that satisfy an RFQ asking for it. Left out on a create, the tag type its spelling means (a common spelling such as 8130 or C of C, or the code or name of one of ours) answers it"
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "DirectRfqTagTypesMapTagType": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tag_type": {
            "type": "string",
            "enum": [
              "faa_8130_3",
              "faa_easa_dual",
              "faa_uk_dual",
              "easa_form_1",
              "uk_caa_form_1",
              "tcca_form_one",
              "casa_form_1",
              "caac_release",
              "coc",
              "other"
            ]
          },
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the direct RFQ tag types ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "tag_type",
          "answers_uuids"
        ]
      },
      "DirectRfqTagTypeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "DocumentTemplateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "page_size": {
            "type": "string",
            "enum": [
              "letter",
              "a4"
            ]
          },
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd",
              "long"
            ]
          },
          "accent_color": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": [
              "string",
              "null"
            ]
          },
          "footer": {
            "type": [
              "string",
              "null"
            ]
          },
          "layout_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "The form's own Typst layout, which reads its record, letterhead, settings and page from `json(sys.inputs.data)`; empty or null prints our standard layout. At most 256 KB. Changing it needs Custom layouts (`not_entitled` without it); keeping the one the draft holds, or emptying it, does not"
          },
          "signer_skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "A certificate's form only: the skill an employee must hold, unexpired, to sign one; null lets any active employee sign. It applies at once, never through the draft"
          },
          "remarks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "printed_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string"
                },
                "shown": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "DocumentTemplateCheck": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "layout_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "A layout to use in place of the draft's, over the draft's look, without saving it: what an editor holds before it saves. Refused as `PATCH` refuses it, Custom layouts included; null or empty uses our standard layout"
          }
        }
      },
      "DocumentTemplatePreview": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "record_type": {
            "type": "string",
            "description": "The family of the record to render the form off, by its singular (`customer_quote`); without it and `record_uuid`, the newest record the form prints off, the first the publish check compiles on"
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the record to render the form off"
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "png"
            ],
            "description": "`pdf`, the default, answers the PDF in `content_base64`; `png` answers the first 5 pages as images in `pages`, to look at a layout without opening a PDF. Either spends one render"
          },
          "page_size": {
            "type": "string",
            "enum": [
              "letter",
              "a4"
            ],
            "description": "The draft's `page_size` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd",
              "long"
            ],
            "description": "The draft's `date_format` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "accent_color": {
            "type": [
              "string",
              "null"
            ],
            "description": "The draft's `accent_color` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "description": "The draft's `body` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "footer": {
            "type": [
              "string",
              "null"
            ],
            "description": "The draft's `footer` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "layout_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "A layout to use in place of the draft's, over the draft's look, without saving it: what an editor holds before it saves. Refused as `PATCH` refuses it, Custom layouts included; null or empty uses our standard layout"
          },
          "remarks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The draft's `remarks` as an editor holds it before it saves, used in place of the draft's and saved nowhere; refused as `PATCH` refuses it"
          },
          "printed_fields": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "key": {
                  "type": "string"
                },
                "shown": {
                  "type": "boolean"
                }
              }
            },
            "description": "Fields to print or leave off, turned over the draft's as `PATCH` turns them and saved nowhere"
          }
        }
      },
      "DocumentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "record_type": {
            "type": "string"
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "form": {
            "type": "string"
          }
        },
        "required": [
          "record_type",
          "record_uuid",
          "form"
        ]
      },
      "DocumentPrint": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "printer_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a printer"
          },
          "copies": {
            "type": "integer",
            "description": "How many copies, 1 to 99; omitted, 1"
          }
        },
        "required": [
          "printer_uuid"
        ]
      },
      "EmailBannerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "alt_text": {
            "type": "string"
          },
          "link_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_on": {
            "type": "string",
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "audiences": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customers",
                "vendors"
              ]
            }
          },
          "email_kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "purchase_order",
                "repair_order",
                "vendor_rfq",
                "consignor_statement",
                "investor_statement",
                "shipping_confirmation"
              ]
            }
          }
        },
        "required": [
          "organization_uuid",
          "alt_text",
          "starts_on",
          "audiences"
        ]
      },
      "EmailBannerUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "alt_text": {
            "type": "string"
          },
          "link_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "starts_on": {
            "type": "string",
            "format": "date"
          },
          "ends_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "audiences": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customers",
                "vendors"
              ]
            }
          },
          "email_kinds": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "customer_quote",
                "customer_order_acknowledgement",
                "proforma_invoice",
                "invoice",
                "credit_memo",
                "purchase_order",
                "repair_order",
                "vendor_rfq",
                "consignor_statement",
                "investor_statement",
                "shipping_confirmation"
              ]
            }
          }
        }
      },
      "EmailBannerUploadImage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "EmailBannerUploadImageMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "EmailLayoutUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "accent_color": {
            "type": "string",
            "description": "A color as `#rrggbb`"
          },
          "font": {
            "type": "string",
            "enum": [
              "arial",
              "georgia",
              "helvetica",
              "tahoma",
              "times",
              "trebuchet",
              "verdana"
            ]
          },
          "alignment": {
            "type": "string",
            "enum": [
              "left",
              "center"
            ]
          }
        }
      },
      "EmailLayoutBlockCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "logo",
              "text",
              "divider",
              "summary",
              "signature",
              "footer"
            ]
          },
          "placement": {
            "type": "string",
            "enum": [
              "before",
              "after"
            ]
          },
          "position": {
            "type": "integer",
            "description": "Its place among the blocks on the same side of the message, counting from 1; left out, or past the last, it goes last"
          },
          "alt_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `sender_name` (the sending person's name), `sender_title` (the sending person's title), and `sender_phone` (the sending person's phone number), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "sender_name",
                                          "sender_title",
                                          "sender_phone"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "sender_name",
                                                      "sender_title",
                                                      "sender_phone"
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "kind",
          "placement"
        ]
      },
      "EmailLayoutBlockUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "placement": {
            "type": "string",
            "enum": [
              "before",
              "after"
            ]
          },
          "position": {
            "type": "integer",
            "description": "Its place among the blocks on the same side of the message, counting from 1; past the last, it goes last. Left out when `placement` changes, it goes last on its new side"
          },
          "alt_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `sender_name` (the sending person's name), `sender_title` (the sending person's title), and `sender_phone` (the sending person's phone number), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "sender_name",
                                          "sender_title",
                                          "sender_phone"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "sender_name",
                                                      "sender_title",
                                                      "sender_phone"
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EmailLayoutPreview": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "record_type": {
            "type": "string",
            "enum": [
              "customer_quote"
            ],
            "description": "The family of the record the email is about, by its singular; without it and `record_uuid`, the organization's newest quote, or none where it has none yet"
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the record the email is about, one of the organization's"
          },
          "accent_color": {
            "type": "string",
            "description": "The layout's `accent_color` as an editor holds it before it saves, used in place of the saved one and saved nowhere; refused as `PATCH` refuses it"
          },
          "font": {
            "type": "string",
            "enum": [
              "arial",
              "georgia",
              "helvetica",
              "tahoma",
              "times",
              "trebuchet",
              "verdana"
            ],
            "description": "The layout's `font` as an editor holds it before it saves, used in place of the saved one and saved nowhere; refused as `PATCH` refuses it"
          },
          "alignment": {
            "type": "string",
            "enum": [
              "left",
              "center"
            ],
            "description": "The layout's `alignment` as an editor holds it before it saves, used in place of the saved one and saved nowhere; refused as `PATCH` refuses it"
          }
        }
      },
      "EmailSenderRuleCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sender": {
            "type": "string"
          },
          "effect": {
            "type": "string",
            "enum": [
              "block",
              "allow"
            ],
            "description": "`block` holds the sender's email unread; `allow` reads it though the mail scan marks it as spam, still holding malware and a failed authentication; `block` when left out"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "expiry": {
            "type": "string",
            "enum": [
              "never",
              "on_date",
              "after_last_use"
            ],
            "description": "`after_last_use` for an allow and `never` for a block when left out"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The rule's last day, today or later; sent only with `expiry` `on_date`"
          },
          "expires_after_days_unused": {
            "type": [
              "integer",
              "null"
            ],
            "description": "From 1 to 365, 45 when left out; sent only with `expiry` `after_last_use`"
          }
        },
        "required": [
          "sender"
        ]
      },
      "EmailSendingSettingsUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "off",
              "verified_domain"
            ]
          },
          "sending_domain_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The verified domain to send as, one of `sending_domains`; null chooses none"
          },
          "reply_to": {
            "type": "string",
            "enum": [
              "sender_and_terminal",
              "sender_only"
            ]
          },
          "bcc_sender": {
            "type": "boolean"
          }
        }
      },
      "EmailTemplatePreferencesUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "choices": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "organization_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an organization"
                },
                "email_template_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an email template"
                },
                "kind": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "choices"
        ]
      },
      "EmailTemplateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "customer_quote",
              "customer_order_acknowledgement",
              "proforma_invoice",
              "invoice",
              "credit_memo",
              "purchase_order",
              "repair_order",
              "vendor_rfq",
              "consignor_statement",
              "investor_statement",
              "shipping_confirmation"
            ]
          },
          "adds_signature": {
            "type": "boolean"
          },
          "cc_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "One line as a Tiptap (ProseMirror) document: a `doc` holding one `paragraph` of unmarked `text` and `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value). No mark, break or list is taken, and its words and fallbacks hold 250 characters at most",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone",
                                      "customer_po_number",
                                      "balance_due",
                                      "due_date",
                                      "vendor_reference",
                                      "vendor_quote_number",
                                      "statement_date",
                                      "net",
                                      "inventory_name",
                                      "order_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone",
                                          "customer_po_number",
                                          "balance_due",
                                          "due_date",
                                          "vendor_reference",
                                          "vendor_quote_number",
                                          "statement_date",
                                          "net",
                                          "inventory_name",
                                          "order_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone",
                                                      "customer_po_number",
                                                      "balance_due",
                                                      "due_date",
                                                      "vendor_reference",
                                                      "vendor_quote_number",
                                                      "statement_date",
                                                      "net",
                                                      "inventory_name",
                                                      "order_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "organization_uuid",
          "name",
          "kind",
          "subject",
          "body"
        ]
      },
      "EmailTemplateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "adds_signature": {
            "type": "boolean"
          },
          "cc_addresses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "One line as a Tiptap (ProseMirror) document: a `doc` holding one `paragraph` of unmarked `text` and `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value). No mark, break or list is taken, and its words and fallbacks hold 250 characters at most",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "valid_until",
                                      "customer_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone",
                                      "customer_po_number",
                                      "balance_due",
                                      "due_date",
                                      "vendor_reference",
                                      "vendor_quote_number",
                                      "statement_date",
                                      "net",
                                      "inventory_name",
                                      "order_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `identifier` (the release's number), `valid_until` (the day the quote is good until, as its form prints dates), `customer_reference` (the customer's own reference for their request), `total` (the order's total), `contact_first_name` (the contact's first name), `contact_name` (the contact's full name), `sender_name` (the sending person's name), `sender_title` (the sending person's title), `organization_name` (the organization's name), `organization_phone` (the organization's phone number), `customer_po_number` (the customer's purchase order number for the order), `balance_due` (what is left to pay the investor, once a draft is sent), `due_date` (the day payment is due, as its form prints dates), `vendor_reference` (the vendor's own reference for what the order buys, as their quote), `vendor_quote_number` (the repair shop's quote number for the work), `statement_date` (the statement's date, as its form prints dates), `net` (what the statement nets to), `inventory_name` (the name of the inventory whose sales it settles), `order_number` (the number of the order it ships), `ship_date` (the day it shipped, as its shipping packet prints dates), `shipped_via` (how it shipped: the carrier and service written when it shipped, else the order's), `tracking_numbers` (every carrier, MAWB and HAWB number it shipped under, in one line), and `lines_shipped` (each part shipped, with its quantity, condition and serial number, in one line: the first 25, then how many more the packet lists) (and whose optional `attrs.fallback` is printed where the field has no value), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "valid_until",
                                          "customer_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone",
                                          "customer_po_number",
                                          "balance_due",
                                          "due_date",
                                          "vendor_reference",
                                          "vendor_quote_number",
                                          "statement_date",
                                          "net",
                                          "inventory_name",
                                          "order_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "valid_until",
                                                      "customer_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone",
                                                      "customer_po_number",
                                                      "balance_due",
                                                      "due_date",
                                                      "vendor_reference",
                                                      "vendor_quote_number",
                                                      "statement_date",
                                                      "net",
                                                      "inventory_name",
                                                      "order_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "EmployeeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "membership_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The member the employee works under, who brings their login's name; leave it out for someone with no login"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of an employee with no login; one added from a member is called by the member's name"
          }
        }
      },
      "EmployeeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "hourly_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "EmployeeSkillCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "skill_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a skill"
          }
        },
        "required": [
          "skill_uuid"
        ]
      },
      "EmployeeSkillUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "ExportCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "report": {
            "type": "string",
            "enum": [
              "parts",
              "companies",
              "contacts",
              "warehouses",
              "inventories",
              "inventory_lines",
              "manifest_lines",
              "customer_part_prices",
              "customer_repair_prices",
              "repair_capabilities",
              "work_order_tasks",
              "work_instructions",
              "work_order_materials",
              "work_order_template_tasks",
              "work_order_template_materials",
              "vendor_part_prices",
              "requests_by_response_time",
              "requests_by_channel",
              "requests_by_part",
              "requests_by_salesperson",
              "unused_bom_parts",
              "listings",
              "capability_listings"
            ]
          },
          "query": {
            "type": "string",
            "description": "The report's narrowing, as the query string its own list takes: `q=blade&sort=-part_number` on parts, `kind[]=requested&received[from]=2026-10-01` on requests by part; omitted, what the list shows before anything narrows it"
          },
          "host_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a host"
          },
          "format": {
            "type": "string",
            "enum": [
              "xlsx",
              "csv",
              "txt",
              "zip"
            ],
            "description": "The file's format: `xlsx`, a spreadsheet, or `csv`; omitted, `xlsx`. A marketplace's listings come in the format that marketplace takes, so they take none"
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Whose listings a marketplace's listings export holds; omitted, the caller's organization. No other report takes one"
          }
        },
        "required": [
          "report"
        ]
      },
      "ExternalStreamUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "selected": {
            "type": "boolean"
          }
        }
      },
      "ExternalSystemCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "bot_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bot"
          }
        },
        "required": [
          "code",
          "name"
        ]
      },
      "ExternalSystemUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "bot_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bot"
          }
        }
      },
      "ImportMappingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "column_mapping": {
            "type": "object",
            "additionalProperties": true,
            "description": "Each column `key` of the import type (`GET /import_types`) to the header in the system's files that fills it"
          },
          "value_mappings": {
            "type": "object",
            "additionalProperties": true,
            "description": "Each column taking a value of a list CorePilot supplies, such as countries, currencies or ATA chapters, to the values in the system's files matched to them: `{ action: \"match\", value }`. They replace the matches its `value_matches` list holds. A value naming one of your records (a condition, a warehouse) is the system's key on that record, linked under the record's `external_keys`"
          },
          "unmatched_headers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Headers in the system's files left unmatched on purpose, which an import from it leaves unmatched though a column's alias names them; each must be a header some column of the import type matches"
          }
        },
        "required": [
          "column_mapping"
        ]
      },
      "FacilityCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "tax_origin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax origin"
          },
          "default_receiving_bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default receiving bin"
          },
          "default_inspection_bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default inspection bin"
          }
        }
      },
      "FacilityUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "type": [
              "string",
              "null"
            ]
          },
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": "boolean"
          },
          "tax_origin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax origin"
          },
          "default_receiving_bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default receiving bin"
          },
          "default_inspection_bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default inspection bin"
          }
        }
      },
      "FreightTermCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FreightTermUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "FxRateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency_code": {
            "type": "string"
          },
          "rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "as_of": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "currency_code",
          "rate",
          "as_of"
        ]
      },
      "FxRateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency_code": {
            "type": "string"
          },
          "rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "as_of": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ImportCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "import_type": {
            "type": "string",
            "enum": [
              "parts",
              "companies",
              "contacts",
              "company_addresses",
              "facilities",
              "warehouses",
              "bins",
              "inventories",
              "inventory_lines",
              "alternates",
              "manifest_lines",
              "customer_part_prices",
              "customer_repair_prices",
              "repair_capabilities",
              "work_order_tasks",
              "work_instructions",
              "work_order_materials",
              "work_order_template_tasks",
              "work_order_template_materials",
              "vendor_inventory_lines",
              "vendor_part_prices",
              "customer_quotes",
              "sales_orders",
              "sales_order_lines",
              "sales_order_shipments",
              "purchase_orders",
              "purchase_order_lines",
              "purchase_order_receipts",
              "invoices",
              "members"
            ]
          },
          "host_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a host"
          },
          "text": {
            "type": "string"
          },
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "migrating": {
            "type": "boolean",
            "description": "Whether its rows are another system's records migrating in, found again by that system's IDs and written as they stood there with nothing sent; asks for `data:migrate`. It joins that system's open migration or opens one, which makes the system the system of record until the migration's `switch_system_of_record`; outside a sandbox it applies only while that migration is open"
          },
          "applies_when_checked": {
            "type": "boolean",
            "description": "Whether it starts its check at once and applies once the check finds no problems, holding the apply's grants now; one whose check finds a problem waits, checked, for its rows to be fixed or skipped. Only the check it starts on receipt applies it: a changed mapping, options or file, or a check asked again, ends it, and `apply` applies the rest"
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "oneOf": [
                  {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "number",
                        "boolean",
                        "null"
                      ]
                    }
                  }
                ]
              },
              "properties": {
                "source": {
                  "type": "object",
                  "additionalProperties": {
                    "type": [
                      "string",
                      "number",
                      "boolean",
                      "null"
                    ]
                  }
                }
              }
            },
            "description": "Its rows inline, the same rows a `.jsonl` file holds one to a line (the bulk form, sent as the file): each an object keyed by the import type's column `key`s (`GET /import_types`; every type's row, column by column, is [`/llms/import_formats.md`](/llms/import_formats.md) and the `<Type>ImportRow` schema: `PartImportRow`, `CompanyImportRow` and one for each type), each value a string, number, boolean or null, mapped by those keys alone; a key that is no column is refused at `/rows/<i>/<key>`. A migration's row may also carry `source`, an object of the source system's fields no column takes, kept beside the record it writes"
          },
          "options": {
            "type": "object",
            "additionalProperties": true,
            "description": "The import type's options, as `update` takes them"
          }
        },
        "required": [
          "import_type"
        ]
      },
      "ImportCreateMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          },
          "import_type": {
            "type": "string",
            "enum": [
              "parts",
              "companies",
              "contacts",
              "company_addresses",
              "facilities",
              "warehouses",
              "bins",
              "inventories",
              "inventory_lines",
              "alternates",
              "manifest_lines",
              "customer_part_prices",
              "customer_repair_prices",
              "repair_capabilities",
              "work_order_tasks",
              "work_instructions",
              "work_order_materials",
              "work_order_template_tasks",
              "work_order_template_materials",
              "vendor_inventory_lines",
              "vendor_part_prices",
              "customer_quotes",
              "sales_orders",
              "sales_order_lines",
              "sales_order_shipments",
              "purchase_orders",
              "purchase_order_lines",
              "purchase_order_receipts",
              "invoices",
              "members"
            ]
          },
          "host_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a host"
          },
          "text": {
            "type": "string"
          },
          "migrating": {
            "type": "boolean"
          },
          "applies_when_checked": {
            "type": "boolean"
          }
        },
        "required": [
          "file",
          "import_type"
        ]
      },
      "ImportUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "date_format": {
            "type": "string",
            "enum": [
              "mdy",
              "dmy",
              "ymd"
            ]
          },
          "column_mapping": {
            "type": "object",
            "additionalProperties": true
          },
          "options": {
            "type": "object",
            "additionalProperties": true
          },
          "value_mappings": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ImportRowUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "cells": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "ImportReplaceFile": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "ImportReplaceFileMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "ImportReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "type": "object",
            "additionalProperties": true,
            "description": "Each row's uuid to the cells it takes: `{ \"<row uuid>\": { \"<column key>\": \"value\" } }`"
          }
        },
        "required": [
          "lines"
        ]
      },
      "ImportSkip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the rows are set aside, kept on each as its `skip_reason` in place of any it was skipped with before; a migration's comparison counts a skipped row with a reason, or with a problem, as explaining a difference. At most 500 characters; none keeps each row's own"
          },
          "row_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ImportUnskip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "row_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "InspectionChecklistItemCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "inspection_checklist_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an inspection checklist"
          },
          "prompt": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "check",
              "measurement",
              "choice",
              "text",
              "date",
              "photo"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "enforcement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "warn",
              "block",
              null
            ]
          },
          "minimum": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "maximum": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiple": {
            "type": "boolean"
          },
          "measurement_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "upload_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an upload category"
          },
          "position": {
            "type": "integer",
            "description": "Where to put the item, from 1; left out, it goes last"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "label": {
                  "type": "string"
                },
                "fails": {
                  "type": "boolean"
                }
              }
            }
          }
        },
        "required": [
          "inspection_checklist_uuid",
          "prompt",
          "kind"
        ]
      },
      "InspectionChecklistItemUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "prompt": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "check",
              "measurement",
              "choice",
              "text",
              "date",
              "photo"
            ]
          },
          "required": {
            "type": "boolean"
          },
          "enforcement": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "warn",
              "block",
              null
            ]
          },
          "minimum": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "maximum": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiple": {
            "type": "boolean"
          },
          "measurement_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "upload_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an upload category"
          },
          "position": {
            "type": "integer",
            "description": "Where to move the item, from 1; the items between close up"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "label": {
                  "type": "string"
                },
                "fails": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      },
      "InspectionChecklistCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "receiving",
              "outbound_qc"
            ]
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a skill"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "prompt": {
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "check",
                    "measurement",
                    "choice",
                    "text",
                    "date",
                    "photo"
                  ]
                },
                "required": {
                  "type": "boolean"
                },
                "enforcement": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "warn",
                    "block",
                    null
                  ]
                },
                "minimum": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "maximum": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "multiple": {
                  "type": "boolean"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                },
                "upload_category_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an upload category"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "fails": {
                        "type": "boolean"
                      }
                    }
                  }
                }
              }
            },
            "maxItems": 100,
            "description": "Its items in the order they are asked; more are added through `/inspection_checklist_items`"
          }
        },
        "required": [
          "organization_uuid",
          "name",
          "step"
        ]
      },
      "InspectionChecklistUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "receiving",
              "outbound_qc"
            ]
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a skill"
          }
        }
      },
      "InspectionItemUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "result": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pass",
              "fail",
              "not_applicable",
              null
            ],
            "description": "A `check` item's answer"
          },
          "value": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "A `measurement` item's answer"
          },
          "text_value": {
            "type": [
              "string",
              "null"
            ],
            "description": "A `text` item's answer"
          },
          "date_value": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "A `date` item's answer"
          },
          "chosen": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A `choice` item's answer, the labels of the options chosen"
          },
          "upload_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Photos for a `photo` item, each an upload filed under its category; added to those it has, and filed on the unit too"
          }
        }
      },
      "InspectionItemWaive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string",
            "description": "Why the failing answer is accepted"
          }
        },
        "required": [
          "note"
        ]
      },
      "InspectionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "inventory_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The held unit to inspect against its organization's receiving checklist; name one of the three"
          },
          "receipt_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The line on an open receipt requiring a receiving inspection, answered before Receive and carried onto the unit Receive mints; a received line's starts on its unit. Name one of the three"
          },
          "release_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The part line on an open release to answer its organization's outbound QC checklist; name one of the three"
          }
        }
      },
      "InspectionReopen": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": "string",
            "description": "Why it is reopened; its answers stay, to be corrected"
          }
        },
        "required": [
          "reason"
        ]
      },
      "InventoryCodeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "acquisition_cost_cents": {
            "type": "integer"
          },
          "chargeout_rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "acquired_on": {
            "type": "string",
            "format": "date"
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          },
          "owner_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an owner company"
          },
          "rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "consigned_on": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "name"
        ]
      },
      "InventoryCodeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "InventoryCodeAddCostPool": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "acquisition_cost_cents": {
            "type": "integer"
          },
          "chargeout_rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "InventoryCodeAdjustValue": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount_cents": {
            "type": "integer"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "InventoryCodeAssignCosts": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "shares": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "inventory_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory line"
                },
                "cost_cents": {
                  "type": "integer"
                }
              }
            }
          }
        },
        "required": [
          "shares"
        ]
      },
      "InventoryCodeBillUnrecoveredCost": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "InventoryCodeClosePool": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount_cents": {
            "type": "integer"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "InventoryCodeCreateReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "manifest_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a manifest"
          }
        }
      },
      "InventoryCodeFundFromParent": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount_cents": {
            "type": "integer"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "InventoryLedgerDefaultUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ledger_account_uuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "ledger_account_uuid"
        ]
      },
      "InventoryCodeWriteOff": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "amount_cents": {
            "type": "integer"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "InventoryLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "offered_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an offered condition"
          },
          "inventory_code_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "acquisition_cost_cents": {
            "type": "integer"
          },
          "received_on": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "quantity",
          "part_uuid",
          "condition_uuid"
        ]
      },
      "InventoryLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "sub_location": {
            "type": [
              "string",
              "null"
            ]
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ]
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tail_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine_serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "receiver_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "listing_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "time_since_new_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "time_since_overhaul_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "time_limit_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "cycles_since_new": {
            "type": [
              "integer",
              "null"
            ]
          },
          "cycles_since_overhaul": {
            "type": [
              "integer",
              "null"
            ]
          },
          "cycle_limit": {
            "type": [
              "integer",
              "null"
            ]
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "offered_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The one other condition the line is offered in, never its own; null takes it off. It changes even while another system keeps the inventory"
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ]
            }
          }
        }
      },
      "InventoryLineAdjustQuantity": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity_on_hand": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "quantity_on_hand"
        ]
      },
      "InventoryLineAdjustValue": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "acquisition_cost_cents": {
            "type": "integer"
          },
          "repair_cost_cents": {
            "type": "integer"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "InventoryLineReject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "InventoryLineSplit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tag_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "trace_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "air_carrier",
                    "repair_station",
                    "oem",
                    "distributor",
                    "government",
                    "other",
                    null
                  ]
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "faa_8130_3",
                      "easa_form_1",
                      "uk_caa_form_1",
                      "tcca_form_one",
                      "casa_form_1",
                      "caac_release",
                      "coc",
                      "other"
                    ]
                  }
                }
              }
            },
            "maxItems": 100,
            "description": "The new lines, in order: each the whole units it takes as its `quantity` and its own serial and tag, taking none of the line's serial when given none. Together they take from one to one fewer than the line holds, none of them reserved; a serialized part's split leaves the line and each new line one unit"
          }
        },
        "required": [
          "lines"
        ]
      },
      "InventoryParticipationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "inventory_code_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "company_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "started_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        },
        "required": [
          "inventory_code_uuid",
          "company_uuid",
          "rate"
        ]
      },
      "InventoryParticipationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rate": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "required": [
          "rate"
        ]
      },
      "InvestorStatementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "participation_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a participation"
          },
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "participation_uuid"
        ]
      },
      "InvestorStatementUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "statement_date": {
            "type": "string",
            "format": "date"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "InvestorStatementEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "investor_statement"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the investor statement sends, each attaching its own PDF (`investor_statement` the Investor Statement); `investor_statement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the investor statement's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the investor statement's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the investor statement's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the investor statement as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "statement_date",
                                      "net",
                                      "balance_due",
                                      "inventory_name",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the investor statement as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "statement_date",
                                          "net",
                                          "balance_due",
                                          "inventory_name",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "statement_date",
                                                      "net",
                                                      "balance_due",
                                                      "inventory_name",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "InvestorStatementPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "investor_statement"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the investor statement sends, each attaching its own PDF (`investor_statement` the Investor Statement); `investor_statement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the investor statement's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the investor statement; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "statement_date",
                                      "net",
                                      "balance_due",
                                      "inventory_name",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the investor statement; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "statement_date",
                                          "net",
                                          "balance_due",
                                          "inventory_name",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "statement_date",
                                                      "net",
                                                      "balance_due",
                                                      "inventory_name",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "InvoiceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "InvoiceEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "invoice",
              "credit_memo"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the invoice sends, each attaching its own PDF (`invoice` the Invoice, `credit_memo` the Credit Memo); `invoice` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the invoice's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the invoice's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the invoice's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the invoice as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "customer_po_number",
                                      "total",
                                      "balance_due",
                                      "due_date",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the invoice as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "customer_po_number",
                                          "total",
                                          "balance_due",
                                          "due_date",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "customer_po_number",
                                                      "total",
                                                      "balance_due",
                                                      "due_date",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "InvoiceLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          }
        }
      },
      "InvoiceLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          }
        }
      },
      "InvoicePreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "invoice",
              "credit_memo"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the invoice sends, each attaching its own PDF (`invoice` the Invoice, `credit_memo` the Credit Memo); `invoice` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the invoice's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the invoice; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "customer_po_number",
                                      "total",
                                      "balance_due",
                                      "due_date",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the invoice; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "customer_po_number",
                                          "total",
                                          "balance_due",
                                          "due_date",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "customer_po_number",
                                                      "total",
                                                      "balance_due",
                                                      "due_date",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "InvoiceResolvePartNumbers": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "active_only": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manufacturer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a manufacturer"
                },
                "classification_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a classification"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                }
              }
            }
          }
        },
        "required": [
          "parts"
        ]
      },
      "InvoiceReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "home_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "home_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                }
              }
            }
          }
        }
      },
      "IssuedPartCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "order_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an order line"
          },
          "inventory_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an inventory line"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "order_line_uuid",
          "inventory_line_uuid",
          "quantity"
        ]
      },
      "IssuedPartUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity_to_issue": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "quantity_to_put_back": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        }
      },
      "IssuedPartPutBack": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "LaborEntryCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The task the time was worked on"
          },
          "employee_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "Whose time it is: any employee of the task's organization, with or without a seat"
          },
          "skill_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The skill the time was worked with: one of the task's, held by the employee on the day it started"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the time started; sent with `ended_at`, never with `worked_on` and `hours`"
          },
          "ended_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the time ended, never in the future"
          },
          "worked_on": {
            "type": "string",
            "format": "date",
            "description": "The business day a timesheet gives, sent with `hours`: the time starts at the start of that day"
          },
          "hours": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The hours a timesheet gives for `worked_on`, more than none and no more than the day holds"
          }
        },
        "required": [
          "work_order_task_uuid",
          "employee_uuid",
          "skill_uuid"
        ]
      },
      "LaborEntryCorrect": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "employee_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Whose time it should have been; absent keeps the entry's"
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The skill it should have been worked with; absent keeps the entry's"
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it should have started; absent keeps the entry's"
          },
          "ended_at": {
            "type": "string",
            "format": "date-time",
            "description": "When it should have ended; absent keeps the entry's"
          }
        }
      },
      "LeadTimeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "LeadTimeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "days": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "LedgerAccountCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "LedgerAccountUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "asset",
              "liability",
              "equity",
              "revenue",
              "cogs",
              "expense"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "OrganizationLedgerDefaultUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "ledger_account_uuid": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "ledger_account_uuid"
        ]
      },
      "ManifestUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "ManifestCreateReceipt": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The lines to put on the receipt; left out, every line still outstanding"
          }
        }
      },
      "ManifestImportLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      },
      "ManifestLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "quantity"
        ]
      },
      "ManifestLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ManifestLineScrap": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "quantity"
        ]
      },
      "ManifestReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "part_number_raw": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "bin_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a bin"
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "part_number_raw": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "bin_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a bin"
                },
                "note": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "ManufacturerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ManufacturerUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "MarketplaceCatalogCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_integration_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace integration"
          },
          "name": {
            "type": "string"
          },
          "lists": {
            "type": "string",
            "enum": [
              "inventory",
              "capabilities"
            ]
          },
          "buyer_group": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "marketplace_integration_uuid",
          "name"
        ]
      },
      "MarketplaceCatalogUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "MarketplaceConditionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace"
          },
          "code": {
            "type": "string",
            "description": "The condition's code as the marketplace spells it. Creating one makes each of our conditions whose standard grade the marketplace spells this way answer an RFQ for it, and list as it unless already listed there, as `/condition_listings` and `/condition_answers` show"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "marketplace_uuid",
          "code",
          "name"
        ]
      },
      "MarketplaceConditionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "MarketplaceIntegrationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "marketplace_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace"
          },
          "mode": {
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ]
          },
          "schedule": {
            "type": "string",
            "enum": [
              "daily",
              "weekly"
            ]
          },
          "credentials": {
            "type": "object",
            "additionalProperties": true,
            "description": "The marketplace's credentials by the `key`s `credential_fields` names: one sent replaces that one, a null clears it, and one left out is kept"
          }
        },
        "required": [
          "organization_uuid",
          "marketplace_uuid"
        ]
      },
      "MarketplaceIntegrationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "manual",
              "automatic"
            ]
          },
          "schedule": {
            "type": "string",
            "enum": [
              "daily",
              "weekly"
            ]
          },
          "credentials": {
            "type": "object",
            "additionalProperties": true,
            "description": "The marketplace's credentials by the `key`s `credential_fields` names: one sent replaces that one, a null clears it, and one left out is kept"
          }
        }
      },
      "MarketplaceMeasurementUnitCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "marketplace_uuid",
          "code",
          "name"
        ]
      },
      "MarketplaceMeasurementUnitUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "MarketplaceRepairServiceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace"
          },
          "code": {
            "type": "string",
            "description": "The service's code as the marketplace spells it. Creating one makes each of our repair services the marketplace names this way answer an RFQ for it, and list as it unless already listed there, as `/repair_service_listings` and `/repair_service_answers` show"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "marketplace_uuid",
          "code",
          "name"
        ]
      },
      "MarketplaceRepairServiceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "MarketplaceTagTypeCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "listed_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "marketplace_uuid",
          "code",
          "name"
        ]
      },
      "MarketplaceTagTypeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "listed_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "answering_tag_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "MarketplaceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "known_as": {
            "type": [
              "string",
              "null"
            ],
            "description": "Add it as a marketplace the app knows (ILS or PartsBase) and its conditions, tag types and repair services come with it, and each of ours lists as, and answers RFQs for, its match there, as `/condition_listings`, `/condition_answers`, `/marketplace_tag_types`, `/repair_service_listings` and `/repair_service_answers` show. Leave it null to add a marketplace of your own, with nothing mapped"
          },
          "includes_prices": {
            "type": "boolean"
          },
          "includes_vendor_inventory": {
            "type": "boolean"
          }
        }
      },
      "MarketplaceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "includes_prices": {
            "type": "boolean"
          },
          "includes_vendor_inventory": {
            "type": "boolean"
          }
        }
      },
      "MarketplaceMapCondition": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "lists_as_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the marketplace's own condition ours lists as; null lists it as none"
          },
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the marketplace's own conditions ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "condition_uuid",
          "lists_as_uuid",
          "answers_uuids"
        ]
      },
      "MarketplaceMapMeasurementUnit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "measurement_unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "lists_as_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the marketplace's own unit ours lists as; null lists it under its own code"
          }
        },
        "required": [
          "measurement_unit_uuid",
          "lists_as_uuid"
        ]
      },
      "MarketplaceMapRepairService": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "lists_as_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the marketplace's own repair service ours lists as; null lists it as none"
          },
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the marketplace's own repair services ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "repair_service_uuid",
          "lists_as_uuid",
          "answers_uuids"
        ]
      },
      "MarketplaceMapTagType": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tag_type": {
            "type": "string",
            "enum": [
              "faa_8130_3",
              "faa_easa_dual",
              "faa_uk_dual",
              "easa_form_1",
              "uk_caa_form_1",
              "tcca_form_one",
              "casa_form_1",
              "caac_release",
              "coc",
              "other"
            ]
          },
          "lists_as_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the marketplace's own tag type ours lists as; null lists it as none"
          },
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the marketplace's own tag types ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "tag_type",
          "lists_as_uuid",
          "answers_uuids"
        ]
      },
      "MeasurementUnitListingCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "measurement_unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "marketplace_measurement_unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace measurement unit"
          }
        },
        "required": [
          "measurement_unit_uuid",
          "marketplace_measurement_unit_uuid"
        ]
      },
      "MeasurementUnitListingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_measurement_unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace measurement unit"
          }
        }
      },
      "MeasurementUnitCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dimension": {
            "type": "string",
            "enum": [
              "count",
              "length",
              "weight",
              "volume",
              "time"
            ]
          }
        }
      },
      "MeasurementUnitUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dimension": {
            "type": "string",
            "enum": [
              "count",
              "length",
              "weight",
              "volume",
              "time"
            ]
          }
        }
      },
      "MembershipCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email_address": {
            "type": "string",
            "description": "Where the invitation goes, and the login it makes or finds; with `invite` false, optional and kept for a later invitation"
          },
          "name": {
            "type": "string",
            "description": "What the seat goes by here; left out of an invitation, the name of a seat with no login that keeps the address, else the address's local part"
          },
          "tier": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "standard"
            ],
            "description": "The seat's access; left out, `standard`, or the tier of a seat with no login that keeps the address"
          },
          "invite": {
            "type": "boolean",
            "description": "`false` adds the person with no login and mails nothing, so they sign in as no one until `POST /memberships/{uuid}/invite`; `true` when left out"
          },
          "role_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The active roles a standard seat does what they bundle of; left out, none, or the roles of a seat with no login that keeps the address"
          }
        }
      },
      "MembershipUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tier": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "standard"
            ],
            "description": "The seat's access; only an owner makes or unmakes an owner"
          },
          "role_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The roles the seat holds, replacing the ones it held: any active role, or one it already holds"
          }
        }
      },
      "MembershipInvite": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email_address": {
            "type": "string",
            "description": "Where the invitation goes, and the login it makes or finds; left out, the address the seat kept"
          }
        }
      },
      "MessageCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "phone",
              "chat"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "inbound",
              "outbound"
            ]
          },
          "occurred_at": {
            "type": "string",
            "format": "date-time"
          },
          "body_plain": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a company"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "conversation_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The conversation it joins, whatever quote it names"
          },
          "customer_quote_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The quote it is about: it joins the conversation the quote came from, or starts one about it"
          },
          "upload_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 20,
            "description": "Files sent with it, each stored first through `POST /uploads`, in the order they came"
          }
        },
        "required": [
          "channel",
          "kind",
          "company_uuid"
        ]
      },
      "MessageAllowSender": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "address",
              "domain"
            ],
            "description": "`address` allows this sender's own address, `domain` anyone at its domain; `address` when left out. The allow ends 45 days after the last email it governs, and a received email held as suspected spam, or as from a blocked sender the allow now outranks, is processed again"
          }
        }
      },
      "MessageBlockSender": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "address",
              "domain"
            ],
            "description": "`address` blocks this sender's own address, `domain` anyone at its domain; `address` when left out"
          }
        }
      },
      "MessageMove": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "conversation_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The conversation of the same organization it joins; the one it suggests when left out"
          }
        }
      },
      "MessageReprocess": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "claude-opus-5-5",
              "claude-sonnet-5-5",
              "gpt-6-astra",
              "gpt-6.1-sol",
              "gpt-6-luna"
            ],
            "description": "The roster model to read an RFQ with, alone; left out, the stronger model the deployment escalates unsure reads to. Other emails ignore it"
          }
        }
      },
      "MigrationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "source_count": {
            "type": "integer",
            "description": "How many of the family's records the system holds"
          },
          "source_totals": {
            "type": "object",
            "additionalProperties": true,
            "description": "The family's totals as the system states them, keyed by a total the family compares: `inventory_value` for inventory lines, in whole cents; for sales order and purchase order lines, `ordered_value_<currency>` once per currency their orders are in, for invoices `billed_value_<currency>` and for customer quotes `quoted_value_<currency>`, each in that currency's minor units (`ordered_value_usd`, `ordered_value_jpy`), since two currencies' amounts don't add; a family comparing its count alone takes none"
          }
        },
        "required": [
          "source_count"
        ]
      },
      "NotificationPreferencesUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "topic": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        },
        "required": [
          "topics"
        ]
      },
      "OrganizationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "logo_height_mm": {
            "type": "integer"
          },
          "automatic_invoices_at": {
            "type": "string",
            "description": "The time of day, `HH:MM` on the 24-hour clock in the organization's time zone, after which each day's draft invoices for customers who take them by email are issued and emailed"
          },
          "default_notes_to_shop": {
            "type": [
              "string",
              "null"
            ]
          },
          "inspection_required_for": {
            "type": "string",
            "enum": [
              "every_line",
              "marked_parts"
            ]
          },
          "default_shipping_address_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default shipping address"
          }
        }
      },
      "OrganizationUploadLogo": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "OrganizationUploadLogoMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "PartClassificationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "PartClassificationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "PartCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_chapter": {
            "type": [
              "string",
              "null"
            ]
          },
          "nsn": {
            "type": [
              "string",
              "null"
            ]
          },
          "serialized": {
            "type": "boolean"
          },
          "life_limited": {
            "type": "boolean"
          },
          "shelf_life_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "hazmat": {
            "type": "boolean"
          },
          "un_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_shipping_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_class": {
            "type": [
              "string",
              "null"
            ]
          },
          "pma": {
            "type": "boolean"
          },
          "inspection_required": {
            "type": "boolean"
          },
          "inspection_instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool": {
            "type": "boolean"
          },
          "calibration_required": {
            "type": "boolean"
          },
          "calibration_interval_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "eccn": {
            "type": [
              "string",
              "null"
            ]
          },
          "usml_category": {
            "type": [
              "string",
              "null"
            ]
          },
          "export_controlled": {
            "type": "boolean"
          },
          "hts_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_of_origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "weight": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "length": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "width": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "height": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "lead_time_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "hot": {
            "type": "boolean"
          },
          "manufacturer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a manufacturer"
          },
          "classification_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a classification"
          },
          "measurement_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "weight_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a weight unit"
          },
          "dimension_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a dimension unit"
          },
          "preferred_vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the preferred vendor"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "revenue_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a revenue ledger account"
          },
          "applicability_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "repair_service_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hidden_marketplace_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The part's standing receiving requirements, the whole list"
          }
        },
        "required": [
          "part_number"
        ]
      },
      "PartUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_chapter": {
            "type": [
              "string",
              "null"
            ]
          },
          "nsn": {
            "type": [
              "string",
              "null"
            ]
          },
          "serialized": {
            "type": "boolean"
          },
          "life_limited": {
            "type": "boolean"
          },
          "shelf_life_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "hazmat": {
            "type": "boolean"
          },
          "un_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_shipping_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "hazmat_class": {
            "type": [
              "string",
              "null"
            ]
          },
          "pma": {
            "type": "boolean"
          },
          "inspection_required": {
            "type": "boolean"
          },
          "inspection_instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool": {
            "type": "boolean"
          },
          "calibration_required": {
            "type": "boolean"
          },
          "calibration_interval_months": {
            "type": [
              "integer",
              "null"
            ]
          },
          "eccn": {
            "type": [
              "string",
              "null"
            ]
          },
          "usml_category": {
            "type": [
              "string",
              "null"
            ]
          },
          "export_controlled": {
            "type": "boolean"
          },
          "hts_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "country_of_origin": {
            "type": [
              "string",
              "null"
            ]
          },
          "weight": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "length": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "width": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "height": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "lead_time_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "hot": {
            "type": "boolean"
          },
          "manufacturer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a manufacturer"
          },
          "classification_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a classification"
          },
          "measurement_unit_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a measurement unit"
          },
          "weight_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a weight unit"
          },
          "dimension_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a dimension unit"
          },
          "preferred_vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the preferred vendor"
          },
          "tax_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tax category"
          },
          "revenue_ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a revenue ledger account"
          },
          "applicability_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "repair_service_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hidden_marketplace_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requirement_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The part's standing receiving requirements, the whole list"
          }
        }
      },
      "PasswordConfirmationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "password": {
            "type": "string"
          }
        },
        "required": [
          "password"
        ]
      },
      "PaymentTermCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "net_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "prepayment_required": {
            "type": "boolean"
          }
        }
      },
      "PaymentTermUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "net_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "prepayment_required": {
            "type": "boolean"
          }
        }
      },
      "PrintRequestCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "printer_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a printer"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "record_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a record"
                },
                "record_type": {
                  "type": "string"
                },
                "form": {
                  "type": "string"
                },
                "copies": {
                  "type": "integer"
                }
              }
            },
            "maxItems": 4000,
            "description": "What it prints, in order, up to 4000: each a record by `record_type` and `record_uuid`, the `form` `POST /documents` takes, and its `copies`, 1 to 99 (omitted, 1), each printed in full before the next document starts. An inventory line's label prints once a piece, so a line of several whole pieces and no serial number prints its quantity times its copies, and the 4000 counts every label and copy"
          },
          "matching": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "record_type": {
                "type": "string"
              },
              "query": {
                "type": "string"
              },
              "form": {
                "type": "string"
              },
              "copies": {
                "type": "integer"
              }
            },
            "description": "In place of `documents`, every record of `record_type` its list's `query` matches, in that list's order: the query string `GET` on the list takes (`warehouse[]=…&sort=-name`), the `form` each prints and its `copies`. It is placed `queued` with no documents, which its delivery generates a batch at a time; a record that doesn't print the form, or belongs to an organization other than the printer's, is left out and counted in `left_out`. Refused past 4000 records or prints"
          }
        },
        "required": [
          "printer_uuid"
        ]
      },
      "PrintRequestResume": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "after_document_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The last of the print's documents, from `/print_requests/{uuid}/documents`, that came out of the printer"
          },
          "printer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The printer the rest goes to; omitted, the print's own"
          }
        },
        "required": [
          "after_document_uuid"
        ]
      },
      "PrinterCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "print_node_id": {
            "type": "integer",
            "description": "PrintNode's id for the printer, one `/print_node_integration/printers` lists"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "label"
            ]
          },
          "dpi": {
            "type": [
              "integer",
              "null"
            ]
          },
          "label_size": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "4x6",
              "4x3",
              null
            ]
          },
          "facility_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The facility it stands at; left out, its organization's own facility"
          }
        },
        "required": [
          "print_node_id",
          "name"
        ]
      },
      "PrinterUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "label"
            ]
          },
          "dpi": {
            "type": [
              "integer",
              "null"
            ]
          },
          "label_size": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "4x6",
              "4x3",
              null
            ]
          },
          "facility_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a facility"
          }
        }
      },
      "ProfileUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "time_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "default_facility_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default facility"
          },
          "nav_item_order": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hidden_nav_items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "email_signature": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "Text as a Tiptap (ProseMirror) document: a `doc` of `paragraph`s, `bulletList`s and `orderedList`s, whose `listItem`s hold paragraphs; a paragraph holds `text` (marked `bold`, `italic` or `link` with an http, https or mailto `href`), `field`s whose `attrs.name` is `sender_name` (the sending person's name), `sender_title` (the sending person's title), and `sender_phone` (the sending person's phone number), and `hardBreak`s. Nothing else is taken, HTML least of all",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "sender_name",
                                          "sender_title",
                                          "sender_phone"
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "sender_name",
                                                      "sender_title",
                                                      "sender_phone"
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "ProfileUploadAvatar": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "ProfileUploadAvatarMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "ProfileUploadSignature": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "ProfileUploadSignatureMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "ProtectionReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "ProtectionReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "PublicationCategoryCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "PublicationCategoryUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "PublicationRevisionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "publication_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a publication"
          },
          "revision": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "temporary": {
            "type": "boolean"
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        },
        "required": [
          "publication_uuid",
          "revision"
        ]
      },
      "PublicationRevisionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "revision": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "temporary": {
            "type": "boolean"
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "PublicationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "manufacturer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a manufacturer"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "verifier_skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a verifier skill"
          },
          "part_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "category_uuid"
        ]
      },
      "PublicationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "ata_zone": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "manufacturer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a manufacturer"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "verifier_skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a verifier skill"
          },
          "part_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PublicationSupersede": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "publication_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a publication"
          }
        },
        "required": [
          "publication_uuid"
        ]
      },
      "PublicationVerify": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "employee_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an employee"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "employee_uuid"
        ]
      },
      "PurchaseOrderCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "vendor_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "inventory_code_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tax_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "inventory_code_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory code"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "PurchaseOrderUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "vendor_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "facility_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a facility"
              },
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "bill_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "billing_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a billing address"
              },
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "PurchaseOrderAddPackage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "unit_cost_cents": {
            "type": "string"
          },
          "tax_cents": {
            "type": [
              "string",
              "null"
            ]
          },
          "pool": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "inventory_code_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an inventory code"
              },
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "chargeout_rate": {
                "type": [
                  "number",
                  "string"
                ],
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              }
            }
          }
        },
        "required": [
          "description",
          "unit_cost_cents",
          "pool"
        ]
      },
      "PurchaseOrderEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "purchase_order"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the purchase order sends, each attaching its own PDF (`purchase_order` the Purchase Order); `purchase_order` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the purchase order's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the purchase order's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the purchase order's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the purchase order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "vendor_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the purchase order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "vendor_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "vendor_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "PurchaseOrderImportLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      },
      "PurchaseOrderLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "inventory_code_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected core condition"
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "PurchaseOrderLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "inventory_code_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "lease"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected core condition"
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "PurchaseOrderLineAllocate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "demands": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "demand_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a demand"
                },
                "demand_type": {
                  "type": "string"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            }
          }
        },
        "required": [
          "demands"
        ]
      },
      "PurchaseOrderPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "purchase_order"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the purchase order sends, each attaching its own PDF (`purchase_order` the Purchase Order); `purchase_order` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the purchase order's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the purchase order; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "vendor_reference",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the purchase order; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "vendor_reference",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "vendor_reference",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "PurchaseOrderRequirementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "requirement_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a requirement"
          }
        },
        "required": [
          "requirement_uuid"
        ]
      },
      "PurchaseOrderRequirementWaive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string"
          }
        },
        "required": [
          "note"
        ]
      },
      "PurchaseOrderResolvePartNumbers": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "active_only": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manufacturer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a manufacturer"
                },
                "classification_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a classification"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                }
              }
            }
          }
        },
        "required": [
          "parts"
        ]
      },
      "PurchaseOrderReturn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "receipt_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a receipt line"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            }
          }
        },
        "required": [
          "lines"
        ]
      },
      "PurchaseOrderReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "removed_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tax_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "inventory_code_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory code"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updated_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "position": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tax_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "inventory_code_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory code"
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "PurchaseOrderVoucher": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "QuickbooksAssignmentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "record_type": {
            "type": "string",
            "enum": [
              "part",
              "charge",
              "customer",
              "vendor",
              "combined_tax_rate",
              "ledger_account"
            ]
          },
          "record_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "quickbooks_id": {
            "type": "string"
          }
        },
        "required": [
          "record_type",
          "record_uuid"
        ]
      },
      "QuickbooksAssignmentUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quickbooks_id": {
            "type": "string"
          }
        },
        "required": [
          "quickbooks_id"
        ]
      },
      "QuickbooksIntegrationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "cutover_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "ReceiptUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_via": {
            "type": [
              "string",
              "null"
            ]
          },
          "tracking_number": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ReceiptLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "protected": {
            "type": "boolean"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "protection_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a protection reason"
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "air_carrier",
              "repair_station",
              "oem",
              "distributor",
              "government",
              "other",
              null
            ]
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "tail_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "engine_serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "time_since_new_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "time_since_overhaul_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "cycles_since_new": {
            "type": [
              "integer",
              "null"
            ]
          },
          "cycles_since_overhaul": {
            "type": [
              "integer",
              "null"
            ]
          },
          "time_limit_hours": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "cycle_limit": {
            "type": [
              "integer",
              "null"
            ]
          },
          "calibration_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "calibration_result": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "passed",
              "out_of_tolerance",
              "failed",
              null
            ]
          },
          "calibration_certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "inventory_code_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inventory code"
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tag_types": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "faa_8130_3",
                "easa_form_1",
                "uk_caa_form_1",
                "tcca_form_one",
                "casa_form_1",
                "caac_release",
                "coc",
                "other"
              ]
            }
          }
        }
      },
      "ReceiptLineReject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ReceiptLineSplit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "ReceiptListPart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": "string"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a warehouse"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "part_uuid",
          "quantity"
        ]
      },
      "ReceiptReceive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "leave_unready": {
            "type": "boolean"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 1000
          },
          "returned_as_is_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "package_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ReceiptReceiveAndShip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "leave_unready": {
            "type": "boolean"
          },
          "shipped_via": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipped_on": {
            "type": "string",
            "format": "date",
            "description": "The day it shipped, in the tenant's time zone: today or earlier; absent, today"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 1000
          },
          "returned_as_is_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "package_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tracking_references": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "value": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "ReceiptReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "protected": {
                  "type": "boolean"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "bin_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a bin"
                },
                "protection_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a protection reason"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "trace_type": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "air_carrier",
                    "repair_station",
                    "oem",
                    "distributor",
                    "government",
                    "other",
                    null
                  ]
                },
                "trace_source": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "tag_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "shelf_life_expires_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "tail_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "engine_serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "time_since_new_hours": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "time_since_overhaul_hours": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "cycles_since_new": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "cycles_since_overhaul": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "time_limit_hours": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "cycle_limit": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "calibration_due_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "calibration_result": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "passed",
                    "out_of_tolerance",
                    "failed",
                    null
                  ]
                },
                "calibration_certificate_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "inventory_code_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an inventory code"
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tag_types": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "faa_8130_3",
                      "easa_form_1",
                      "uk_caa_form_1",
                      "tcca_form_one",
                      "casa_form_1",
                      "caac_release",
                      "coc",
                      "other"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "RejectionReasonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "RejectionReasonUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "RejectionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "assignee_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an assignee"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          }
        }
      },
      "RejectionAddToRepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_order_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair order line"
          }
        },
        "required": [
          "repair_order_line_uuid"
        ]
      },
      "RejectionPutBack": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        }
      },
      "RejectionReturn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "replace": {
            "type": "boolean"
          }
        }
      },
      "RejectionScrap": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ReleaseCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sales_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a sales order"
          },
          "repair_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair order"
          },
          "purchase_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order"
          },
          "work_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work order"
          },
          "company_address_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a company address"
          },
          "receipt_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a receipt"
          },
          "urgency": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ]
          },
          "requested_ship_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "documents_only": {
            "type": "boolean"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "allocation_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "charge_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ReleasesShip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "shipped_via": {
            "type": [
              "string",
              "null"
            ]
          },
          "release_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100
          }
        },
        "required": [
          "release_uuids"
        ]
      },
      "ReleaseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "urgency": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ]
          },
          "requested_ship_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "documents_only": {
            "type": "boolean"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "ReleaseCertify": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "form": {
            "type": "string",
            "enum": [
              "conformance",
              "material_certification",
              "true_copy",
              "split_statement"
            ]
          }
        },
        "required": [
          "form"
        ]
      },
      "ReleaseCombine": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "release_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "release_uuids"
        ]
      },
      "ReleaseEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "shipping_confirmation"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the release sends, each attaching its own PDF (`shipping_confirmation` the Shipping Packet); `shipping_confirmation` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the release's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the release's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the release's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "upload_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an upload"
                },
                "invoice_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an invoice"
                }
              }
            },
            "maxItems": 100,
            "description": "The files it carries beside the shipping packet, each one of the release's `email_files`: an upload by its `upload_uuid`, or an invoice's form, printed as it goes, by its `invoice_uuid`; none when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the release as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "order_number",
                                      "customer_po_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the release as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "order_number",
                                          "customer_po_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "order_number",
                                                      "customer_po_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "ReleaseLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customs_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "ReleaseLineReject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ReleasePick": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "ReleasePreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "shipping_confirmation"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the release sends, each attaching its own PDF (`shipping_confirmation` the Shipping Packet); `shipping_confirmation` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the release's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the release; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "order_number",
                                      "customer_po_number",
                                      "ship_date",
                                      "shipped_via",
                                      "tracking_numbers",
                                      "lines_shipped",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the release; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "order_number",
                                          "customer_po_number",
                                          "ship_date",
                                          "shipped_via",
                                          "tracking_numbers",
                                          "lines_shipped",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "order_number",
                                                      "customer_po_number",
                                                      "ship_date",
                                                      "shipped_via",
                                                      "tracking_numbers",
                                                      "lines_shipped",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "ReleaseShip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "shipped_via": {
            "type": [
              "string",
              "null"
            ]
          },
          "pieces": {
            "type": [
              "integer",
              "null"
            ]
          },
          "total_weight": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "weight_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a weight unit"
          },
          "freight_charge_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "shipped_on": {
            "type": "string",
            "format": "date",
            "description": "The day it shipped, in the tenant's time zone: today or earlier; absent, today"
          },
          "tracking_references": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "carrier",
                    "mawb",
                    "hawb"
                  ]
                },
                "value": {
                  "type": "string"
                }
              }
            }
          },
          "picked": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a line"
                },
                "quantity": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "ReleaseSplit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "ReleaseUnpick": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "ReleaseUnship": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "reason": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "ReleaseUnverify": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "ReleaseVerify": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "RepairOrderStageUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "time_tracking": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accountable",
              "not_accountable",
              null
            ]
          }
        }
      },
      "RepairOrderCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "repair_service_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a repair service"
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "oem",
                    "pma",
                    "der",
                    "pma_der",
                    null
                  ]
                },
                "expected_condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected condition"
                },
                "expected_part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected part"
                },
                "expected_part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "estimated_unit_cost_cents": {
                  "type": "integer"
                },
                "final_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "estimate_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_estimated_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "estimate_approved_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "final_cost_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "supply_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a supply"
                },
                "purpose": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inventory",
                    "customer_unit",
                    "exchange_core",
                    "calibration",
                    "rejection",
                    "teardown",
                    "work_order_part",
                    null
                  ]
                },
                "teardown": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "inventory_code_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an inventory code"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "chargeout_rate": {
                      "type": [
                        "number",
                        "string"
                      ],
                      "format": "decimal",
                      "pattern": "^-?\\d+(\\.\\d+)?$"
                    },
                    "value_cents": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "RepairOrderUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "vendor": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "return_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "facility_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a facility"
              },
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "RepairOrderEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "repair_order"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the repair order sends, each attaching its own PDF (`repair_order` the Repair Order); `repair_order` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the repair order's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the repair order's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the repair order's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the repair order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "vendor_quote_number",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the repair order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "vendor_quote_number",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "vendor_quote_number",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "RepairOrderLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ]
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "estimated_unit_cost_cents": {
            "type": "integer"
          },
          "final_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimate_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_estimated_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "estimate_approved_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "final_cost_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "supply_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a supply"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "inventory",
              "customer_unit",
              "exchange_core",
              "calibration",
              "rejection",
              "teardown",
              "work_order_part"
            ]
          },
          "teardown": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "inventory_code_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an inventory code"
              },
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "chargeout_rate": {
                "type": [
                  "number",
                  "string"
                ],
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              },
              "value_cents": {
                "type": "integer"
              }
            }
          }
        }
      },
      "RepairOrderLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ]
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "estimated_unit_cost_cents": {
            "type": "integer"
          },
          "final_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimate_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_estimated_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "estimate_approved_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "final_cost_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "RepairOrderLineApproveEstimate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "estimate_approved_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "RepairOrderLineCompleteTeardown": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "RepairOrderLineRecordEstimate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "estimated_unit_cost_cents": {
            "type": "integer"
          },
          "estimate_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        },
        "required": [
          "estimated_unit_cost_cents"
        ]
      },
      "RepairOrderLineRecordFinalCost": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "final_unit_cost_cents": {
            "type": "integer"
          },
          "final_cost_received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        },
        "required": [
          "final_unit_cost_cents"
        ]
      },
      "RepairOrderLineScrap": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "quantity"
        ]
      },
      "RepairOrderPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "repair_order"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the repair order sends, each attaching its own PDF (`repair_order` the Repair Order); `repair_order` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the repair order's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the repair order; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "vendor_quote_number",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the repair order; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "vendor_quote_number",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "vendor_quote_number",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "RepairOrderRequirementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "requirement_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a requirement"
          }
        },
        "required": [
          "requirement_uuid"
        ]
      },
      "RepairOrderRequirementWaive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string"
          }
        },
        "required": [
          "note"
        ]
      },
      "RepairOrderReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "removed_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "repair_service_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a repair service"
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "oem",
                    "pma",
                    "der",
                    "pma_der",
                    null
                  ]
                },
                "expected_condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected condition"
                },
                "expected_part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected part"
                },
                "expected_part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "estimated_unit_cost_cents": {
                  "type": "integer"
                },
                "final_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "estimate_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_estimated_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "estimate_approved_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "final_cost_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "repair_service_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a repair service"
                },
                "non_oem_allowance": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "oem",
                    "pma",
                    "der",
                    "pma_der",
                    null
                  ]
                },
                "expected_condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected condition"
                },
                "expected_part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an expected part"
                },
                "expected_part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "estimated_unit_cost_cents": {
                  "type": "integer"
                },
                "final_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "estimate_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_estimated_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "estimate_approved_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "final_cost_received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "supply_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a supply"
                },
                "purpose": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inventory",
                    "customer_unit",
                    "exchange_core",
                    "calibration",
                    "rejection",
                    "teardown",
                    "work_order_part",
                    null
                  ]
                },
                "teardown": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "inventory_code_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an inventory code"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "chargeout_rate": {
                      "type": [
                        "number",
                        "string"
                      ],
                      "format": "decimal",
                      "pattern": "^-?\\d+(\\.\\d+)?$"
                    },
                    "value_cents": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "RepairOrderRevisePromise": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "updated_promise_on": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "updated_promise_on"
        ]
      },
      "RepairOrderVoucher": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "RepairServiceAnswerCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "marketplace_repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace repair service"
          }
        },
        "required": [
          "repair_service_uuid",
          "marketplace_repair_service_uuid"
        ]
      },
      "RepairServiceListingCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "marketplace_repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace repair service"
          }
        },
        "required": [
          "repair_service_uuid",
          "marketplace_repair_service_uuid"
        ]
      },
      "RepairServiceListingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "marketplace_repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a marketplace repair service"
          }
        }
      },
      "RepairServiceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "Creating one lists it as, and answers an RFQ for, each marketplace's repair service that names it by default, as `/repair_service_listings` and `/repair_service_answers` show; a marketplace's `map_repair_service` maps it otherwise. It answers a direct RFQ for the direct RFQ repair service named like it, as `/direct_rfq_repair_service_answers` shows, and `map_direct_rfqs` maps it otherwise"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "default_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default condition"
          }
        }
      },
      "RepairServiceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "default_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default condition"
          }
        }
      },
      "RepairServiceMapDirectRfqs": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "answers_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The uuids of the direct RFQ repair services ours answers an RFQ for; an empty list answers none"
          }
        },
        "required": [
          "answers_uuids"
        ]
      },
      "RequirementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "release",
              "ship",
              "receive"
            ]
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "fact"
            ]
          },
          "fact": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "customer_po_number",
              "release_certificate",
              "dual_release",
              "shelf_life_left",
              "outbound_qc_passed",
              "picked",
              "placed",
              null
            ]
          },
          "minimum_shelf_life_percent": {
            "type": [
              "integer",
              "null"
            ]
          },
          "enforcement": {
            "type": "string",
            "enum": [
              "warn",
              "block"
            ]
          },
          "every_order": {
            "type": "boolean"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "upload_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an upload category"
          }
        }
      },
      "RequirementUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "step": {
            "type": "string",
            "enum": [
              "release",
              "ship",
              "receive"
            ]
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "document",
              "fact"
            ]
          },
          "fact": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "customer_po_number",
              "release_certificate",
              "dual_release",
              "shelf_life_left",
              "outbound_qc_passed",
              "picked",
              "placed",
              null
            ]
          },
          "minimum_shelf_life_percent": {
            "type": [
              "integer",
              "null"
            ]
          },
          "enforcement": {
            "type": "string",
            "enum": [
              "warn",
              "block"
            ]
          },
          "every_order": {
            "type": "boolean"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "upload_category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an upload category"
          }
        }
      },
      "RoleCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "RoleUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SalesOrderCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "salesperson_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a salesperson"
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "auto_charge_credit_card_fee": {
            "type": "boolean"
          },
          "auto_charge_wire_transfer_fee": {
            "type": "boolean"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "home_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "purchase_order_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a purchase order line"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference_line": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    },
                    "core_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "overhaul",
                        "serviceable",
                        "as_is",
                        null
                      ]
                    },
                    "return_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "return_to_inventory",
                        "return_to_exchange_vendor",
                        null
                      ]
                    },
                    "core_repair_nte_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected customer unit condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "SalesOrderUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "priority": {
            "type": "string",
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "salesperson_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a salesperson"
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "freight_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight account"
          },
          "billing_party": {
            "type": [
              "string",
              "null"
            ]
          },
          "auto_charge_credit_card_fee": {
            "type": "boolean"
          },
          "auto_charge_wire_transfer_fee": {
            "type": "boolean"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "bill_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "SalesOrderEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "customer_order_acknowledgement",
              "proforma_invoice"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the sales order sends, each attaching its own PDF (`customer_order_acknowledgement` the Order Acknowledgement, `proforma_invoice` the Proforma Invoice); `customer_order_acknowledgement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the sales order's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the sales order's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the sales order's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the sales order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "customer_po_number",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the sales order as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "customer_po_number",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "customer_po_number",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "SalesOrderHoldCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "credit",
              "export",
              "manual"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "kind"
        ]
      },
      "SalesOrderImportLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      },
      "SalesOrderLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "purchase_order_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order line"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference_line": {
            "type": [
              "string",
              "null"
            ]
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected core condition"
              },
              "core_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "overhaul",
                  "serviceable",
                  "as_is",
                  null
                ]
              },
              "return_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "return_to_inventory",
                  "return_to_exchange_vendor",
                  null
                ]
              },
              "core_repair_nte_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "repair": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "service_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a repair service"
              },
              "non_oem_allowance": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_unit_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_unit_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected customer unit condition"
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "SalesOrderLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "home_unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "purchase_order_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order line"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange",
              "repair",
              "lease"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "combined_tax_rate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a combined tax rate"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference_line": {
            "type": [
              "string",
              "null"
            ]
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "position": {
            "type": "integer"
          },
          "exchange": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "cost_plus",
                  "flat_rate",
                  null
                ]
              },
              "core_charge_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "core_due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "expected_core_part_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_core_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected core condition"
              },
              "core_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "overhaul",
                  "serviceable",
                  "as_is",
                  null
                ]
              },
              "return_disposition": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "return_to_inventory",
                  "return_to_exchange_vendor",
                  null
                ]
              },
              "core_repair_nte_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "repair": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "service_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a repair service"
              },
              "non_oem_allowance": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_unit_serial": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "expected_unit_condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of an expected customer unit condition"
              }
            }
          },
          "lease": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "rate_unit": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  null
                ]
              },
              "minimum_days": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_hours": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "included_cycles": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "hour_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "cycle_fee_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "outright_price_cents": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "due_days": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        }
      },
      "SalesOrderLineAddToRepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "repair_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair order"
          }
        }
      },
      "SalesOrderLineAllocate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "supplies": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "supply_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a supply"
                },
                "supply_type": {
                  "type": "string"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            }
          }
        },
        "required": [
          "supplies"
        ]
      },
      "SalesOrderLineAsk": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_rfq_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor RFQ"
          },
          "again": {
            "type": "boolean"
          },
          "vendor_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SalesOrderLineOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "purchase_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order"
          },
          "vendor_offer_type": {
            "type": "string",
            "enum": [
              "vendor_inventory_line"
            ]
          },
          "vendor_offer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor offer"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": "integer"
          }
        }
      },
      "SalesOrderLineReturnToCustomer": {
        "type": "object",
        "additionalProperties": false,
        "properties": {}
      },
      "SalesOrderPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "customer_order_acknowledgement",
              "proforma_invoice"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the sales order sends, each attaching its own PDF (`customer_order_acknowledgement` the Order Acknowledgement, `proforma_invoice` the Proforma Invoice); `customer_order_acknowledgement` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the sales order's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the sales order; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "customer_po_number",
                                      "total",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the sales order; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "customer_po_number",
                                          "total",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "customer_po_number",
                                                      "total",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "SalesOrderRequirementCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "requirement_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a requirement"
          }
        },
        "required": [
          "requirement_uuid"
        ]
      },
      "SalesOrderRequirementWaive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string"
          }
        },
        "required": [
          "note"
        ]
      },
      "SalesOrderResolvePartNumbers": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "active_only": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manufacturer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a manufacturer"
                },
                "classification_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a classification"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                }
              }
            }
          }
        },
        "required": [
          "parts"
        ]
      },
      "SalesOrderReturn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "sales_order_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a sales order line"
                },
                "release_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a release line"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "customer_return_reason_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a customer return reason"
                }
              }
            }
          }
        },
        "required": [
          "lines"
        ]
      },
      "SalesOrderReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "removed_line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "home_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "purchase_order_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a purchase order line"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference_line": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updated_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "position": {
                  "type": "integer"
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    },
                    "core_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "overhaul",
                        "serviceable",
                        "as_is",
                        null
                      ]
                    },
                    "return_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "return_to_inventory",
                        "return_to_exchange_vendor",
                        null
                      ]
                    },
                    "core_repair_nte_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected customer unit condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "home_unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "purchase_order_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a purchase order line"
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange",
                    "repair",
                    "lease"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "initial_promise_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "combined_tax_rate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a combined tax rate"
                },
                "warranty_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "customer_reference_line": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "exchange": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "cost_plus",
                        "flat_rate",
                        null
                      ]
                    },
                    "core_charge_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "core_due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "expected_core_part_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_core_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected core condition"
                    },
                    "core_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "overhaul",
                        "serviceable",
                        "as_is",
                        null
                      ]
                    },
                    "return_disposition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "return_to_inventory",
                        "return_to_exchange_vendor",
                        null
                      ]
                    },
                    "core_repair_nte_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                },
                "repair": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "service_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of a repair service"
                    },
                    "non_oem_allowance": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_serial": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "expected_unit_condition_uuid": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid",
                      "description": "The uuid of an expected customer unit condition"
                    }
                  }
                },
                "lease": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "rate_unit": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "enum": [
                        "day",
                        "week",
                        "month",
                        null
                      ]
                    },
                    "minimum_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_hours": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "included_cycles": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "hour_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "cycle_fee_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "outright_price_cents": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "due_days": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "AvsightIntegrationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sends_declined_quotes": {
            "type": "boolean"
          },
          "reads_quoting_only": {
            "type": "boolean"
          }
        }
      },
      "AvsightMigrationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "finishes_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "pushes_back_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "copies_files": {
            "type": "boolean"
          }
        }
      },
      "AvsightIntegrationRecordsSkip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mapping": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "part",
                "company",
                "account_ship_address",
                "contact",
                "company_location",
                "warehouse",
                "alternate",
                "price",
                "customer_contract_price",
                "vendor_contract_price",
                "repair_contract_price",
                "owner_code",
                "inventory_location",
                "inventory_line",
                "secondary_inventory",
                "customer_quote",
                "customer_quote_line",
                "vendor_rfq",
                "vendor_rfq_line",
                "sales_order",
                "sales_order_line",
                "allocation",
                "purchase_order",
                "purchase_order_line",
                "repair_order",
                "repair_order_line",
                "ro_issue",
                "release",
                "release_line",
                "invoice",
                "invoice_line",
                "deposit",
                "rma",
                "rma_line",
                "customer_exchange_summary",
                "manifest",
                "manifest_line",
                "company_default_gl_accounts",
                "payment_voucher",
                "event",
                "owner_code_adjustment",
                "transaction_activity",
                "part_history",
                "company_history",
                "account_ship_address_history",
                "contact_history",
                "company_location_history",
                "warehouse_history",
                "alternate_history",
                "price_history",
                "customer_contract_price_history",
                "vendor_contract_price_history",
                "repair_contract_price_history",
                "owner_code_history",
                "inventory_location_history",
                "inventory_line_history",
                "secondary_inventory_history",
                "customer_quote_history",
                "customer_quote_line_history",
                "vendor_rfq_history",
                "vendor_rfq_line_history",
                "sales_order_history",
                "sales_order_line_history",
                "allocation_history",
                "purchase_order_history",
                "purchase_order_line_history",
                "repair_order_history",
                "repair_order_line_history",
                "ro_issue_history",
                "release_history",
                "release_line_history",
                "invoice_history",
                "invoice_line_history",
                "rma_history",
                "rma_line_history",
                "customer_exchange_summary_history",
                "manifest_history",
                "manifest_line_history",
                "payment_voucher_history",
                "receipt_history"
              ]
            },
            "description": "The mappings whose problems to skip, each by its key"
          },
          "field": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The AvSight fields, by API name, whose problems to skip"
          },
          "reason": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "unmapped_value",
                "value_not_created",
                "parent_not_applied",
                "parent_lost",
                "invalid",
                "taken_by_avsight_record",
                "taken_by_corepilot_record",
                "moved_organization",
                "number_taken",
                "line_problem",
                "line_not_applied",
                "price_not_above_zero",
                "charge_unmapped",
                "non_inventory_part",
                "held_twice",
                "taken_while_applying",
                "save_refused",
                "apply_failed",
                "unread_value",
                "unreadable_number",
                "blank_in_avsight",
                "value_left_blank",
                "inactive_in_corepilot",
                "role_missing",
                "names_removed",
                "names_skipped",
                "names_unlanded",
                "quantity_not_allowed",
                "amount_not_allowed",
                "receipt_refused",
                "voucher_refused",
                "change_not_taken_back",
                "names_unmigrated",
                "organization_mismatch",
                "quantity_committed",
                "charge_missing",
                "serial_shared",
                "owner_codes_mixed",
                "reservation_refused",
                "staging_refused",
                "shipped_elsewhere",
                "no_lines",
                "order_still_open",
                "shipment_unrecordable",
                "charge_split",
                "stated_by_avsight_record",
                "code_across_organizations",
                "consigned_and_bought",
                "rate_not_allowed",
                "investors_not_allowed",
                "changed_since_opened",
                "cost_below_held",
                "bin_unplaced",
                "serial_missing",
                "serial_units_together",
                "credit_line",
                "customer_unit_unclear",
                "unit_in_custody",
                "unit_not_shipped_home",
                "custody_refused",
                "repair_line_missing",
                "supply_unreserved",
                "cores_unplaced",
                "returns_only",
                "vendor_return_unplaced",
                "inventory_unfit",
                "unit_not_sendable",
                "partly_returned",
                "customer_unit_mixed",
                "issue_unaccounted",
                "issue_refused",
                "release_refused",
                "nothing_to_stage",
                "billed_twice",
                "shipment_unbillable",
                "total_mismatch",
                "credited_on_wrong_invoice",
                "payment_applied",
                "return_unreceived",
                "not_a_lot_purchase",
                "consigned_order",
                "vendor_mismatch",
                "voucher_approved",
                "invoice_lines_disagree"
              ]
            },
            "description": "The reasons, by key, whose problems to skip: beside `field`, held on one of those fields"
          }
        }
      },
      "AvsightIntegrationRecordsUnskip": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mapping": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "part",
                "company",
                "account_ship_address",
                "contact",
                "company_location",
                "warehouse",
                "alternate",
                "price",
                "customer_contract_price",
                "vendor_contract_price",
                "repair_contract_price",
                "owner_code",
                "inventory_location",
                "inventory_line",
                "secondary_inventory",
                "customer_quote",
                "customer_quote_line",
                "vendor_rfq",
                "vendor_rfq_line",
                "sales_order",
                "sales_order_line",
                "allocation",
                "purchase_order",
                "purchase_order_line",
                "repair_order",
                "repair_order_line",
                "ro_issue",
                "release",
                "release_line",
                "invoice",
                "invoice_line",
                "deposit",
                "rma",
                "rma_line",
                "customer_exchange_summary",
                "manifest",
                "manifest_line",
                "company_default_gl_accounts",
                "payment_voucher",
                "event",
                "owner_code_adjustment",
                "transaction_activity",
                "part_history",
                "company_history",
                "account_ship_address_history",
                "contact_history",
                "company_location_history",
                "warehouse_history",
                "alternate_history",
                "price_history",
                "customer_contract_price_history",
                "vendor_contract_price_history",
                "repair_contract_price_history",
                "owner_code_history",
                "inventory_location_history",
                "inventory_line_history",
                "secondary_inventory_history",
                "customer_quote_history",
                "customer_quote_line_history",
                "vendor_rfq_history",
                "vendor_rfq_line_history",
                "sales_order_history",
                "sales_order_line_history",
                "allocation_history",
                "purchase_order_history",
                "purchase_order_line_history",
                "repair_order_history",
                "repair_order_line_history",
                "ro_issue_history",
                "release_history",
                "release_line_history",
                "invoice_history",
                "invoice_line_history",
                "rma_history",
                "rma_line_history",
                "customer_exchange_summary_history",
                "manifest_history",
                "manifest_line_history",
                "payment_voucher_history",
                "receipt_history"
              ]
            },
            "description": "The mappings whose skipped records to unskip, each by its key"
          },
          "field": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The AvSight fields, by API name, whose skipped records to unskip"
          },
          "reason": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "unmapped_value",
                "value_not_created",
                "parent_not_applied",
                "parent_lost",
                "invalid",
                "taken_by_avsight_record",
                "taken_by_corepilot_record",
                "moved_organization",
                "number_taken",
                "line_problem",
                "line_not_applied",
                "price_not_above_zero",
                "charge_unmapped",
                "non_inventory_part",
                "held_twice",
                "taken_while_applying",
                "save_refused",
                "apply_failed",
                "unread_value",
                "unreadable_number",
                "blank_in_avsight",
                "value_left_blank",
                "inactive_in_corepilot",
                "role_missing",
                "names_removed",
                "names_skipped",
                "names_unlanded",
                "quantity_not_allowed",
                "amount_not_allowed",
                "receipt_refused",
                "voucher_refused",
                "change_not_taken_back",
                "names_unmigrated",
                "organization_mismatch",
                "quantity_committed",
                "charge_missing",
                "serial_shared",
                "owner_codes_mixed",
                "reservation_refused",
                "staging_refused",
                "shipped_elsewhere",
                "no_lines",
                "order_still_open",
                "shipment_unrecordable",
                "charge_split",
                "stated_by_avsight_record",
                "code_across_organizations",
                "consigned_and_bought",
                "rate_not_allowed",
                "investors_not_allowed",
                "changed_since_opened",
                "cost_below_held",
                "bin_unplaced",
                "serial_missing",
                "serial_units_together",
                "credit_line",
                "customer_unit_unclear",
                "unit_in_custody",
                "unit_not_shipped_home",
                "custody_refused",
                "repair_line_missing",
                "supply_unreserved",
                "cores_unplaced",
                "returns_only",
                "vendor_return_unplaced",
                "inventory_unfit",
                "unit_not_sendable",
                "partly_returned",
                "customer_unit_mixed",
                "issue_unaccounted",
                "issue_refused",
                "release_refused",
                "nothing_to_stage",
                "billed_twice",
                "shipment_unbillable",
                "total_mismatch",
                "credited_on_wrong_invoice",
                "payment_applied",
                "return_unreceived",
                "not_a_lot_purchase",
                "consigned_order",
                "vendor_mismatch",
                "voucher_approved",
                "invoice_lines_disagree"
              ]
            },
            "description": "The reasons, by key, whose skipped records to unskip: beside `field`, held on one of those fields"
          }
        }
      },
      "AvsightIntegrationValueMappingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "match",
              "create",
              "ignore",
              null
            ],
            "description": "`match` to the record `record_uuid` names, or, for a country or a core or return disposition, to the code `choice` holds; `create` to make the record on apply, for the kinds CorePilot makes; `ignore` to leave the field blank; null to map it to nothing, which holds the records carrying it"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The CorePilot record a `match` maps the value to, for every kind but those that map to a code (a country, a core or return disposition); sent only with `match`"
          },
          "choice": {
            "type": "string",
            "description": "The code a `match` maps the value to, sent in place of `record_uuid` for the kinds that map to a code: a country, a core disposition and a return disposition"
          }
        }
      },
      "SalesforceIntegrationConnect": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "instance_url": {
            "type": "string",
            "description": "The org's My Domain address, like https://acme.my.salesforce.com"
          },
          "client_id": {
            "type": "string",
            "description": "The External Client App's consumer key"
          },
          "client_secret": {
            "type": "string",
            "description": "The External Client App's consumer secret, never sent back"
          }
        },
        "required": [
          "instance_url",
          "client_id",
          "client_secret"
        ]
      },
      "SalespersonCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "membership_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a membership"
          }
        },
        "required": [
          "membership_uuid"
        ]
      },
      "SendingAddressCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "email_address": {
            "type": "string"
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          }
        },
        "required": [
          "email_address"
        ]
      },
      "SendingAddressUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "display_name": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "SendingAddressConfirm": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string",
            "description": "The six-digit code mailed to the address"
          }
        },
        "required": [
          "code"
        ]
      },
      "SendingDomainCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "domain": {
            "type": "string",
            "description": "The domain to send as, such as acme.com; claiming one already claimed answers it"
          }
        },
        "required": [
          "domain"
        ]
      },
      "ShareRecipientCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "share_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a share"
          },
          "name": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          }
        },
        "required": [
          "share_uuid"
        ]
      },
      "ShareRecipientUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "expires_on": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "expires_on"
        ]
      },
      "ShareCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "record_type": {
            "type": "string"
          },
          "record_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a record"
          },
          "title": {
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ]
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "upload_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an upload"
                },
                "version": {
                  "type": "integer"
                },
                "form": {
                  "type": "string"
                }
              }
            },
            "maxItems": 200
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "contact_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a contact"
                },
                "name": {
                  "type": "string"
                },
                "email_address": {
                  "type": "string"
                }
              }
            },
            "maxItems": 25
          }
        },
        "required": [
          "files",
          "recipients"
        ]
      },
      "ShareUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "message": {
            "type": [
              "string",
              "null"
            ]
          },
          "expires_on": {
            "type": "string"
          }
        }
      },
      "ShareAddFiles": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "upload_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an upload"
                },
                "version": {
                  "type": "integer"
                },
                "form": {
                  "type": "string"
                }
              }
            },
            "maxItems": 200
          }
        },
        "required": [
          "files"
        ]
      },
      "ShipViaCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "parcel",
              "ltl",
              "air_freight",
              "ocean",
              "counter_to_counter",
              "onboard_courier",
              "pickup"
            ]
          },
          "international": {
            "type": "boolean"
          },
          "carrier_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a carrier"
          }
        }
      },
      "ShipViaUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "parcel",
              "ltl",
              "air_freight",
              "ocean",
              "counter_to_counter",
              "onboard_courier",
              "pickup"
            ]
          },
          "international": {
            "type": "boolean"
          }
        }
      },
      "ShortcutCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "title",
          "url"
        ]
      },
      "ShortcutUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "ShortcutMove": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "position": {
            "type": "integer",
            "description": "Where the shortcut goes in your list, counting from 1; a number past either end puts it at that end"
          }
        },
        "required": [
          "position"
        ]
      },
      "SkillCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inspection_approved": {
            "type": "boolean"
          },
          "excluded_from_assigned_hours": {
            "type": "boolean"
          },
          "burden_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "bill_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ledger account"
          }
        }
      },
      "SkillUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "inspection_approved": {
            "type": "boolean"
          },
          "excluded_from_assigned_hours": {
            "type": "boolean"
          },
          "burden_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "bill_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "ledger_account_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ledger account"
          }
        }
      },
      "SourcingRequestCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "demand_type": {
            "type": "string",
            "enum": [
              "sales_order_line",
              "issued_part",
              "repair_order_line",
              "vendor_return_line",
              "vendor_exchange",
              "customer_quote_line",
              "customer_rfq_line",
              "work_order_material"
            ]
          },
          "demand_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a demand"
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SourcingRequestUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SourcingRequestAsk": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_rfq_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor RFQ"
          },
          "again": {
            "type": "boolean"
          },
          "vendor_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SourcingRequestOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "purchase_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": "integer"
          },
          "over_order": {
            "type": "boolean"
          }
        }
      },
      "TaxCategoryCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TaxCategoryUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TaxDestinationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TaxDestinationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "country_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "region": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TaxOriginCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TaxOriginUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "TeamCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "membership_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The people on the team, the whole list: any active person's seat, or one the team already holds"
          }
        },
        "required": [
          "name"
        ]
      },
      "TeamUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "membership_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The people on the team, the whole list: any active person's seat, or one the team already holds"
          }
        }
      },
      "TriageRuleCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "name": {
            "type": "string"
          },
          "triage_action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "assign",
              "round_robin",
              "archive",
              "hold",
              "no_quote",
              null
            ]
          },
          "keeps_from_autoquote": {
            "type": "boolean"
          },
          "archive_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an archive reason"
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "position": {
            "type": "integer"
          },
          "sender_domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "priorities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customer_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The customers it matches, each by its company's uuid; sent, it replaces the set, and empty matches any"
          },
          "salesperson_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The salespeople `assign` gives the quote to (exactly one) or `round_robin` hands it round, in this order; sent, it replaces the set"
          }
        },
        "required": [
          "organization_uuid",
          "name"
        ]
      },
      "TriageRuleUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "triage_action": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "assign",
              "round_robin",
              "archive",
              "hold",
              "no_quote",
              null
            ]
          },
          "keeps_from_autoquote": {
            "type": "boolean"
          },
          "archive_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an archive reason"
          },
          "no_quote_reason_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a no quote reason"
          },
          "position": {
            "type": "integer"
          },
          "sender_domains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "priorities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customer_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The customers it matches, each by its company's uuid; sent, it replaces the set, and empty matches any"
          },
          "salesperson_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The salespeople `assign` gives the quote to (exactly one) or `round_robin` hands it round, in this order; sent, it replaces the set"
          }
        }
      },
      "UploadCategoryCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UploadCategoryUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "UploadCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "UploadCreateMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a category"
          }
        },
        "required": [
          "file"
        ]
      },
      "UploadUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "category_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a category"
          }
        }
      },
      "UploadReplace": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "filename": {
            "type": "string"
          },
          "content_base64": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          }
        },
        "required": [
          "filename",
          "content_base64"
        ]
      },
      "UploadReplaceMultipart": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The file's bytes, as a form part"
          }
        },
        "required": [
          "file"
        ]
      },
      "VendorCapabilityCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          }
        },
        "required": [
          "vendor_uuid",
          "part_uuid"
        ]
      },
      "VendorCapabilitiesReplace": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "capabilities": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "repair_service_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a repair service"
                },
                "part_uuid": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "maxItems": 100,
            "description": "The vendor's whole list, up to 100 rows; an empty list retires every row"
          }
        },
        "required": [
          "vendor_uuid",
          "capabilities"
        ]
      },
      "VendorCertificateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "approval_basis": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ]
          },
          "certificate_standard_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a certificate standard"
          }
        },
        "required": [
          "vendor_uuid",
          "certificate_standard_uuid"
        ]
      },
      "VendorCertificateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "certificate_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "approval_basis": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "purchase_orders",
              "repair_orders",
              "both",
              null
            ]
          },
          "certificate_standard_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a certificate standard"
          }
        }
      },
      "VendorExchangeUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "core_due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "core_due_days": {
            "type": "integer"
          }
        }
      },
      "VendorExchangeBuyOutright": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": "integer"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "VendorInventoryLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        },
        "required": [
          "vendor_uuid",
          "part_uuid",
          "condition_uuid"
        ]
      },
      "VendorInventoryLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a condition"
          }
        }
      },
      "VendorLeaseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "due_back_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due_back_days": {
            "type": "integer"
          }
        }
      },
      "VendorLeaseBuyOutright": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_cost_cents": {
            "type": "integer"
          }
        }
      },
      "VendorLeaseChargePeriod": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "period_ends_on": {
            "type": "string",
            "format": "date"
          },
          "reported_hours": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "reported_cycles": {
            "type": "integer"
          }
        }
      },
      "VendorPartPriceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "unit_cost_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        },
        "required": [
          "vendor_uuid",
          "part_uuid",
          "unit_cost_cents"
        ]
      },
      "VendorPartPriceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "unit_cost_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        }
      },
      "VendorPaymentCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "voucher_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a voucher"
          },
          "consignor_statement_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a consignor statement"
          },
          "investor_statement_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an investor statement"
          },
          "purchase_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a purchase order"
          },
          "amount_cents": {
            "type": "integer"
          },
          "paid_on": {
            "type": "string",
            "format": "date"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "amount_cents"
        ]
      },
      "PayableApplicationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "voucher_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a voucher"
          },
          "amount_cents": {
            "type": "integer"
          }
        },
        "required": [
          "voucher_uuid"
        ]
      },
      "VendorRepairPriceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ]
          },
          "unit_cost_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        },
        "required": [
          "vendor_uuid",
          "part_uuid",
          "repair_service_uuid",
          "unit_cost_cents"
        ]
      },
      "VendorRepairPriceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "non_oem_allowance": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "oem",
              "pma",
              "der",
              "pma_der",
              null
            ]
          },
          "unit_cost_cents": {
            "type": "integer"
          },
          "currency_code": {
            "type": "string"
          },
          "minimum_quantity": {
            "type": "integer"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          }
        }
      },
      "VendorReturnUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "VendorReturnCredit": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "VendorRfqLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_rfq_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a vendor RFQ"
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "vendor_rfq_uuid"
        ]
      },
      "VendorRfqLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "routine",
              "expedite",
              "critical",
              "aog",
              null
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer"
          },
          "condition_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requested_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "VendorRfqLineQuote": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "no_quote": {
            "type": "boolean"
          },
          "vendor_remarks": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "VendorRfqCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency_code": {
            "type": "string"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "required": [
          "vendor_uuid"
        ]
      },
      "VendorRfqUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "vendor_quote_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "freight_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a freight term"
          },
          "ship_via_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a ship via"
          },
          "clause_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a clause"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "facility_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a facility"
              },
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "bill_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "billing_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a billing address"
              },
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "VendorRfqCopy": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the vendor"
          }
        },
        "required": [
          "vendor_uuid"
        ]
      },
      "VendorRfqEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "vendor_rfq"
            ],
            "description": "The kind of email it is, one of the kinds `GET /email_kinds` lists that the RFQ sends, each attaching its own PDF (`vendor_rfq` the Vendor RFQ); `vendor_rfq` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the RFQ's `email_drafts`; the organization's Default when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "sending_address_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The shared address it leaves as, one of the RFQ's `email_senders`; the sender's own when given none"
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The addresses it goes to, each entry as a mail reader copies it (`Dana Reyes <dana@example.com>`, several split by commas, semicolons, spaces or lines; at most 50 addresses in all); the RFQ's `default_email_to` is who it would offer"
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "The template's Cc when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's subject when given none; its fields are filled from the RFQ as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The template's body when given none; its fields are filled from the RFQ as it goes out",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "required": [
          "to"
        ]
      },
      "VendorRfqImportRfqLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ]
      },
      "VendorRfqOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "over_order": {
            "type": "boolean"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "line_uuids"
        ]
      },
      "VendorRfqPreviewEmail": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "vendor_rfq"
            ],
            "description": "The kind of email it previews, one of the kinds `GET /email_kinds` lists that the RFQ sends, each attaching its own PDF (`vendor_rfq` the Vendor RFQ); `vendor_rfq` when given none"
          },
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The email template it starts from, one of the RFQ's `email_drafts`; the one the email opens in when given none"
          },
          "adds_signature": {
            "type": "boolean",
            "description": "Whether the sender's signature goes under it; the template's setting when given none"
          },
          "subject": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The subject as `email` takes it, filled from the RFQ; the one `email` would send when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "const": "paragraph"
                    },
                    "content": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "text"
                            ],
                            "properties": {
                              "type": {
                                "const": "text"
                              },
                              "text": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 250,
                                "not": {
                                  "pattern": "[\\r\\n]"
                                }
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "attrs"
                            ],
                            "properties": {
                              "type": {
                                "const": "field"
                              },
                              "attrs": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "name"
                                ],
                                "properties": {
                                  "name": {
                                    "enum": [
                                      "identifier",
                                      "contact_first_name",
                                      "contact_name",
                                      "sender_name",
                                      "sender_title",
                                      "organization_name",
                                      "organization_phone"
                                    ]
                                  },
                                  "fallback": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "not": {
                                      "pattern": "[\\r\\n]"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "body": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "content"
            ],
            "description": "The message as `email` takes it, filled from the RFQ; the template's body when given none",
            "properties": {
              "type": {
                "const": "doc"
              },
              "content": {
                "type": "array",
                "maxItems": 200,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "const": "paragraph"
                        },
                        "content": {
                          "type": "array",
                          "maxItems": 500,
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "text"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "text"
                                  },
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 20000
                                  },
                                  "marks": {
                                    "type": "array",
                                    "maxItems": 3,
                                    "items": {
                                      "oneOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type"
                                          ],
                                          "properties": {
                                            "type": {
                                              "enum": [
                                                "bold",
                                                "italic"
                                              ]
                                            }
                                          }
                                        },
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "type",
                                            "attrs"
                                          ],
                                          "properties": {
                                            "type": {
                                              "const": "link"
                                            },
                                            "attrs": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "href"
                                              ],
                                              "properties": {
                                                "href": {
                                                  "type": "string",
                                                  "pattern": "^(https?://|mailto:)\\S+$",
                                                  "maxLength": 2000
                                                }
                                              }
                                            }
                                          }
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "hardBreak"
                                  }
                                }
                              },
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "attrs"
                                ],
                                "properties": {
                                  "type": {
                                    "const": "field"
                                  },
                                  "attrs": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "name"
                                    ],
                                    "properties": {
                                      "name": {
                                        "enum": [
                                          "identifier",
                                          "contact_first_name",
                                          "contact_name",
                                          "sender_name",
                                          "sender_title",
                                          "organization_name",
                                          "organization_phone"
                                        ]
                                      },
                                      "fallback": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100
                                      }
                                    }
                                  }
                                }
                              }
                            ]
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "content"
                      ],
                      "properties": {
                        "type": {
                          "enum": [
                            "bulletList",
                            "orderedList"
                          ]
                        },
                        "attrs": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "start": {
                              "type": "integer",
                              "minimum": 1
                            }
                          }
                        },
                        "content": {
                          "type": "array",
                          "minItems": 1,
                          "maxItems": 100,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "content"
                            ],
                            "properties": {
                              "type": {
                                "const": "listItem"
                              },
                              "content": {
                                "type": "array",
                                "minItems": 1,
                                "maxItems": 20,
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "type"
                                  ],
                                  "properties": {
                                    "type": {
                                      "const": "paragraph"
                                    },
                                    "content": {
                                      "type": "array",
                                      "maxItems": 500,
                                      "items": {
                                        "oneOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "text"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "text"
                                              },
                                              "text": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 20000
                                              },
                                              "marks": {
                                                "type": "array",
                                                "maxItems": 3,
                                                "items": {
                                                  "oneOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "enum": [
                                                            "bold",
                                                            "italic"
                                                          ]
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "type",
                                                        "attrs"
                                                      ],
                                                      "properties": {
                                                        "type": {
                                                          "const": "link"
                                                        },
                                                        "attrs": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "href"
                                                          ],
                                                          "properties": {
                                                            "href": {
                                                              "type": "string",
                                                              "pattern": "^(https?://|mailto:)\\S+$",
                                                              "maxLength": 2000
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  ]
                                                }
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "hardBreak"
                                              }
                                            }
                                          },
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "type",
                                              "attrs"
                                            ],
                                            "properties": {
                                              "type": {
                                                "const": "field"
                                              },
                                              "attrs": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "name"
                                                ],
                                                "properties": {
                                                  "name": {
                                                    "enum": [
                                                      "identifier",
                                                      "contact_first_name",
                                                      "contact_name",
                                                      "sender_name",
                                                      "sender_title",
                                                      "organization_name",
                                                      "organization_phone"
                                                    ]
                                                  },
                                                  "fallback": {
                                                    "type": "string",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "VendorQuoteLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "no_quote": {
            "type": "boolean"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "minimum_quantity": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "vendor_remarks": {
            "type": [
              "string",
              "null"
            ]
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_rfq_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor RFQ line"
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "VendorQuoteLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "no_quote": {
            "type": "boolean"
          },
          "lead_time_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a lead time"
          },
          "minimum_quantity": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "vendor_remarks": {
            "type": [
              "string",
              "null"
            ]
          },
          "request_type": {
            "type": "string",
            "enum": [
              "outright",
              "exchange"
            ]
          },
          "core_charge_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "vendor_rfq_line_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a vendor RFQ line"
          },
          "tagged_by_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a tagged by"
          },
          "tagged_by_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "VendorRfqRecordRequests": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "all": {
            "type": "boolean"
          },
          "line_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "VendorRfqResolvePartNumbers": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "active_only": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "part_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "manufacturer_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a manufacturer"
                },
                "classification_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a classification"
                },
                "measurement_unit_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a measurement unit"
                }
              }
            }
          }
        },
        "required": [
          "parts"
        ]
      },
      "VendorRfqReviseQuoteLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quote_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "no_quote": {
                  "type": "boolean"
                },
                "lead_time_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a lead time"
                },
                "minimum_quantity": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "vendor_remarks": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange"
                  ]
                },
                "core_charge_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "core_due_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "vendor_rfq_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a vendor RFQ line"
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "position": {
                  "type": "integer"
                }
              }
            }
          },
          "new_quote_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "no_quote": {
                  "type": "boolean"
                },
                "lead_time_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a lead time"
                },
                "minimum_quantity": {
                  "type": [
                    "number",
                    "string",
                    "null"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "vendor_remarks": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "request_type": {
                  "type": "string",
                  "enum": [
                    "outright",
                    "exchange"
                  ]
                },
                "core_charge_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "core_due_days": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "vendor_rfq_line_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a vendor RFQ line"
                },
                "tagged_by_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a tagged by"
                },
                "tagged_by_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "tagged_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "date_of_manufacture": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                }
              }
            }
          }
        }
      },
      "VendorRfqReviseRfqLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "position": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "new_rfq_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "part_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a part"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "need_by": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "priority": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "routine",
                    "expedite",
                    "critical",
                    "aog",
                    null
                  ]
                },
                "external_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "internal_notes": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "requested_types": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "ViewCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "resource": {
            "type": "string",
            "description": "The path it reads, spelled as this description publishes it (`/sales_orders`, `/parts/{uuid}`); kept for good once saved"
          },
          "context": {
            "type": "string",
            "description": "The label of the place it is drawn in: lowercase letters, digits, `:`, `_` and `-`; kept for good once saved"
          },
          "sort": {
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ]
          },
          "criteria": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "The field or column keys it shows, in order; left out or null, it is a saved filter, read in each person's own arrangement"
          },
          "sections": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "name",
          "resource",
          "context"
        ]
      },
      "ViewUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "sort": {
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ]
          },
          "criteria": {
            "type": "object",
            "additionalProperties": true
          },
          "fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "The field or column keys it shows, in order; null makes it a saved filter, read in each person's own arrangement"
          },
          "sections": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "The section each moved field sits in, by field key; null moves none"
          }
        }
      },
      "ViewAudienceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "team_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The team to give it to; leave it and `membership_uuid` out to give it to everyone"
          },
          "membership_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The person to give it to, by their seat; leave it and `team_uuid` out to give it to everyone"
          },
          "opens_first": {
            "type": "boolean"
          }
        }
      },
      "ViewAudienceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "opens_first": {
            "type": "boolean"
          }
        },
        "required": [
          "opens_first"
        ]
      },
      "ViewPersonalizationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sort": {
            "type": [
              "string",
              "null"
            ]
          },
          "direction": {
            "type": [
              "string",
              "null"
            ]
          },
          "opens_by_default": {
            "type": "boolean",
            "description": "Whether its resource and context open on it for you; `true` clears your earlier choice there"
          },
          "fields": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            },
            "description": "The field or column keys you show it in, in order; null shows the view's"
          },
          "sections": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": {
              "type": "string"
            },
            "description": "The section each moved field sits in; null as the view has it"
          }
        }
      },
      "VoucherUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "payment_term_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a payment term"
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "VoucherCorrect": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "invoice_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "invoice_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        }
      },
      "VoucherLineCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "VoucherLineUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "charge_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a charge"
          },
          "part_number_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "unit_cost_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "tax_cents": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "VoucherReviseLines": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tax_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              }
            }
          },
          "new_lines": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "charge_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a charge"
                },
                "part_number_raw": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                },
                "unit_cost_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "tax_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "WarehouseCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_crib": {
            "type": "boolean"
          },
          "facility_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a facility"
          },
          "hidden_marketplace_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WarehouseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "code": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_crib": {
            "type": "boolean"
          },
          "facility_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a facility"
          },
          "hidden_marketplace_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "WebhookEndpointCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "*",
                "access_token_minted",
                "access_token_revoked",
                "activated",
                "added_to_receipt",
                "added_to_repair_order",
                "added_to_suppression_list",
                "answered_no_quote",
                "application_authorized",
                "application_revoked",
                "applied",
                "approved",
                "arrived",
                "asked",
                "asked_for",
                "assigned",
                "assignments_forgotten",
                "autoquoted",
                "bought_outright",
                "built",
                "calendar_feed_issued",
                "calendar_feed_reset",
                "calibrated",
                "cancelled",
                "capabilities_changed",
                "carried_over",
                "certificate_deleted",
                "certificate_drafted",
                "certificate_revised",
                "certificate_signed",
                "certificate_signed_by_hand",
                "certificate_voided",
                "change_acknowledged",
                "charge_billed",
                "checked",
                "chosen_to_open_first",
                "closed",
                "combined",
                "combined_into",
                "comparison_stated",
                "company_linked",
                "company_unlinked",
                "completed",
                "condition_mapped",
                "confirmed",
                "connected",
                "contacts_changed",
                "conversion_reverted",
                "converted",
                "converted_to_cost_pool",
                "copied",
                "copied_from",
                "core_added_to_repair_order",
                "core_allocated",
                "core_billed",
                "core_bought",
                "core_due_revised",
                "core_owed",
                "core_purchase_removed",
                "core_received",
                "core_repair_billed",
                "core_returned_to_inventory",
                "core_scrapped",
                "core_shipped",
                "core_unshipped",
                "corrected",
                "correction_generated",
                "cost_pool_revised",
                "cost_recovered",
                "cost_transferred_in",
                "cost_transferred_out",
                "cost_unpriced",
                "cost_variance",
                "created",
                "credentials_changed",
                "credit_generated",
                "credit_memo_generated",
                "credit_memo_sent",
                "credited",
                "currency_changed",
                "custody_allocated",
                "custody_returned",
                "customer_replied",
                "customer_unit_received",
                "customer_unit_returned",
                "customer_unit_scrapped",
                "deactivated",
                "declined",
                "declined_quote_sending_started",
                "declined_quote_sending_stopped",
                "defaults_changed",
                "deleted",
                "did_not_arrive",
                "direct_rfq_answers_changed",
                "disconnected",
                "downloaded",
                "draft_discarded",
                "drafted",
                "drafted_from_message",
                "due_back_revised",
                "duplicated",
                "duplicated_from",
                "email_bounced",
                "email_reported_as_spam",
                "email_resumed",
                "email_stopped",
                "email_template_chosen",
                "email_template_cleared",
                "emailed",
                "exchange_activity_recorded",
                "exchange_cancelled",
                "exchange_opened",
                "expired",
                "external_key_linked",
                "external_key_unlinked",
                "failed",
                "fields_drafted",
                "file_attached",
                "file_copying_started",
                "file_copying_stopped",
                "file_removed",
                "files_shared",
                "finding_added",
                "finding_removed",
                "finding_updated",
                "finish_refused",
                "finish_scheduled",
                "finished",
                "following_revised",
                "fx_rate_stamped",
                "gate_reached",
                "generated",
                "given",
                "held",
                "held_for_review",
                "hidden_marketplaces_changed",
                "hold_lifted",
                "hold_placed",
                "humidity_over_limit",
                "ignored",
                "initial_load_reopened",
                "inspection_completed",
                "inspection_discarded",
                "inspection_item_answered",
                "inspection_item_waived",
                "inspection_reopened",
                "inspection_started",
                "instruction_added",
                "instruction_assigned",
                "instruction_cancelled",
                "instruction_carried_forward",
                "instruction_completed",
                "instruction_removed",
                "instruction_reopened",
                "instruction_updated",
                "instructions_imported",
                "inventory_line_minted",
                "invited",
                "invoice_generated",
                "invoice_sent",
                "issue_allocated",
                "issue_quarantined",
                "issue_removed",
                "issue_seeded",
                "issue_split_planned",
                "kept_as_draft",
                "kept_from_autoquote",
                "labor_clocked_in",
                "labor_charged",
                "labor_clocked_out",
                "labor_corrected",
                "labor_keyed",
                "labor_removed",
                "layout_fell_back",
                "lease_opened",
                "lease_unit_allocated",
                "line_added",
                "line_allocated",
                "line_cancelled",
                "line_deallocated",
                "line_estimate_approved",
                "line_estimate_recorded",
                "line_final_cost_recorded",
                "line_matched",
                "line_moved",
                "line_picked",
                "line_promise_revised",
                "line_rejected",
                "line_removed",
                "line_repointed",
                "line_returned_to_inventory",
                "line_scrapped",
                "line_shipped",
                "line_split",
                "line_unpicked",
                "line_unshipped",
                "line_unverified",
                "line_updated",
                "line_verified",
                "lines_aligned_to_requests",
                "lines_imported",
                "lines_moved_in",
                "lines_reordered",
                "load_failed",
                "loaded",
                "logged",
                "lost",
                "lost_reason_changed",
                "mapping_saved",
                "material_added",
                "material_added_to_repair_order",
                "material_flagged_unused",
                "material_issued",
                "material_moved",
                "material_ordered",
                "material_reallocated",
                "material_rejected",
                "material_removed",
                "material_returned",
                "material_turn_in_cancelled",
                "material_turned_in",
                "material_updated",
                "material_visually_checked",
                "materials_imported",
                "measurement_unit_mapped",
                "members_changed",
                "moved",
                "noted_from_message",
                "occurrence_cancelled",
                "occurrence_revised",
                "onboarding_dismissed",
                "onboarding_undismissed",
                "opened",
                "ordered",
                "orders_left_waiting",
                "outright_purchase_removed",
                "package_added",
                "package_arrived",
                "part_numbers_resolved",
                "part_removed",
                "participant_added",
                "parts_added",
                "parts_issued",
                "parts_returned_to_inventory",
                "parts_shipped",
                "parts_unshipped",
                "payment_applied",
                "payment_recorded",
                "payment_unapplied",
                "payment_voided",
                "period_billed",
                "period_charged",
                "posted",
                "posting_recorded",
                "print_expired",
                "print_failed",
                "print_requested",
                "printed",
                "promise_revised",
                "protection_held",
                "protection_released",
                "published",
                "publications_applied",
                "publications_changed",
                "purchased_without_coverage",
                "push_back_scheduled",
                "quickbooks_linked",
                "quickbooks_relinked",
                "quickbooks_unlinked",
                "quote_line_added",
                "quote_line_moved",
                "quote_line_removed",
                "quote_line_updated",
                "quote_lines_aligned_to_requests",
                "quoted_unit_unavailable",
                "quoted_vendor_inventory_unavailable",
                "quoting_reading_started",
                "quoting_reading_stopped",
                "rate_revised",
                "read",
                "receipt_created",
                "receipt_received",
                "received",
                "recorded",
                "records_skipped",
                "records_unskipped",
                "refund_clamped",
                "reissued",
                "removed_from_suppression_list",
                "renamed",
                "release_cancelled",
                "release_generated",
                "release_shipped",
                "release_split",
                "release_unshipped",
                "releases_combined",
                "reopened",
                "repair_service_mapped",
                "replacement_ordered",
                "reply_handled",
                "reposted",
                "reprint_requested",
                "reprinted",
                "reprocessed",
                "request_line_added",
                "request_line_moved",
                "request_line_removed",
                "request_line_updated",
                "requested_for",
                "requirement_added",
                "requirement_removed",
                "requirement_waived",
                "requirements_changed",
                "resent",
                "restated_from_message",
                "restored",
                "resumed",
                "return_opened",
                "returned_to_inventory",
                "returned_to_queue",
                "returned_to_vendor",
                "revision_adopted",
                "role_mapped",
                "roles_changed",
                "scrapped",
                "sender_allowed",
                "sender_blocked",
                "sending_domain_failing",
                "sending_domain_recovered",
                "sent",
                "sent_to_avsight",
                "sent_to_purchasing",
                "sent_to_sourcing",
                "share_extended",
                "share_fresh_link_sent",
                "share_link_reissued",
                "share_recipient_extended",
                "share_recipient_revoked",
                "share_recipients_added",
                "share_revised",
                "share_revoked",
                "shared_document_replaced",
                "shared_file_downloaded",
                "shared_file_removed",
                "shared_files_added",
                "shared_files_downloaded",
                "shared_files_opened",
                "shipment_cancelled",
                "shipped",
                "shop_supply_added",
                "shop_supply_removed",
                "shop_supply_updated",
                "signed_out",
                "signer_skill_changed",
                "skipped",
                "skipped_away",
                "sold_outright",
                "sourcing_request_carried_over",
                "split",
                "split_from",
                "phases_changed",
                "statement_sent",
                "status_changed",
                "stopped_opening_first",
                "superseded",
                "supply_claimed",
                "supply_landed",
                "supply_reassigned",
                "supply_released",
                "support_access_turned_off",
                "support_access_turned_on",
                "system_of_record_switched",
                "task_added",
                "task_assigned",
                "task_cancelled",
                "task_removed",
                "task_skills_changed",
                "task_status_changed",
                "task_updated",
                "tasks_imported",
                "tasks_made_ready",
                "tasks_repriced",
                "tax_applied",
                "tax_suppressed",
                "teardown_completed",
                "teardown_undone",
                "template_applied",
                "template_instructions_copied",
                "template_materials_copied",
                "tier_changed",
                "trashed",
                "trigger_skipped",
                "unit_added_to_repair_order",
                "unit_returned",
                "unit_shipped_back",
                "unit_unshipped",
                "unrecovered_cost_billed",
                "updated",
                "value_adjusted",
                "value_matches_changed",
                "verified",
                "version_added",
                "voucher_generated",
                "vouchered",
                "warehouse_defaults_applied",
                "warehouse_defaults_dismissed",
                "withdrawn",
                "won",
                "work_completed",
                "work_started",
                "written_off"
              ]
            }
          }
        },
        "required": [
          "url",
          "enabled_actions"
        ]
      },
      "WebhookEndpointUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "enabled_actions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "*",
                "access_token_minted",
                "access_token_revoked",
                "activated",
                "added_to_receipt",
                "added_to_repair_order",
                "added_to_suppression_list",
                "answered_no_quote",
                "application_authorized",
                "application_revoked",
                "applied",
                "approved",
                "arrived",
                "asked",
                "asked_for",
                "assigned",
                "assignments_forgotten",
                "autoquoted",
                "bought_outright",
                "built",
                "calendar_feed_issued",
                "calendar_feed_reset",
                "calibrated",
                "cancelled",
                "capabilities_changed",
                "carried_over",
                "certificate_deleted",
                "certificate_drafted",
                "certificate_revised",
                "certificate_signed",
                "certificate_signed_by_hand",
                "certificate_voided",
                "change_acknowledged",
                "charge_billed",
                "checked",
                "chosen_to_open_first",
                "closed",
                "combined",
                "combined_into",
                "comparison_stated",
                "company_linked",
                "company_unlinked",
                "completed",
                "condition_mapped",
                "confirmed",
                "connected",
                "contacts_changed",
                "conversion_reverted",
                "converted",
                "converted_to_cost_pool",
                "copied",
                "copied_from",
                "core_added_to_repair_order",
                "core_allocated",
                "core_billed",
                "core_bought",
                "core_due_revised",
                "core_owed",
                "core_purchase_removed",
                "core_received",
                "core_repair_billed",
                "core_returned_to_inventory",
                "core_scrapped",
                "core_shipped",
                "core_unshipped",
                "corrected",
                "correction_generated",
                "cost_pool_revised",
                "cost_recovered",
                "cost_transferred_in",
                "cost_transferred_out",
                "cost_unpriced",
                "cost_variance",
                "created",
                "credentials_changed",
                "credit_generated",
                "credit_memo_generated",
                "credit_memo_sent",
                "credited",
                "currency_changed",
                "custody_allocated",
                "custody_returned",
                "customer_replied",
                "customer_unit_received",
                "customer_unit_returned",
                "customer_unit_scrapped",
                "deactivated",
                "declined",
                "declined_quote_sending_started",
                "declined_quote_sending_stopped",
                "defaults_changed",
                "deleted",
                "did_not_arrive",
                "direct_rfq_answers_changed",
                "disconnected",
                "downloaded",
                "draft_discarded",
                "drafted",
                "drafted_from_message",
                "due_back_revised",
                "duplicated",
                "duplicated_from",
                "email_bounced",
                "email_reported_as_spam",
                "email_resumed",
                "email_stopped",
                "email_template_chosen",
                "email_template_cleared",
                "emailed",
                "exchange_activity_recorded",
                "exchange_cancelled",
                "exchange_opened",
                "expired",
                "external_key_linked",
                "external_key_unlinked",
                "failed",
                "fields_drafted",
                "file_attached",
                "file_copying_started",
                "file_copying_stopped",
                "file_removed",
                "files_shared",
                "finding_added",
                "finding_removed",
                "finding_updated",
                "finish_refused",
                "finish_scheduled",
                "finished",
                "following_revised",
                "fx_rate_stamped",
                "gate_reached",
                "generated",
                "given",
                "held",
                "held_for_review",
                "hidden_marketplaces_changed",
                "hold_lifted",
                "hold_placed",
                "humidity_over_limit",
                "ignored",
                "initial_load_reopened",
                "inspection_completed",
                "inspection_discarded",
                "inspection_item_answered",
                "inspection_item_waived",
                "inspection_reopened",
                "inspection_started",
                "instruction_added",
                "instruction_assigned",
                "instruction_cancelled",
                "instruction_carried_forward",
                "instruction_completed",
                "instruction_removed",
                "instruction_reopened",
                "instruction_updated",
                "instructions_imported",
                "inventory_line_minted",
                "invited",
                "invoice_generated",
                "invoice_sent",
                "issue_allocated",
                "issue_quarantined",
                "issue_removed",
                "issue_seeded",
                "issue_split_planned",
                "kept_as_draft",
                "kept_from_autoquote",
                "labor_clocked_in",
                "labor_charged",
                "labor_clocked_out",
                "labor_corrected",
                "labor_keyed",
                "labor_removed",
                "layout_fell_back",
                "lease_opened",
                "lease_unit_allocated",
                "line_added",
                "line_allocated",
                "line_cancelled",
                "line_deallocated",
                "line_estimate_approved",
                "line_estimate_recorded",
                "line_final_cost_recorded",
                "line_matched",
                "line_moved",
                "line_picked",
                "line_promise_revised",
                "line_rejected",
                "line_removed",
                "line_repointed",
                "line_returned_to_inventory",
                "line_scrapped",
                "line_shipped",
                "line_split",
                "line_unpicked",
                "line_unshipped",
                "line_unverified",
                "line_updated",
                "line_verified",
                "lines_aligned_to_requests",
                "lines_imported",
                "lines_moved_in",
                "lines_reordered",
                "load_failed",
                "loaded",
                "logged",
                "lost",
                "lost_reason_changed",
                "mapping_saved",
                "material_added",
                "material_added_to_repair_order",
                "material_flagged_unused",
                "material_issued",
                "material_moved",
                "material_ordered",
                "material_reallocated",
                "material_rejected",
                "material_removed",
                "material_returned",
                "material_turn_in_cancelled",
                "material_turned_in",
                "material_updated",
                "material_visually_checked",
                "materials_imported",
                "measurement_unit_mapped",
                "members_changed",
                "moved",
                "noted_from_message",
                "occurrence_cancelled",
                "occurrence_revised",
                "onboarding_dismissed",
                "onboarding_undismissed",
                "opened",
                "ordered",
                "orders_left_waiting",
                "outright_purchase_removed",
                "package_added",
                "package_arrived",
                "part_numbers_resolved",
                "part_removed",
                "participant_added",
                "parts_added",
                "parts_issued",
                "parts_returned_to_inventory",
                "parts_shipped",
                "parts_unshipped",
                "payment_applied",
                "payment_recorded",
                "payment_unapplied",
                "payment_voided",
                "period_billed",
                "period_charged",
                "posted",
                "posting_recorded",
                "print_expired",
                "print_failed",
                "print_requested",
                "printed",
                "promise_revised",
                "protection_held",
                "protection_released",
                "published",
                "publications_applied",
                "publications_changed",
                "purchased_without_coverage",
                "push_back_scheduled",
                "quickbooks_linked",
                "quickbooks_relinked",
                "quickbooks_unlinked",
                "quote_line_added",
                "quote_line_moved",
                "quote_line_removed",
                "quote_line_updated",
                "quote_lines_aligned_to_requests",
                "quoted_unit_unavailable",
                "quoted_vendor_inventory_unavailable",
                "quoting_reading_started",
                "quoting_reading_stopped",
                "rate_revised",
                "read",
                "receipt_created",
                "receipt_received",
                "received",
                "recorded",
                "records_skipped",
                "records_unskipped",
                "refund_clamped",
                "reissued",
                "removed_from_suppression_list",
                "renamed",
                "release_cancelled",
                "release_generated",
                "release_shipped",
                "release_split",
                "release_unshipped",
                "releases_combined",
                "reopened",
                "repair_service_mapped",
                "replacement_ordered",
                "reply_handled",
                "reposted",
                "reprint_requested",
                "reprinted",
                "reprocessed",
                "request_line_added",
                "request_line_moved",
                "request_line_removed",
                "request_line_updated",
                "requested_for",
                "requirement_added",
                "requirement_removed",
                "requirement_waived",
                "requirements_changed",
                "resent",
                "restated_from_message",
                "restored",
                "resumed",
                "return_opened",
                "returned_to_inventory",
                "returned_to_queue",
                "returned_to_vendor",
                "revision_adopted",
                "role_mapped",
                "roles_changed",
                "scrapped",
                "sender_allowed",
                "sender_blocked",
                "sending_domain_failing",
                "sending_domain_recovered",
                "sent",
                "sent_to_avsight",
                "sent_to_purchasing",
                "sent_to_sourcing",
                "share_extended",
                "share_fresh_link_sent",
                "share_link_reissued",
                "share_recipient_extended",
                "share_recipient_revoked",
                "share_recipients_added",
                "share_revised",
                "share_revoked",
                "shared_document_replaced",
                "shared_file_downloaded",
                "shared_file_removed",
                "shared_files_added",
                "shared_files_downloaded",
                "shared_files_opened",
                "shipment_cancelled",
                "shipped",
                "shop_supply_added",
                "shop_supply_removed",
                "shop_supply_updated",
                "signed_out",
                "signer_skill_changed",
                "skipped",
                "skipped_away",
                "sold_outright",
                "sourcing_request_carried_over",
                "split",
                "split_from",
                "phases_changed",
                "statement_sent",
                "status_changed",
                "stopped_opening_first",
                "superseded",
                "supply_claimed",
                "supply_landed",
                "supply_reassigned",
                "supply_released",
                "support_access_turned_off",
                "support_access_turned_on",
                "system_of_record_switched",
                "task_added",
                "task_assigned",
                "task_cancelled",
                "task_removed",
                "task_skills_changed",
                "task_status_changed",
                "task_updated",
                "tasks_imported",
                "tasks_made_ready",
                "tasks_repriced",
                "tax_applied",
                "tax_suppressed",
                "teardown_completed",
                "teardown_undone",
                "template_applied",
                "template_instructions_copied",
                "template_materials_copied",
                "tier_changed",
                "trashed",
                "trigger_skipped",
                "unit_added_to_repair_order",
                "unit_returned",
                "unit_shipped_back",
                "unit_unshipped",
                "unrecovered_cost_billed",
                "updated",
                "value_adjusted",
                "value_matches_changed",
                "verified",
                "version_added",
                "voucher_generated",
                "vouchered",
                "warehouse_defaults_applied",
                "warehouse_defaults_dismissed",
                "withdrawn",
                "won",
                "work_completed",
                "work_started",
                "written_off"
              ]
            }
          }
        }
      },
      "WorkCenterCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "organization_uuid",
          "code",
          "name"
        ]
      },
      "WorkCenterUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "WorkInstructionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The task it is a step of; a summary task takes none, its sub tasks do"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The skill whoever does it must hold; left out, it takes any of the task's"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "environment_check": {
            "type": "boolean"
          },
          "max_humidity_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "assigned_to_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Who does it, holding its skill, else one of the task's, today"
          }
        },
        "required": [
          "work_order_task_uuid",
          "name"
        ]
      },
      "WorkInstructionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a skill"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "environment_check": {
            "type": "boolean"
          },
          "max_humidity_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "assigned_to_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Who does it, holding its skill as this edit leaves it; given with a new skill, it replaces an assignee who doesn't hold that skill"
          }
        }
      },
      "WorkInstructionAssign": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "assigned_to_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The employee to do it, who holds its skill, else one of its task's, today; null leaves it with no one"
          }
        },
        "required": [
          "assigned_to_uuid"
        ]
      },
      "WorkInstructionCarryForward": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string",
            "description": "Why it is left for later, kept on it; it counts as done for its task"
          }
        },
        "required": [
          "note"
        ]
      },
      "WorkInstructionComplete": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "humidity_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The relative humidity read, which a humidity and temperature check needs; over its limit it still completes"
          },
          "temperature": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The temperature read beside it, which a check needs too"
          },
          "temperature_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "`celsius` or `fahrenheit`, which a check needs too"
          }
        }
      },
      "WorkOrderGateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        },
        "required": [
          "organization_uuid",
          "name"
        ]
      },
      "WorkOrderGateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          }
        }
      },
      "WorkOrderMaterialDispositionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialDispositionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialInspectionComplianceCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialInspectionComplianceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialNdtQuantityStatusCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialNdtQuantityStatusUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialPickStatusCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialPickStatusUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialRemovalPriorityCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialRemovalPriorityUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialSupplyStatusCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialSupplyStatusUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderMaterialCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_task_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The task it is for; a summary task takes none, its sub tasks do"
          },
          "work_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The work order it is for, sent instead of a task: it lands on the work order's default parts task"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among the task's materials; left out, one past the last"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ]
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean",
            "description": "Whether it asks for its quantity once for each unit the work order repairs; left out, as the work order settings' `multiply_by_quantity_to_repair` says"
          },
          "customer_supplied": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ]
          },
          "teardown_finding": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "found",
              "missing",
              "damaged",
              "alt_part_number",
              null
            ]
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_off_serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_off_life_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "part_off_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off"
          },
          "part_off_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off condition"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "removal_priority_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a removal priority"
          },
          "supply_status_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a supply status"
          },
          "disposition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a disposition"
          },
          "inspection_compliance_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inspection compliance"
          },
          "ndt_quantity_status_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an NDT quantity status"
          }
        },
        "required": [
          "quantity_requested"
        ]
      },
      "WorkOrderMaterialUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sequence": {
            "type": "integer"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ]
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean"
          },
          "customer_supplied": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ]
          },
          "teardown_finding": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "found",
              "missing",
              "damaged",
              "alt_part_number",
              null
            ]
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_off_serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_off_life_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "part_off_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off"
          },
          "part_off_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off condition"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "removal_priority_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a removal priority"
          },
          "supply_status_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a supply status"
          },
          "disposition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a disposition"
          },
          "inspection_compliance_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an inspection compliance"
          },
          "ndt_quantity_status_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an NDT quantity status"
          }
        }
      },
      "WorkOrderMaterialAddToRepairOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor a new repair order is cut for"
          },
          "repair_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "An open repair order the lines join instead"
          },
          "repair_service_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "estimated_unit_cost_cents": {
            "type": [
              "string",
              "null"
            ]
          },
          "estimated_unit_cost": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "The estimated unit cost in the repair order's currency (the vendor's, for an order this cuts), for a caller that can't know it; send this or `estimated_unit_cost_cents`, not both"
          },
          "external_notes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "repair_service_uuid"
        ]
      },
      "WorkOrderMaterialAllocate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "supplies": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "supply_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a supply"
                },
                "supply_type": {
                  "type": "string"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            }
          }
        },
        "required": [
          "supplies"
        ]
      },
      "WorkOrderMaterialAssignPick": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "picker_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The employee who picks its parts; null clears it, and left out it stays"
          },
          "pick_status_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Where its pick stands, one of the shop's pick statuses; null clears it, and left out it stays"
          }
        }
      },
      "WorkOrderMaterialCancelTurnIn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "turn_in_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The turn-in to cancel, one `GET /work_order_materials/{uuid}/turn_ins` lists; cancelling one the material holds allocated also asks for `inventory:write`"
          }
        },
        "required": [
          "turn_in_uuid"
        ]
      },
      "WorkOrderMaterialCheckVisually": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "inventory_line_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The unit looked over: the work order's own unit, or a part turned in off it still on hand, of the material's part"
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The condition the unit was found in, which is set on it"
          },
          "findings": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the technician found on the unit"
          },
          "print_label": {
            "type": "boolean",
            "description": "Whether to print the unit's inventory label; left out, as the work order settings' `generate_barcode_at_turn_in` says"
          },
          "printer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The printer the label goes to; left out, the label is generated for the browser to print"
          }
        },
        "required": [
          "inventory_line_uuid",
          "condition_uuid"
        ]
      },
      "WorkOrderMaterialFlagUnused": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity_unused": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many of the parts still issued went unused, no more than `quantity_issued`; 0 clears the flag"
          },
          "unused_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "higher_quantity",
              "not_replaced",
              "request_cancelled",
              "failed_on_install",
              null
            ],
            "description": "Why they went unused; required above 0"
          },
          "employee_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The employee who found them unused; left out, the asking seat's own"
          }
        },
        "required": [
          "quantity_unused"
        ]
      },
      "WorkOrderMaterialIssue": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "employee_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The employee the parts are issued to"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many to issue; left out, all it has allocated on hand"
          },
          "allocation_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The allocation to issue from; left out, its allocations on hand in the order they were made"
          }
        },
        "required": [
          "employee_uuid"
        ]
      },
      "WorkOrderMaterialMove": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The task it moves to, another of the same work order's"
          }
        },
        "required": [
          "work_order_task_uuid"
        ]
      },
      "WorkOrderMaterialOrder": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "vendor_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the vendor a new purchase order is cut for"
          },
          "purchase_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "An open purchase order the line joins instead"
          },
          "unit_cost_cents": {
            "type": "integer",
            "description": "The line's unit cost, in the order's currency"
          }
        }
      },
      "WorkOrderMaterialReallocate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "allocation_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The allocation on another work order's material the parts come from"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many to take; left out, all the allocation holds"
          }
        },
        "required": [
          "allocation_uuid"
        ]
      },
      "WorkOrderMaterialReject": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "allocation_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The allocation on hand, one of the material's, whose unit won't do"
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "reason_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "allocation_uuid"
        ]
      },
      "WorkOrderMaterialReturn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many come back"
          },
          "issue_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The issue they come back from, one `GET /work_order_materials/{uuid}/issues` lists; left out, the latest issues first"
          }
        },
        "required": [
          "quantity"
        ]
      },
      "WorkOrderMaterialTurnIn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The part taken off; left out, the material's part off, else its part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The condition it came off in; left out, the material's part off condition"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its serial number; left out, the material's part off serial number, and null, none"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many came off; left out, what the material asks less what is already removed"
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The warehouse it joins, at the bin's facility; left out, the work order's own warehouse at the bin's facility, else the oldest there, and with no bin, the warehouse the work order's unit sits in"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Where it is put; left out, the warehouse the work order's unit sits in"
          },
          "findings": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Removed Part Findings: what the technician found on the part"
          },
          "allocate": {
            "type": "boolean",
            "description": "Whether to allocate the unit back to the material, which then takes it past its protection; only a material taking parts from inventory, and it asks for `inventory:write` too"
          },
          "print_label": {
            "type": "boolean",
            "description": "Whether to print the unit's inventory label; left out, as the work order settings' `generate_barcode_at_turn_in` says"
          },
          "printer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The printer the label goes to; left out, the label is generated for the browser to print"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The part expected back on, which it sets on the material; null clears it, and left out, it stays as it is"
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The condition the part back on is expected in, which it sets on the material; null clears it, and left out, it stays as it is"
          }
        }
      },
      "WorkOrderSettingsUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "hold_over_credit_limit": {
            "type": "boolean"
          },
          "capability_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "block"
            ]
          },
          "cancel_unreceived_after_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Days a work order may wait on its unit before it is cancelled; null never cancels one"
          },
          "publication_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "require"
            ]
          },
          "apply_part_publications": {
            "type": "boolean"
          },
          "warn_without_instructions_at_receiving": {
            "type": "boolean"
          },
          "keep_template_sequences": {
            "type": "boolean"
          },
          "copied_task_step": {
            "type": "integer"
          },
          "template_publication_check": {
            "type": "string",
            "enum": [
              "ignore",
              "warn",
              "require"
            ]
          },
          "advance_gate_when_complete": {
            "type": "boolean"
          },
          "gates_in_order": {
            "type": "boolean"
          },
          "ready_first_gate_only": {
            "type": "boolean"
          },
          "clocking": {
            "type": "string",
            "enum": [
              "one_task",
              "one_work_order",
              "any"
            ]
          },
          "labor_split": {
            "type": "string",
            "enum": [
              "time_weighted",
              "task_weighted",
              "equal"
            ]
          },
          "auto_clock_out_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "The time of day, `HH:MM` on the 24-hour clock in the business's time zone, at which everyone still clocked in is clocked out; null clocks no one out"
          },
          "block_labor_until_received": {
            "type": "boolean"
          },
          "clock_in_required": {
            "type": "boolean"
          },
          "technician_hides_clock_in": {
            "type": "boolean"
          },
          "technician_hides_cancel": {
            "type": "boolean"
          },
          "technician_adds_instructions": {
            "type": "boolean"
          },
          "technician_hides_optional_materials": {
            "type": "boolean"
          },
          "technician_edits_quantity_requested": {
            "type": "boolean"
          },
          "technician_hides_quantity_issued": {
            "type": "boolean"
          },
          "multiply_by_quantity_to_repair": {
            "type": "boolean"
          },
          "auto_allocate_on_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "received",
              "evaluating",
              "awaiting_approval",
              "in_work",
              "awaiting_inspection",
              "completed",
              null
            ]
          },
          "allocate_from_purchase_lines": {
            "type": "boolean"
          },
          "allocate_from_own_location_only": {
            "type": "boolean"
          },
          "block_lot_allocations": {
            "type": "boolean"
          },
          "require_quantity_removed": {
            "type": "boolean"
          },
          "generate_barcode_at_turn_in": {
            "type": "boolean"
          },
          "default_inventory_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The inventory held for others a received customer's unit lands in; null takes the managed repairs code from the account settings"
          },
          "default_warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The warehouse a received customer's unit lands in; null leaves it to receiving"
          },
          "new_task_skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The active skill a new task starts with when it is raised on the Technician page or added on a work order's Tasks tab; null starts it with none"
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "moment": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "stage_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "team_uuid": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "notifies_in_app": {
                  "type": "boolean"
                },
                "notifies_by_email": {
                  "type": "boolean"
                }
              }
            },
            "maxItems": 8,
            "description": "The moments to set, each by its `moment`, moving a work order to the stage `stage_uuid` names, or nothing where it is null, and telling the active team `team_uuid` names, in the app where `notifies_in_app` and by email where `notifies_by_email`; either needs a team. A moment left out keeps what it does, and a field a row leaves out keeps its value"
          }
        }
      },
      "WorkOrderShopSupplyCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The task it is for; a summary task takes none, its sub tasks do"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among the task's shop supplies; left out, one past the last"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "bin_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "measurement_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The unit `quantity` counts in; left out, the part's own"
          }
        },
        "required": [
          "work_order_task_uuid",
          "part_uuid",
          "bin_uuid",
          "quantity"
        ]
      },
      "WorkOrderShopSupplyUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sequence": {
            "type": "integer"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "bin_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a bin"
          },
          "measurement_unit_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The unit `quantity` counts in; null, the part's own; left out, the unit it has, unless another part is picked, which brings its own"
          }
        }
      },
      "WorkOrderStageCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "status": {
            "type": "string",
            "enum": [
              "awaiting_unit",
              "received",
              "evaluating",
              "awaiting_approval",
              "in_work",
              "awaiting_inspection",
              "completed",
              "closed",
              "cancelled"
            ]
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "time_tracking": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accountable",
              "not_accountable",
              null
            ]
          }
        },
        "required": [
          "organization_uuid",
          "status",
          "name"
        ]
      },
      "WorkOrderStageUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer"
          },
          "time_tracking": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "accountable",
              "not_accountable",
              null
            ]
          }
        }
      },
      "WorkOrderTaskStageCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "in_progress",
              "completed",
              "cancelled"
            ]
          },
          "name": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "locks_deletion": {
            "type": "boolean"
          }
        },
        "required": [
          "organization_uuid",
          "status",
          "name"
        ]
      },
      "WorkOrderTaskStageUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "type": "integer"
          },
          "locks_deletion": {
            "type": "boolean"
          }
        }
      },
      "WorkOrderTemplateCategoryCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          }
        },
        "required": [
          "name"
        ]
      },
      "WorkOrderTemplateCategoryUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "position": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          }
        }
      },
      "WorkOrderTemplateInstructionCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_template_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The template task it is a step of; a summary task takes none, its sub tasks do"
          },
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The skill whoever does it must hold; left out, it takes any of the task's"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "environment_check": {
            "type": "boolean"
          },
          "max_humidity_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "required": [
          "work_order_template_task_uuid",
          "name"
        ]
      },
      "WorkOrderTemplateInstructionUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "skill_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a skill"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "environment_check": {
            "type": "boolean"
          },
          "max_humidity_percent": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        }
      },
      "WorkOrderTemplateMaterialCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_template_task_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The template task it is for; a summary task takes none, its sub tasks do"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it sits among the task's materials; left out, one past the last"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ]
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean",
            "description": "Whether it asks for its quantity once for each unit the work order repairs; left out, as the work order settings' `multiply_by_quantity_to_repair` says"
          },
          "customer_supplied": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ]
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "part_off_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "removal_priority_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a removal priority"
          }
        },
        "required": [
          "work_order_template_task_uuid",
          "quantity_requested"
        ]
      },
      "WorkOrderTemplateMaterialUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sequence": {
            "type": "integer"
          },
          "material_type": {
            "type": "string",
            "enum": [
              "consumable",
              "replace",
              "repair",
              "remove",
              "visual_check",
              "component",
              "main_component_repair",
              "offer_exchange"
            ]
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_requested": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "multiplied_by_quantity_to_repair": {
            "type": "boolean"
          },
          "customer_supplied": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "missed_in_evaluation",
              "additional_damage_found",
              "broken_hardware",
              "missing_hardware",
              "sb_required",
              "ad_required",
              "part_not_on_bom_list",
              null
            ]
          },
          "expected_market_value_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a condition"
          },
          "part_off_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part off"
          },
          "expected_part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected part"
          },
          "expected_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an expected condition"
          },
          "removal_priority_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a removal priority"
          }
        }
      },
      "WorkOrderTemplateTasksReprice": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "flat_rate_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_over_and_above_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "labor_fixed_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "misc_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_code": {
            "type": "string",
            "description": "The currency the prices were entered in, which the tasks' templates must still price in"
          },
          "work_order_template_task_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 100,
            "description": "The tasks to reprice, all of whose templates price in one currency"
          }
        },
        "required": [
          "work_order_template_task_uuids",
          "currency_code"
        ]
      },
      "WorkOrderTemplateCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "work_order_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The work order whose header, publications, tasks, work instructions, materials and files the template copies as they stand now; a field sent with it takes the place of the work order's, and the template is the work order's organization's"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              null
            ]
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "currency_code": {
            "type": "string"
          },
          "applies_at_opening": {
            "type": "boolean"
          },
          "prices_quote_lines": {
            "type": "boolean"
          },
          "copies_header": {
            "type": "boolean"
          },
          "copies_tasks": {
            "type": "boolean"
          },
          "copies_instructions": {
            "type": "boolean"
          },
          "copies_materials": {
            "type": "boolean"
          },
          "copies_publications": {
            "type": "boolean"
          },
          "copies_documents": {
            "type": "boolean"
          },
          "category_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "subcategory_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a subcategory"
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The part whose repair service it is for; sent alone, it keeps the service, and null with `repair_service_uuid` null takes the template off both"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "final_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a final condition"
          },
          "work_center_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work center"
          },
          "publication_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "description": "The publications the work is done to, the whole list in order; absent leaves them as they are, and an empty list clears them"
          }
        },
        "required": [
          "name",
          "category_uuid"
        ]
      },
      "WorkOrderTemplateUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "integer"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              null
            ]
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "currency_code": {
            "type": "string"
          },
          "applies_at_opening": {
            "type": "boolean"
          },
          "prices_quote_lines": {
            "type": "boolean"
          },
          "copies_header": {
            "type": "boolean"
          },
          "copies_tasks": {
            "type": "boolean"
          },
          "copies_instructions": {
            "type": "boolean"
          },
          "copies_materials": {
            "type": "boolean"
          },
          "copies_publications": {
            "type": "boolean"
          },
          "copies_documents": {
            "type": "boolean"
          },
          "category_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of a category"
          },
          "subcategory_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a subcategory"
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The part whose repair service it is for; sent alone, it keeps the service, and null with `repair_service_uuid` null takes the template off both"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "final_condition_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a final condition"
          },
          "work_center_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work center"
          },
          "publication_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "description": "The publications the work is done to, the whole list in order; absent leaves them as they are, and an empty list clears them"
          }
        }
      },
      "WorkOrderTemplateAddParts": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 500,
            "description": "The parts to add, one or many, none the template is already offered for"
          }
        },
        "required": [
          "part_uuids"
        ]
      },
      "WorkOrderTemplatePhaseCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "phase_template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "An active template of the template's organization and currency, made of tasks and copying something onto a work order, not already one of its phases"
          },
          "sequence": {
            "type": "integer",
            "description": "Where it applies among the template's phases; left out, after the last"
          }
        },
        "required": [
          "phase_template_uuid"
        ]
      },
      "WorkOrderTemplatePhaseUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sequence": {
            "type": "integer"
          }
        }
      },
      "WorkOrderTemplateReviseTasks": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence": {
                  "type": "integer"
                },
                "task_type": {
                  "type": "string",
                  "enum": [
                    "routine",
                    "non_routine"
                  ]
                },
                "work_scope": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inspect_test",
                    "repair",
                    "overhaul",
                    "modify",
                    "teardown",
                    null
                  ]
                },
                "billing_type": {
                  "type": "string",
                  "enum": [
                    "required",
                    "optional",
                    "warranty",
                    "repair_process_code"
                  ]
                },
                "output_type": {
                  "type": "string",
                  "enum": [
                    "summary",
                    "detail",
                    "hidden"
                  ]
                },
                "independent_inspection": {
                  "type": "boolean"
                },
                "der_repair": {
                  "type": "boolean"
                },
                "parent_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a parent"
                },
                "work_station_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a work station"
                },
                "gate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a gate"
                },
                "publication_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication"
                },
                "flat_rate_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "parts_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "parts_over_and_above_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "labor_fixed_rate_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "misc_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "skill_uuid": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "The uuid of a skill"
                      },
                      "estimated_hours": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  }
                }
              }
            },
            "description": "Each task to revise, named by its `uuid`; `skills` replaces every skill it names"
          },
          "new_tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence": {
                  "type": "integer"
                },
                "task_type": {
                  "type": "string",
                  "enum": [
                    "routine",
                    "non_routine"
                  ]
                },
                "work_scope": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inspect_test",
                    "repair",
                    "overhaul",
                    "modify",
                    "teardown",
                    null
                  ]
                },
                "billing_type": {
                  "type": "string",
                  "enum": [
                    "required",
                    "optional",
                    "warranty",
                    "repair_process_code"
                  ]
                },
                "output_type": {
                  "type": "string",
                  "enum": [
                    "summary",
                    "detail",
                    "hidden"
                  ]
                },
                "independent_inspection": {
                  "type": "boolean"
                },
                "der_repair": {
                  "type": "boolean"
                },
                "parent_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a parent"
                },
                "work_station_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a work station"
                },
                "gate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a gate"
                },
                "publication_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication"
                },
                "flat_rate_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "parts_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "parts_over_and_above_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "labor_fixed_rate_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "misc_fixed_price_cents": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "summary": {
                  "type": "boolean"
                },
                "skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "skill_uuid": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "The uuid of a skill"
                      },
                      "estimated_hours": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "WorkOrderTemplateTaskCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ]
          },
          "output_type": {
            "type": "string",
            "enum": [
              "summary",
              "detail",
              "hidden"
            ]
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean"
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "gate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a gate"
          },
          "publication_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication"
          },
          "flat_rate_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_over_and_above_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "labor_fixed_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "misc_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "summary": {
            "type": "boolean"
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "skill_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a skill"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            "description": "Each skill the task needs, with the hours it is estimated at; a task that is no summary names at least one, and a summary names none"
          }
        },
        "required": [
          "name"
        ]
      },
      "WorkOrderTemplateTaskUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ]
          },
          "output_type": {
            "type": "string",
            "enum": [
              "summary",
              "detail",
              "hidden"
            ]
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean"
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "gate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a gate"
          },
          "publication_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication"
          },
          "flat_rate_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "parts_over_and_above_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "labor_fixed_rate_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "misc_fixed_price_cents": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "WorkOrderTemplateTaskReplaceSkills": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "skills": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "skill_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a skill"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            "description": "Every skill the task needs, in order, with the hours each is estimated at; the ones it named before and not here are dropped"
          }
        },
        "required": [
          "skills"
        ]
      },
      "WorkOrderCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_to_repair": {
            "type": "integer"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "work_scope": {
            "type": "string",
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify"
            ]
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "spending_limit_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "technician_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a technician"
          },
          "work_center_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work center"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_markings": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "template_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "A work order template of the organization's to lay the work out from, applied as `apply_template` applies it, in the same call; absent, the template applying at opening to the part's repair service and customer, if there is one, is applied with every task, or passed over where it would be refused, `template_caution` saying why; null applies none. A refusal of the template named opens nothing"
          },
          "template_parent_as_summary": {
            "type": "boolean",
            "description": "Whether the template's tasks go under one summary task named for it, or one per phase named for that phase's template, as `apply_template` says"
          },
          "template_documents": {
            "type": "boolean",
            "description": "Whether the template's uploaded files are attached; absent, as its settings say"
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "receive": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "quantity": {
                "type": [
                  "number",
                  "string"
                ],
                "format": "decimal",
                "pattern": "^-?\\d+(\\.\\d+)?$"
              },
              "serial_number": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "condition_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a condition"
              },
              "warehouse_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a warehouse"
              },
              "bin_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a bin"
              }
            },
            "description": "The units that came with the work order, received on its receipt in the same call, which also asks for operations:write: a `condition_uuid`, the unit's `serial_number` when it differs from the work order's, `quantity` when fewer arrived than it repairs, and the `warehouse_uuid` and `bin_uuid` they were put away in; the rest are still to arrive. Several units of a serialized part are received on the receipt, a serial to each. A refusal opens nothing"
          },
          "publication_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "description": "The publications the work is done to, each at its current revision; absent, the current ones covering the part where the organization applies them; an empty list names none"
          },
          "template_task_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 500,
            "description": "The tasks of the template in `template_uuid` to copy; absent, every one. Sent without `template_uuid`, it is refused"
          }
        }
      },
      "WorkOrdersReceive": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "receivings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "work_order_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a work order"
                },
                "serial_number": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "condition_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a condition"
                },
                "warehouse_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a warehouse"
                },
                "bin_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a bin"
                },
                "quantity": {
                  "type": [
                    "number",
                    "string"
                  ],
                  "format": "decimal",
                  "pattern": "^-?\\d+(\\.\\d+)?$"
                }
              }
            },
            "maxItems": 100,
            "description": "Each work order and how its units arrived: a `condition_uuid`, and `quantity` when fewer came than it still awaits; the rest stay awaited"
          }
        },
        "required": [
          "receivings"
        ]
      },
      "WorkOrderUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "customer_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of the company that is the customer"
          },
          "contact_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a contact"
          },
          "contact_name_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "contact_email_address_raw": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a part"
          },
          "part_number_raw": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_to_repair": {
            "type": "integer"
          },
          "repair_service_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a repair service"
          },
          "work_scope": {
            "type": "string",
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify"
            ]
          },
          "requested_tag_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "no_der_repairs": {
            "type": "boolean"
          },
          "no_pma_material": {
            "type": "boolean"
          },
          "spending_limit_cents": {
            "type": [
              "integer",
              "null"
            ]
          },
          "currency_code": {
            "type": "string"
          },
          "fx_rate": {
            "type": [
              "number",
              "string",
              "null"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          },
          "technician_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a technician"
          },
          "work_center_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work center"
          },
          "initial_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "updated_promise_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "part_markings": {
            "type": [
              "string",
              "null"
            ]
          },
          "drop_ship": {
            "type": "boolean"
          },
          "drop_ship_company_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a drop ship company"
          },
          "drop_ship_email_address": {
            "type": [
              "string",
              "null"
            ]
          },
          "outcome": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "repaired",
              "returned_unrepaired",
              "scrapped",
              null
            ]
          },
          "default_parts_task_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a default parts task"
          },
          "customer": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string"
              },
              "cage_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "contact": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "first_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_name": {
                "type": "string"
              },
              "email_address": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "ship_to_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          },
          "drop_ship_address": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "company_address_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a company address"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "postal_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country_code": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "attn": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tax_destination_uuid": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "uuid",
                "description": "The uuid of a tax destination"
              },
              "save_to_book": {
                "type": "boolean"
              },
              "book_label": {
                "type": "string"
              }
            }
          }
        }
      },
      "WorkOrderAdvance": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "stage_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The stage to move to, one of `next_stages`"
          }
        }
      },
      "WorkOrderAllocateMaterials": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Where to allocate from, any of `inventory`, `purchase_order_lines`, and `repair_order_lines`"
          }
        },
        "required": [
          "sources"
        ]
      },
      "WorkOrderApplyTemplate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "template_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The work order template to copy from, one of the work order's organization's"
          },
          "parent_as_summary": {
            "type": "boolean",
            "description": "Whether the copies go under one summary task named for the template, or for a template made of phases, one per phase named for that phase's template; a summary named is then dropped, and its sub tasks come only where they are named"
          },
          "documents": {
            "type": "boolean",
            "description": "Whether the template's uploaded files are attached too; left out, as the template's settings say"
          },
          "task_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 500,
            "description": "The template's tasks to copy, each one of its own or, for a template made of phases, of its phases'; a summary named brings none of its sub tasks along"
          }
        },
        "required": [
          "template_uuid"
        ]
      },
      "WorkOrderFindingCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "necessity": {
            "type": "string",
            "enum": [
              "mandatory",
              "recommended"
            ]
          },
          "in_scope": {
            "type": "boolean"
          },
          "corrective_action": {
            "type": [
              "string",
              "null"
            ]
          },
          "raised_from_task_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The task of this work order whose work turned it up"
          }
        },
        "required": [
          "description"
        ]
      },
      "WorkOrderFindingUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "description": {
            "type": "string"
          },
          "necessity": {
            "type": "string",
            "enum": [
              "mandatory",
              "recommended"
            ]
          },
          "in_scope": {
            "type": "boolean"
          },
          "corrective_action": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "WorkOrderHoldCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "credit",
              "manual"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "kind"
        ]
      },
      "WorkOrderReplaceContacts": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "contact_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "description": "Everyone at the customer to keep informed, the whole list in order; an empty list clears it"
          }
        },
        "required": [
          "contact_uuids"
        ]
      },
      "WorkOrderReplacePublications": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "publications": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "publication_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication"
                },
                "publication_revision_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication revision"
                }
              }
            },
            "maxItems": 200,
            "description": "Every publication the work is done to, in order, each at the revision named, else the one it was put on at, else its current one; the ones it named before and not here are dropped; an empty list clears it"
          }
        },
        "required": [
          "publications"
        ]
      },
      "WorkOrderReviseFindings": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "description": {
                  "type": "string"
                },
                "necessity": {
                  "type": "string",
                  "enum": [
                    "mandatory",
                    "recommended"
                  ]
                },
                "in_scope": {
                  "type": "boolean"
                },
                "corrective_action": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          },
          "new_findings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "description": {
                  "type": "string"
                },
                "necessity": {
                  "type": "string",
                  "enum": [
                    "mandatory",
                    "recommended"
                  ]
                },
                "in_scope": {
                  "type": "boolean"
                },
                "corrective_action": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "WorkOrderRevisePromise": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "updated_promise_on": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "updated_promise_on"
        ]
      },
      "WorkOrderReviseTasks": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "uuid": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence": {
                  "type": "integer"
                },
                "task_type": {
                  "type": "string",
                  "enum": [
                    "routine",
                    "non_routine"
                  ]
                },
                "work_scope": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inspect_test",
                    "repair",
                    "overhaul",
                    "modify",
                    "teardown",
                    null
                  ]
                },
                "billing_type": {
                  "type": "string",
                  "enum": [
                    "required",
                    "optional",
                    "warranty",
                    "repair_process_code"
                  ]
                },
                "approval_status": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "pending_customer_approval",
                    "approved",
                    "rejected",
                    null
                  ]
                },
                "independent_inspection": {
                  "type": "boolean"
                },
                "der_repair": {
                  "type": "boolean"
                },
                "parent_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a parent"
                },
                "finding_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a finding"
                },
                "work_station_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a work station"
                },
                "gate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a gate"
                },
                "publication_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication"
                },
                "publication_revision_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication revision"
                },
                "assigned_to_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an assigned to"
                },
                "skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "skill_uuid": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "The uuid of a skill"
                      },
                      "estimated_hours": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  }
                }
              }
            },
            "description": "Each task to revise, named by its `uuid`; `skills` replaces every skill it names and `assigned_to_uuid` assigns it, judged together, so both may change at once"
          },
          "new_tasks": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string"
                },
                "instructions": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sequence": {
                  "type": "integer"
                },
                "task_type": {
                  "type": "string",
                  "enum": [
                    "routine",
                    "non_routine"
                  ]
                },
                "work_scope": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "inspect_test",
                    "repair",
                    "overhaul",
                    "modify",
                    "teardown",
                    null
                  ]
                },
                "billing_type": {
                  "type": "string",
                  "enum": [
                    "required",
                    "optional",
                    "warranty",
                    "repair_process_code"
                  ]
                },
                "approval_status": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "enum": [
                    "pending_customer_approval",
                    "approved",
                    "rejected",
                    null
                  ]
                },
                "independent_inspection": {
                  "type": "boolean"
                },
                "der_repair": {
                  "type": "boolean"
                },
                "parent_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a parent"
                },
                "finding_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a finding"
                },
                "work_station_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a work station"
                },
                "gate_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a gate"
                },
                "publication_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication"
                },
                "publication_revision_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a publication revision"
                },
                "summary": {
                  "type": "boolean"
                },
                "generated_from_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a generated from"
                },
                "assigned_to_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of an assigned to"
                },
                "skills": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "skill_uuid": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "uuid",
                        "description": "The uuid of a skill"
                      },
                      "estimated_hours": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "WorkOrderTaskCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ]
          },
          "approval_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pending_customer_approval",
              "approved",
              "rejected",
              null
            ]
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean"
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          },
          "finding_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a finding"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "gate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a gate"
          },
          "publication_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication"
          },
          "publication_revision_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication revision"
          },
          "summary": {
            "type": "boolean"
          },
          "generated_from_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a generated from"
          },
          "assigned_to_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of an assigned to"
          },
          "skills": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "skill_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a skill"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            "description": "Each skill the task needs, with the hours it is estimated at; a task that is no summary names at least one, and a summary names none"
          }
        },
        "required": [
          "name"
        ]
      },
      "WorkOrderTaskUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ]
          },
          "sequence": {
            "type": "integer"
          },
          "task_type": {
            "type": "string",
            "enum": [
              "routine",
              "non_routine"
            ]
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "inspect_test",
              "repair",
              "overhaul",
              "modify",
              "teardown",
              null
            ]
          },
          "billing_type": {
            "type": "string",
            "enum": [
              "required",
              "optional",
              "warranty",
              "repair_process_code"
            ]
          },
          "approval_status": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "pending_customer_approval",
              "approved",
              "rejected",
              null
            ]
          },
          "independent_inspection": {
            "type": "boolean"
          },
          "der_repair": {
            "type": "boolean"
          },
          "parent_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a parent"
          },
          "finding_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a finding"
          },
          "work_station_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a work station"
          },
          "gate_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a gate"
          },
          "publication_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication"
          },
          "publication_revision_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The uuid of a publication revision"
          }
        }
      },
      "WorkOrderTaskAddTeardown": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "part_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The part taken off"
          },
          "condition_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The condition it came off in"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Its serial number, which a serialized part needs"
          },
          "quantity": {
            "type": [
              "number",
              "string"
            ],
            "format": "decimal",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "How many came off"
          },
          "warehouse_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The warehouse it joins, at the bin's facility; left out, the work order's own warehouse at the bin's facility, else the oldest there, and with no bin, the warehouse the work order's unit sits in"
          },
          "bin_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Where it is put; left out, the warehouse the work order's unit sits in"
          },
          "findings": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Removed Part Findings: what the technician found on the part"
          },
          "print_label": {
            "type": "boolean",
            "description": "Whether to print the unit's inventory label; left out, as the work order settings' `generate_barcode_at_turn_in` says"
          },
          "printer_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The printer the label goes to; left out, the label is generated for the browser to print"
          }
        },
        "required": [
          "part_uuid",
          "condition_uuid",
          "quantity"
        ]
      },
      "WorkOrderTaskAdvance": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "stage_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The stage to move to, one of `next_stages`; a summary task moves as its sub tasks do, and `cancel` calls a task off"
          }
        },
        "required": [
          "stage_uuid"
        ]
      },
      "WorkOrderTaskAssign": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "assigned_to_uuid": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The employee to work the task, who holds one of its skills today; null leaves it with no one"
          }
        },
        "required": [
          "assigned_to_uuid"
        ]
      },
      "WorkOrderTaskCancel": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "note": {
            "type": "string",
            "description": "Why the task is called off, kept on it"
          }
        },
        "required": [
          "note"
        ]
      },
      "WorkOrderTaskClockIn": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "skill_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The skill the time is worked with: one of the task's, held today by the employee clocking in"
          }
        },
        "required": [
          "skill_uuid"
        ]
      },
      "WorkOrderTaskCopyTemplateInstructions": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_template_instruction_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "description": "The templates' work instructions to copy, from one template or several of the work order's organization, each added after the task's own as an open instruction, in the order named"
          }
        },
        "required": [
          "work_order_template_instruction_uuids"
        ]
      },
      "WorkOrderTaskCopyTemplateMaterials": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "work_order_template_material_uuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "maxItems": 200,
            "description": "The templates' materials to copy, from one template or several of the work order's organization, each added after the task's own as a material added by hand is, in the order named"
          }
        },
        "required": [
          "work_order_template_material_uuids"
        ]
      },
      "WorkOrderTaskReplaceSkills": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "skills": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "skill_uuid": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The uuid of a skill"
                },
                "estimated_hours": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            },
            "description": "Every skill the task needs, in order, with the hours each is estimated at; the ones it named before and not here are dropped"
          }
        },
        "required": [
          "skills"
        ]
      },
      "WorkStationCreate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "organization_uuid": {
            "type": "string",
            "format": "uuid",
            "description": "The uuid of an organization"
          },
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "organization_uuid",
          "code",
          "name"
        ]
      },
      "WorkStationUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "PartImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a parts import (`import_type: parts`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number"
        ],
        "properties": {
          "part_number": {
            "type": "string",
            "description": "Part number; a file's header may also read `pn`, `part`, `part_no`, `partnumber`, `mpn`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `keyword`, `nomenclature`, `name`"
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Manufacturer; names a manufacturer, or its ID in another system, added when missing; a file's header may also read `mfg`, `mfr`, `oem`, `make`, `brand`, `mfr_name`, `mfg_name`"
          },
          "classification": {
            "type": [
              "string",
              "null"
            ],
            "description": "Classification; names a classification, or its ID in another system; a file's header may also read `class`, `category`, `part_classification`, `type`, `part_class`"
          },
          "measurement_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unit of measure; names a unit of measure, or its ID in another system; a file's header may also read `uom`, `unit`, `um`, `measurement_unit_code`"
          },
          "applicabilities": {
            "type": [
              "string",
              "null"
            ],
            "description": "Applicability; names an applicability, or its ID in another system, added when missing; several, separated by `;`, `,` or `|`; a file's header may also read `applicability`, `aircraft`, `platform`, `applications`"
          },
          "hidden_marketplaces": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hidden from marketplaces; names a marketplace, or its ID in another system; several, separated by `;`, `,` or `|`; a file's header may also read `hidden_marketplace`, `hide_from_services`, `hidden_from`"
          },
          "ata_chapter": {
            "type": [
              "string",
              "null"
            ],
            "description": "ATA chapter; names an ATA chapter; a file's header may also read `ata`, `chapter`"
          },
          "country_of_origin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country of origin; names a country; a file's header may also read `country`, `origin`, `coo`"
          },
          "nsn": {
            "type": [
              "string",
              "null"
            ],
            "description": "NSN; a file's header may also read `national_stock_number`, `niin`"
          },
          "serialized": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Serialized; a file's header may also read `serial`, `serialised`, `sn_tracked`"
          },
          "shelf_life_months": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Shelf life (months); a file's header may also read `shelf_life`"
          },
          "lead_time_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lead time (days); a file's header may also read `lead_time`"
          },
          "preferred_vendor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Preferred vendor; names a company, or its ID in another system; a file's header may also read `preferred_supplier`"
          },
          "life_limited": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Life limited"
          },
          "inspection_required": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Inspection required"
          },
          "hot": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Hot part; a file's header may also read `hot_part`"
          },
          "weight": {
            "type": [
              "number",
              "null"
            ],
            "description": "Weight; a file's header may also read `net_weight`"
          },
          "weight_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Weight unit; names a unit of measure, or its ID in another system; a file's header may also read `weight_units`"
          },
          "length": {
            "type": [
              "number",
              "null"
            ],
            "description": "Length"
          },
          "width": {
            "type": [
              "number",
              "null"
            ],
            "description": "Width"
          },
          "height": {
            "type": [
              "number",
              "null"
            ],
            "description": "Height"
          },
          "dimension_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Dimension unit; names a unit of measure, or its ID in another system; a file's header may also read `dimension_units`"
          },
          "hazmat": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Hazmat; a file's header may also read `haz_mat`"
          },
          "un_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "UN number; a file's header may also read `hazmat_id`, `haz_mat_id`"
          },
          "hazmat_class": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hazmat class; a file's header may also read `haz_mat_class_div`"
          },
          "hazmat_shipping_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Proper shipping name; a file's header may also read `proper_ship_name`"
          },
          "export_controlled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Export controlled; a file's header may also read `export_control`"
          },
          "eccn": {
            "type": [
              "string",
              "null"
            ],
            "description": "ECCN; a file's header may also read `export_control_classification_number`"
          },
          "usml_category": {
            "type": [
              "string",
              "null"
            ],
            "description": "USML category; a file's header may also read `itar`"
          },
          "hts_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "HTS code; a file's header may also read `hs_code`"
          },
          "keywords": {
            "type": [
              "string",
              "null"
            ],
            "description": "Keywords; a file's header may also read `tags`, `search_terms`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `comments`, `remarks`, `internal_comments`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "CompanyImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a companies import (`import_type: companies`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name; a file's header may also read `company`, `company_name`, `account_name`, `customer_name`, `vendor_name`"
          },
          "trading_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name on documents; a file's header may also read `dba`, `doing_business_as`"
          },
          "legal_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Legal name; a file's header may also read `registered_name`"
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Account code; a file's header may also read `account_number`, `account_no`, `account`, `company_code`"
          },
          "cage_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "CAGE code; a file's header may also read `cage`"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Customer",
              "Vendor",
              "Both",
              null
            ],
            "description": "Type; a file's header may also read `accounting_type`, `account_type`, `roles`"
          },
          "customer": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Customer?; a file's header may also read `is_customer`"
          },
          "vendor": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Vendor?; a file's header may also read `is_vendor`, `supplier`"
          },
          "customer_payment_term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer payment terms; names a payment term, or its ID in another system; a file's header may also read `customer_terms`, `account_terms`"
          },
          "vendor_payment_term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor payment terms; names a payment term, or its ID in another system; a file's header may also read `vendor_terms`"
          },
          "customer_currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer currency; names a currency"
          },
          "vendor_currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor currency; names a currency"
          },
          "credit_limit": {
            "type": [
              "number",
              "null"
            ],
            "description": "Credit limit"
          },
          "credit_hold": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Credit hold?; a file's header may also read `on_credit_hold`, `temporary_credit_hold`"
          },
          "shipping_instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping instructions; a file's header may also read `ship_instructions`, `shipping_notes`"
          },
          "preferred_ship_via": {
            "type": [
              "string",
              "null"
            ],
            "description": "Preferred ship via; names a ship via, or its ID in another system; a file's header may also read `ship_via`, `preferred_ship_method`, `ship_method`"
          },
          "freight_account": {
            "type": [
              "string",
              "null"
            ],
            "description": "Freight account; a file's header may also read `preferred_ship_account`, `shipping_account_number`, `carrier_account`"
          },
          "freight_carrier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Freight carrier; names a carrier, or its ID in another system; a file's header may also read `freight_account_carrier`, `carrier_account_carrier`"
          },
          "resale_certificate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Resale certificate; a file's header may also read `resale_number`, `resale_exemption`, `resale_certificate_number`"
          },
          "approved_for": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Purchase orders",
              "Repair orders",
              "Both",
              null
            ],
            "description": "Approved for; a file's header may also read `approval`, `vendor_approval`"
          },
          "segments": {
            "type": [
              "string",
              "null"
            ],
            "description": "Segments; names a segment, or its ID in another system, added when missing; several, separated by `;`, `,` or `|`; a file's header may also read `segment`"
          },
          "account_owner": {
            "type": [
              "string",
              "null"
            ],
            "description": "Account owner; names an account owner, or its ID in another system; a file's header may also read `owner`"
          },
          "tax_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tax ID; a file's header may also read `ein`, `vat_number`, `tin`, `vat_tax_id`"
          },
          "website": {
            "type": [
              "string",
              "null"
            ],
            "description": "Website; a file's header may also read `url`, `web`"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phone; a file's header may also read `telephone`, `phone_number`"
          },
          "fax": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fax; a file's header may also read `fax_number`"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address; a file's header may also read `email`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `comments`, `remarks`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "shipping_street": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping street; a file's header may also read `shipping_address`"
          },
          "shipping_city": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping city"
          },
          "shipping_region": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping state or region; a file's header may also read `shipping_state`, `shipping_state_province`, `shipping_province`"
          },
          "shipping_postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping postal code; a file's header may also read `shipping_zip`, `shipping_zip_code`, `shipping_zip_postal_code`, `shipping_postcode`"
          },
          "shipping_country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping country; names a country"
          },
          "billing_street": {
            "type": [
              "string",
              "null"
            ],
            "description": "Billing street; a file's header may also read `billing_address`"
          },
          "billing_city": {
            "type": [
              "string",
              "null"
            ],
            "description": "Billing city"
          },
          "billing_region": {
            "type": [
              "string",
              "null"
            ],
            "description": "Billing state or region; a file's header may also read `billing_state`, `billing_state_province`, `billing_province`"
          },
          "billing_postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Billing postal code; a file's header may also read `billing_zip`, `billing_zip_code`, `billing_zip_postal_code`, `billing_postcode`"
          },
          "billing_country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Billing country; names a country"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "ContactImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a contacts import (`import_type: contacts`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "last_name"
        ],
        "properties": {
          "company": {
            "type": [
              "string",
              "null"
            ],
            "description": "Company; names a company, or its ID in another system; a file's header may also read `company_name`, `account`, `account_name`, `organization`"
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "First name; a file's header may also read `first`, `given_name`"
          },
          "last_name": {
            "type": "string",
            "description": "Last name; a file's header may also read `last`, `surname`, `family_name`"
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name; a file's header may also read `name`, `contact`, `contact_name`"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address; a file's header may also read `email`, `e_mail`"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Title; a file's header may also read `job_title`, `position`"
          },
          "department": {
            "type": [
              "string",
              "null"
            ],
            "description": "Department; a file's header may also read `dept`"
          },
          "salutation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Salutation; a file's header may also read `prefix`"
          },
          "phone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Phone; a file's header may also read `telephone`, `phone_number`, `work_phone`"
          },
          "mobile": {
            "type": [
              "string",
              "null"
            ],
            "description": "Mobile; a file's header may also read `cell`, `mobile_phone`"
          },
          "fax": {
            "type": [
              "string",
              "null"
            ],
            "description": "Fax; a file's header may also read `fax_number`"
          },
          "birthdate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Birthdate; a file's header may also read `birthday`, `date_of_birth`"
          },
          "roles": {
            "type": [
              "string",
              "null"
            ],
            "description": "Roles; names a contact role, or its ID in another system, added when missing; several, separated by `;`, `,` or `|`; a file's header may also read `role`, `contact_roles`"
          },
          "primary": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Primary contact; a file's header may also read `is_primary`"
          },
          "receives_invoices": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Receives invoices?; a file's header may also read `finance_contact`, `invoice_contact`, `billing_contact`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `comments`, `remarks`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "CompanyAddressImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a company addresses import (`import_type: company_addresses`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "company",
          "street"
        ],
        "properties": {
          "company": {
            "type": "string",
            "description": "Company; required when the import names no company in `host_uuid`, and refused when it does; names a company, or its ID in another system; a file's header may also read `company_name`, `account`, `account_name`"
          },
          "label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Label; a file's header may also read `ship_to_code`, `ship_to_name`, `address_label`, `site_name`"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ],
            "description": "Attention; a file's header may also read `attention`, `recipient`"
          },
          "street": {
            "type": "string",
            "description": "Street; a file's header may also read `address`, `street_address`"
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "City; a file's header may also read `town`"
          },
          "region": {
            "type": [
              "string",
              "null"
            ],
            "description": "State or region; a file's header may also read `state`, `province`, `state_province`"
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Postal code; a file's header may also read `zip`, `zip_code`, `postcode`"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country; names a country; a file's header may also read `country_code`"
          },
          "shipping": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Shipping?; a file's header may also read `ship_to`, `is_shipping`"
          },
          "billing": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Billing?; a file's header may also read `bill_to`, `is_billing`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "FacilityImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a facilities import (`import_type: facilities`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "Label; a file's header may also read `facility`, `facility_name`, `location`, `location_name`"
          },
          "attn": {
            "type": [
              "string",
              "null"
            ],
            "description": "Attention; a file's header may also read `attention`, `recipient`"
          },
          "street": {
            "type": [
              "string",
              "null"
            ],
            "description": "Street; a file's header may also read `address`, `street_address`"
          },
          "city": {
            "type": [
              "string",
              "null"
            ],
            "description": "City; a file's header may also read `town`"
          },
          "region": {
            "type": [
              "string",
              "null"
            ],
            "description": "State or region; a file's header may also read `state`, `province`, `state_province`"
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Postal code; a file's header may also read `zip`, `zip_code`, `postcode`"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country; names a country; a file's header may also read `country_code`"
          },
          "shipping": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Shipping?; a file's header may also read `ships_from`, `is_shipping`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "WarehouseImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a warehouses import (`import_type: warehouses`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "warehouse"
        ],
        "properties": {
          "warehouse": {
            "type": "string",
            "description": "Warehouse; a file's header may also read `warehouse_name`, `whse`, `wh`"
          },
          "warehouse_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse code; a file's header may also read `whse_code`, `wh_code`"
          },
          "tool_crib": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Tool crib?"
          },
          "facility": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facility; names a facility, or its ID in another system; a file's header may also read `facility_name`, `facility_label`"
          },
          "bin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bin; a file's header may also read `bin_name`, `bin_code`, `location`, `location_name`, `location_code`, `loc`"
          },
          "bin_description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bin description; a file's header may also read `location_description`"
          },
          "hidden_marketplaces": {
            "type": [
              "string",
              "null"
            ],
            "description": "Hidden from marketplaces; names a marketplace, or its ID in another system; several, separated by `;`, `,` or `|`; a file's header may also read `hidden_marketplace`, `hide_from_services`, `hidden_from`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "BinImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a bins import (`import_type: bins`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "name"
        ],
        "properties": {
          "facility": {
            "type": [
              "string",
              "null"
            ],
            "description": "Facility; names a facility, or its ID in another system; a file's header may also read `facility_name`, `facility_label`"
          },
          "name": {
            "type": "string",
            "description": "Bin; a file's header may also read `bin`, `bin_name`, `bin_code`, `location`, `location_name`, `location_code`, `loc`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `bin_description`, `location_description`"
          },
          "held_from_sale": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Held back from sale?; a file's header may also read `held_back`, `hold_from_sale`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "InventoryImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of an inventory codes import (`import_type: inventories`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "code"
        ],
        "properties": {
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "code": {
            "type": "string",
            "description": "Code; a file's header may also read `inventory_code`, `owner_code`"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name; a file's header may also read `owner_code_name`"
          },
          "type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Plain",
              "Held for others",
              "Consignment",
              "Cost pool",
              null
            ],
            "description": "Type; a file's header may also read `kind`, `code_type`, `owner_code_type`"
          },
          "consignor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Consignor; names a company, or its ID in another system; a file's header may also read `default_consignor`"
          },
          "share": {
            "type": [
              "number",
              "null"
            ],
            "description": "Consignor's share; a file's header may also read `consignment_rate`"
          },
          "consigned_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Consigned on; a file's header may also read `consignment_start`"
          },
          "remaining_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Remaining cost; a file's header may also read `opening_cost`, `lot_remaining_cost`"
          },
          "chargeout_rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Chargeout rate; a file's header may also read `chargeout`"
          },
          "acquired_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Acquired on; a file's header may also read `acquisition_date`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "InventoryLineImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of an inventory lines import (`import_type: inventory_lines`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number"
        ],
        "properties": {
          "identifier": {
            "type": [
              "string",
              "null"
            ],
            "description": "Inventory line; a file's header may also read `inventory_line`, `invl`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `keyword`, `nomenclature`"
          },
          "serialized": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Serialized?"
          },
          "measurement_unit": {
            "type": [
              "string",
              "null"
            ],
            "description": "Unit of measure; names a unit of measure, or its ID in another system; a file's header may also read `uom`, `unit`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "offered_condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Offered condition; names a condition, or its ID in another system; a file's header may also read `offered_cond`, `offered_as`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`, `quantity_on_hand`"
          },
          "inventory": {
            "type": [
              "string",
              "null"
            ],
            "description": "Inventory code; names an inventory code, or its ID in another system; a file's header may also read `owner_code`, `inventory_code`"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse; names a warehouse, or its ID in another system; a file's header may also read `whse`, `wh`"
          },
          "bin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bin; a file's header may also read `location`, `loc`, `warehouse_location`"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Serial number; a file's header may also read `serial`, `sn`"
          },
          "batch_lot_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Batch/lot number; a file's header may also read `batch_lot`, `lot`, `lot_number`, `batch`, `batch_number`, `serial_or_lot_number`"
          },
          "unit_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit cost; a file's header may also read `acquisition_cost`, `cost`, `cost_per_unit`"
          },
          "unit_repair_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit repair cost; a file's header may also read `repair_cost`"
          },
          "received_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Received on; a file's header may also read `received_date`, `receipt_date`, `acquisition_date`"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ],
            "description": "Owner; names a company, or its ID in another system; a file's header may also read `customer`, `owned_by_account`"
          },
          "trace_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Air carrier",
              "Repair station",
              "OEM",
              "Distributor",
              "Government",
              "Other",
              null
            ],
            "description": "Trace type; a file's header may also read `trace`"
          },
          "tag_types": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tag types; any of `FAA 8130-3`, `EASA Form 1`, `UK CAA Form 1`, `TCCA Form One`, `CASA Form 1`, `CAAC Form AAC`, `Certificate of Conformance`, `Other`, separated by `;`, `,` or `|`; a file's header may also read `tag_type`, `cert_type`, `certificate_type`, `tag_form`, `release_form`"
          },
          "trace_source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Traced to; a file's header may also read `source`, `obtained_from`, `last_operator`"
          },
          "certificate_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Certificate number; a file's header may also read `certificate`, `cert_number`"
          },
          "tag_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tag number; a file's header may also read `tag`"
          },
          "tagged_by": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tagged by; a file's header may also read `tag_agency`"
          },
          "tagged_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Tagged on; a file's header may also read `tag_date`"
          },
          "tail_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tail number; a file's header may also read `tail`"
          },
          "engine_serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Engine serial number; a file's header may also read `esn`, `engine_serial`"
          },
          "receiver_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Receiver number; a file's header may also read `receiver`"
          },
          "date_of_manufacture": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date of manufacture; a file's header may also read `manufactured_on`, `cure_date`, `dom`, `manufacture_date`"
          },
          "shelf_life_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Shelf life expires; a file's header may also read `shelf_life_expiry`"
          },
          "warranty_expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Warranty expires; a file's header may also read `warranty_expiry`, `warranty_expr_date`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `lock_version`, `exported_version`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "AlternateImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of an alternates import (`import_type: alternates`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "alternate_part_number"
        ],
        "properties": {
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `primary_part_number`, `inscor_primary_part_number`, `pn`, `part`"
          },
          "alternate_part_number": {
            "type": "string",
            "description": "Alternate part number; names a part, or its ID in another system; a file's header may also read `alternate`, `alternate_product`, `alternateproduct`, `inscor_alternateproduct`, `alternate_pn`"
          },
          "kind": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Alternate",
              "Supersession",
              null
            ],
            "description": "Kind; a file's header may also read `type`, `alternate_type`"
          },
          "interchangeability": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Both ways",
              "One way",
              "None",
              null
            ],
            "description": "Interchangeable; a file's header may also read `interchangeable`, `interchange`"
          },
          "relationship": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Interchangeable",
              "Not interchangeable",
              "Superseded by",
              "Supersedes",
              null
            ],
            "description": "Relationship; a file's header may also read `inscor_relationship`, `relation`"
          },
          "relationship_other_side": {
            "type": [
              "string",
              "null"
            ],
            "description": "Relationship other side; a file's header may also read `inscor_relationship_other_side`, `other_side`, `relationshipotherside`"
          },
          "authority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Authority; a file's header may also read `inscor_authority`, `authorized_by`"
          },
          "both_ways": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Both ways; a file's header may also read `two_way`, `both_sides`, `create_records_for_both_sides`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "ManifestLineImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a manifest lines import (`import_type: manifest_lines`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Line ID; a file's header may also read `line_id`, `manifest_line`"
          },
          "line": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Line"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`, `expected`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Serial number; several, separated by `;`, `,` or `|`; a file's header may also read `serial`, `sn`, `serial_no`, `serials`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `nomenclature`"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse; names a warehouse, or its ID in another system; a file's header may also read `whse`, `wh`"
          },
          "bin": {
            "type": [
              "string",
              "null"
            ],
            "description": "Bin; a file's header may also read `location`, `loc`, `warehouse_location`"
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "description": "Note; a file's header may also read `notes`, `remark`, `remarks`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "CustomerPartPriceImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a part prices import (`import_type: customer_part_prices`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "unit_price"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Price ID; a file's header may also read `price_id`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `partnumber`"
          },
          "inventory_line": {
            "type": [
              "string",
              "null"
            ],
            "description": "Inventory line; a file's header may also read `inventory_line_id`, `line`"
          },
          "vendor_inventory_line": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor inventory line; a file's header may also read `vendor_inventory_line_id`"
          },
          "request_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Outright",
              "Exchange",
              "Lease",
              null
            ],
            "description": "Type; a file's header may also read `type`, `sale_type`, `kind`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer; names a company, or its ID in another system; a file's header may also read `company`, `customer_name`"
          },
          "company_segment": {
            "type": [
              "string",
              "null"
            ],
            "description": "Segment; names a segment, or its ID in another system; a file's header may also read `segment`"
          },
          "minimum_quantity": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Min qty; a file's header may also read `min_qty`, `minimum`, `qty_break`"
          },
          "unit_price": {
            "type": "number",
            "description": "Unit price; a file's header may also read `price`, `sell_price`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "In effect from; a file's header may also read `from`, `starts`"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Until; a file's header may also read `until`, `ends`, `expires`"
          },
          "exchange_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Cost plus",
              "Flat rate",
              null
            ],
            "description": "Exchange type; a file's header may also read `exchange`"
          },
          "core_charge": {
            "type": [
              "number",
              "null"
            ],
            "description": "Core charge; a file's header may also read `core_value`"
          },
          "core_due_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Core due days; a file's header may also read `core_due`, `core_days`"
          },
          "lease_rate_unit": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Day",
              "Week",
              "Month",
              null
            ],
            "description": "Lease rate unit; a file's header may also read `rate_unit`, `rate_per`"
          },
          "lease_minimum_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lease minimum days; a file's header may also read `minimum_days`"
          },
          "lease_included_hours": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lease included hours; a file's header may also read `included_hours`"
          },
          "lease_hour_fee": {
            "type": [
              "number",
              "null"
            ],
            "description": "Lease hour fee; a file's header may also read `hour_fee`, `hourly_fee`"
          },
          "lease_included_cycles": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lease included cycles; a file's header may also read `included_cycles`"
          },
          "lease_cycle_fee": {
            "type": [
              "number",
              "null"
            ],
            "description": "Lease cycle fee; a file's header may also read `cycle_fee`"
          },
          "lease_outright_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Lease outright price; a file's header may also read `outright_price`"
          },
          "lease_due_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Lease due days; a file's header may also read `due_back_days`"
          },
          "lead_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lead time; names a lead time, or its ID in another system; a file's header may also read `turn_time`, `tat`, `turnaround`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `note`, `comments`, `remarks`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "CustomerRepairPriceImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a repair prices import (`import_type: customer_repair_prices`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "repair_service",
          "unit_price"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Price ID; a file's header may also read `price_id`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `partnumber`"
          },
          "repair_service": {
            "type": "string",
            "description": "Service; names a repair service, or its ID in another system; a file's header may also read `service`, `repair`, `repair_type`"
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer; names a company, or its ID in another system; a file's header may also read `company`, `customer_name`"
          },
          "company_segment": {
            "type": [
              "string",
              "null"
            ],
            "description": "Segment; names a segment, or its ID in another system; a file's header may also read `segment`"
          },
          "minimum_quantity": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Min qty; a file's header may also read `min_qty`, `minimum`, `qty_break`"
          },
          "unit_price": {
            "type": "number",
            "description": "Unit price; a file's header may also read `price`, `repair_price`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "In effect from; a file's header may also read `from`, `starts`"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Until; a file's header may also read `until`, `ends`, `expires`"
          },
          "lead_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lead time; names a lead time, or its ID in another system; a file's header may also read `turn_time`, `tat`, `turnaround`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `note`, `comments`, `remarks`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "RepairCapabilityImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a repair capabilities import (`import_type: repair_capabilities`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "repair_service"
        ],
        "properties": {
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `partnumber`"
          },
          "repair_service": {
            "type": "string",
            "description": "Service; names a repair service, or its ID in another system; a file's header may also read `service`, `repair`, `repair_type`, `condition_code`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "work_order_template": {
            "type": [
              "string",
              "null"
            ],
            "description": "Linked template; names a work order template, or its ID in another system; a file's header may also read `template`, `linked_template`, `wo_template`, `work_order_template`"
          },
          "customer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer; names a company, or its ID in another system; a file's header may also read `customer_name`, `account`"
          },
          "applies_at_opening": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Applies to new work orders; a file's header may also read `apply_template_on_wo_creation`, `apply_on_wo_creation`"
          },
          "prices_quote_lines": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Prices new quote lines; a file's header may also read `apply_template_on_cq_line_creation`, `apply_on_cq_line_creation`"
          },
          "copies": {
            "type": [
              "string",
              "null"
            ],
            "description": "Copies to work orders; any of `Header`, `Tasks`, `Work instructions`, `Materials`, `Publications`, `Files`, `None`, separated by `;`, `,` or `|`; a file's header may also read `copy_from_template_to_work_order`, `copies_to_work_order`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "WorkOrderTaskImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a work order tasks import (`import_type: work_order_tasks`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "name"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Task ID; a file's header may also read `task_id`"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sequence; a file's header may also read `seq`, `step`, `task_number`"
          },
          "name": {
            "type": "string",
            "description": "Name; a file's header may also read `task`, `task_name`, `title`"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instructions; a file's header may also read `description`, `details`"
          },
          "task_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Routine",
              "Non-routine",
              null
            ],
            "description": "Task type; a file's header may also read `type`"
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify",
              "Teardown",
              null
            ],
            "description": "Work scope; a file's header may also read `scope`"
          },
          "billing_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Required",
              "Optional",
              "Warranty",
              "Repair process code",
              null
            ],
            "description": "Billing type; a file's header may also read `billing`"
          },
          "summary": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Summary; a file's header may also read `summary_task`"
          },
          "parent": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Parent; a file's header may also read `parent_sequence`, `parent_task`"
          },
          "skill": {
            "type": [
              "string",
              "null"
            ],
            "description": "Skill; names a skill, or its ID in another system; several, separated by `;`, `,` or `|`; a file's header may also read `skills`"
          },
          "estimated_hours": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated hours; a file's header may also read `hours`, `est_hours`"
          },
          "assigned_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "Assigned to; names an employee, or its ID in another system; a file's header may also read `assignee`, `technician`"
          },
          "finding": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Finding; a file's header may also read `finding_number`"
          },
          "publication": {
            "type": [
              "string",
              "null"
            ],
            "description": "Publication; names a publication, or its ID in another system; a file's header may also read `manual`"
          },
          "revision": {
            "type": [
              "string",
              "null"
            ],
            "description": "Revision; a file's header may also read `publication_revision`, `rev`"
          },
          "work_station": {
            "type": [
              "string",
              "null"
            ],
            "description": "Work station; names a work station, or its ID in another system; a file's header may also read `station`"
          },
          "gate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gate; names a work order gate, or its ID in another system; a file's header may also read `toll_gate`"
          },
          "independent_inspection": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Independent inspection; a file's header may also read `rii`"
          },
          "der_repair": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "DER repair; a file's header may also read `der`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "WorkInstructionImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a work instructions import (`import_type: work_instructions`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "task",
          "name"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instruction ID; a file's header may also read `instruction_id`, `work_instruction_id`"
          },
          "task": {
            "type": "integer",
            "description": "Task; a file's header may also read `task_sequence`, `work_order_task`"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sequence; a file's header may also read `step`, `position`"
          },
          "name": {
            "type": "string",
            "description": "Name; a file's header may also read `instruction`, `title`"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instructions; a file's header may also read `description`, `details`"
          },
          "skill": {
            "type": [
              "string",
              "null"
            ],
            "description": "Skill; names a skill, or its ID in another system"
          },
          "assigned_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "Assigned to; names an employee, or its ID in another system; a file's header may also read `assignee`, `technician`"
          },
          "work_station": {
            "type": [
              "string",
              "null"
            ],
            "description": "Work station; names a work station, or its ID in another system; a file's header may also read `station`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `note`"
          },
          "environment_check": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Humidity and temperature check; a file's header may also read `humidity_check`, `environment`"
          },
          "max_humidity_percent": {
            "type": [
              "number",
              "null"
            ],
            "description": "Max humidity; a file's header may also read `max_humidity`, `humidity_limit`"
          },
          "starts_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Starts on; a file's header may also read `start_date`, `starts`"
          },
          "due_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Due on; a file's header may also read `due_date`, `due`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "WorkOrderMaterialImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a work order materials import (`import_type: work_order_materials`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "task",
          "part_number",
          "quantity_requested"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Material ID; a file's header may also read `material_id`, `bom_id`"
          },
          "task": {
            "type": "integer",
            "description": "Task; a file's header may also read `task_sequence`, `work_order_task`"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sequence; a file's header may also read `line`, `item`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `product`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `nomenclature`"
          },
          "material_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Consumable",
              "Replace",
              "Repair",
              "Remove",
              "Visual check",
              "Component",
              "Main component repair",
              "Offer exchange",
              null
            ],
            "description": "Type; a file's header may also read `type`"
          },
          "quantity_requested": {
            "type": "number",
            "description": "Qty requested; a file's header may also read `quantity`, `qty`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "multiplied_by_quantity_to_repair": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Multiplied by quantity to repair; a file's header may also read `multiply_by_wo_qty`, `multiplied`"
          },
          "customer_supplied": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Customer supplied"
          },
          "optional": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Optional"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Missed in evaluation",
              "Additional damage found",
              "Broken hardware",
              "Missing hardware",
              "SB required",
              "AD required",
              "Part not on BOM list",
              null
            ],
            "description": "Requested reason; a file's header may also read `reason`"
          },
          "teardown_finding": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Found",
              "Missing",
              "Damaged",
              "Alternate part number",
              null
            ],
            "description": "Teardown finding; a file's header may also read `teardown_disposition`"
          },
          "part_off": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part off; names a part, or its ID in another system; a file's header may also read `part_number_off`"
          },
          "part_off_serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part off serial number; a file's header may also read `serial_number_off`"
          },
          "part_off_condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part off condition; names a condition, or its ID in another system; a file's header may also read `condition_off`"
          },
          "part_off_life_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part off life status"
          },
          "expected_part": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expected part; names a part, or its ID in another system; a file's header may also read `expected_part_install`"
          },
          "expected_condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expected condition; names a condition, or its ID in another system; a file's header may also read `expected_condition_install`"
          },
          "expected_market_value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Expected market value"
          },
          "removal_priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Removal priority; names a removal priority, or its ID in another system"
          },
          "supply_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "Supply status; names a supply status, or its ID in another system"
          },
          "disposition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Disposition; names a disposition, or its ID in another system"
          },
          "inspection_compliance": {
            "type": [
              "string",
              "null"
            ],
            "description": "Inspection compliance; names an inspection compliance, or its ID in another system"
          },
          "ndt_quantity_status": {
            "type": [
              "string",
              "null"
            ],
            "description": "NDT quantity status; names an NDT quantity status, or its ID in another system"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal notes; a file's header may also read `notes`, `internal_comments`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "WorkOrderTemplateTaskImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a work order template tasks import (`import_type: work_order_template_tasks`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "name"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Task ID; a file's header may also read `task_id`"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sequence; a file's header may also read `seq`, `step`, `task_number`"
          },
          "name": {
            "type": "string",
            "description": "Name; a file's header may also read `task`, `task_name`, `title`"
          },
          "instructions": {
            "type": [
              "string",
              "null"
            ],
            "description": "Instructions; a file's header may also read `description`, `details`"
          },
          "task_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Routine",
              "Non-routine",
              null
            ],
            "description": "Task type; a file's header may also read `type`"
          },
          "work_scope": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Inspect/test",
              "Repair",
              "Overhaul",
              "Modify",
              "Teardown",
              null
            ],
            "description": "Work scope; a file's header may also read `scope`"
          },
          "billing_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Required",
              "Optional",
              "Warranty",
              "Repair process code",
              null
            ],
            "description": "Billing type; a file's header may also read `billing`"
          },
          "output_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Summary",
              "Detail itemized",
              "Hidden",
              null
            ],
            "description": "Output type; a file's header may also read `default_output_type`"
          },
          "summary": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Summary; a file's header may also read `summary_task`"
          },
          "parent": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Parent; a file's header may also read `parent_sequence`, `parent_task`"
          },
          "skill": {
            "type": [
              "string",
              "null"
            ],
            "description": "Skill; names a skill, or its ID in another system; several, separated by `;`, `,` or `|`; a file's header may also read `skills`"
          },
          "estimated_hours": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated hours; a file's header may also read `hours`, `est_hours`"
          },
          "publication": {
            "type": [
              "string",
              "null"
            ],
            "description": "Publication; names a publication, or its ID in another system; a file's header may also read `manual`"
          },
          "work_station": {
            "type": [
              "string",
              "null"
            ],
            "description": "Work station; names a work station, or its ID in another system; a file's header may also read `station`"
          },
          "gate": {
            "type": [
              "string",
              "null"
            ],
            "description": "Gate; names a work order gate, or its ID in another system; a file's header may also read `toll_gate`"
          },
          "independent_inspection": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Independent inspection; a file's header may also read `rii`"
          },
          "der_repair": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "DER repair; a file's header may also read `der`"
          },
          "flat_rate_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Flat rate price; a file's header may also read `flat_rate`"
          },
          "parts_fixed_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Parts fixed price"
          },
          "parts_over_and_above_fixed_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Parts over and above fixed price; a file's header may also read `parts_o_and_a_fixed_price`"
          },
          "labor_fixed_rate": {
            "type": [
              "number",
              "null"
            ],
            "description": "Labor fixed rate"
          },
          "misc_fixed_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Misc fixed price"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "WorkOrderTemplateMaterialImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a work order template materials import (`import_type: work_order_template_materials`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "task",
          "part_number",
          "quantity_requested"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Material ID; a file's header may also read `material_id`, `bom_id`"
          },
          "task": {
            "type": "integer",
            "description": "Task; a file's header may also read `task_sequence`, `work_order_task`"
          },
          "sequence": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sequence; a file's header may also read `line`, `item`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `product`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `nomenclature`"
          },
          "material_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Consumable",
              "Replace",
              "Repair",
              "Remove",
              "Visual check",
              "Component",
              "Main component repair",
              "Offer exchange",
              null
            ],
            "description": "Type; a file's header may also read `type`"
          },
          "quantity_requested": {
            "type": "number",
            "description": "Qty requested; a file's header may also read `quantity`, `qty`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "multiplied_by_quantity_to_repair": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Multiplied by quantity to repair; a file's header may also read `multiply_by_wo_qty`, `multiplied`"
          },
          "customer_supplied": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Customer supplied"
          },
          "optional": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Optional"
          },
          "requested_reason": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Missed in evaluation",
              "Additional damage found",
              "Broken hardware",
              "Missing hardware",
              "SB required",
              "AD required",
              "Part not on BOM list",
              null
            ],
            "description": "Requested reason; a file's header may also read `reason`"
          },
          "part_off": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part off; names a part, or its ID in another system; a file's header may also read `part_number_off`"
          },
          "expected_part": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expected part; names a part, or its ID in another system; a file's header may also read `expected_part_install`"
          },
          "expected_condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Expected condition; names a condition, or its ID in another system; a file's header may also read `expected_condition_install`"
          },
          "expected_market_value": {
            "type": [
              "number",
              "null"
            ],
            "description": "Expected market value"
          },
          "removal_priority": {
            "type": [
              "string",
              "null"
            ],
            "description": "Removal priority; names a removal priority, or its ID in another system"
          },
          "internal_notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Internal notes; a file's header may also read `notes`, `internal_comments`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          }
        }
      },
      "VendorInventoryLineImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a vendor inventory lines import (`import_type: vendor_inventory_lines`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "condition"
        ],
        "properties": {
          "vendor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor; names a company, or its ID in another system; a file's header may also read `vendor_name`, `supplier`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `partnumber`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description; a file's header may also read `desc`, `nomenclature`, `keyword`"
          },
          "condition": {
            "type": "string",
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`, `cd`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`, `qty_available`, `quantity_available`, `available`"
          },
          "unit_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit cost; a file's header may also read `cost`, `price`, `unit_price`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`, `curr`"
          },
          "serial_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Serial number; a file's header may also read `serial`, `sn`, `serial_no`"
          },
          "request_type": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "Outright",
              "Exchange",
              null
            ],
            "description": "Outright or exchange; a file's header may also read `type`, `sale_type`"
          },
          "effective_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "In effect from; a file's header may also read `effective`, `from`, `starts`"
          },
          "expires_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Expires; a file's header may also read `expiry`, `expires`, `until`, `expiration`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "VendorPartPriceImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a vendor part prices import (`import_type: vendor_part_prices`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "part_number",
          "unit_cost"
        ],
        "properties": {
          "uuid": {
            "type": [
              "string",
              "null"
            ],
            "description": "Price ID; a file's header may also read `price_id`"
          },
          "vendor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor; names a company, or its ID in another system; a file's header may also read `vendor_name`, `supplier`"
          },
          "part_number": {
            "type": "string",
            "description": "Part number; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`, `partnumber`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`, `cd`"
          },
          "minimum_quantity": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Min qty; a file's header may also read `min_qty`, `minimum`, `qty_break`"
          },
          "unit_cost": {
            "type": "number",
            "description": "Unit cost; a file's header may also read `cost`, `price`, `unit_price`, `list_price`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`, `curr`"
          },
          "effective_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "In effect from; a file's header may also read `from`, `starts`, `effective`"
          },
          "effective_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Until; a file's header may also read `until`, `ends`, `expires`"
          },
          "lead_time": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lead time; names a lead time, or its ID in another system; a file's header may also read `turn_time`, `tat`, `turnaround`"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ],
            "description": "Notes; a file's header may also read `note`, `comments`, `remarks`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "version": {
            "type": [
              "string",
              "null"
            ],
            "description": "Version; a file's header may also read `exported_version`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "CustomerQuoteImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a customer quotes import (`import_type: customer_quotes`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "quote_line",
          "customer",
          "status"
        ],
        "properties": {
          "quote_line": {
            "type": "string",
            "description": "Quote line ID in another system; a file's header may also read `line_id`, `quote_line_id`"
          },
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Quote number; a file's header may also read `quote_number`, `cq_number`"
          },
          "customer": {
            "type": "string",
            "description": "Customer; names a company, or its ID in another system; a file's header may also read `company`, `customer_name`"
          },
          "contact": {
            "type": [
              "string",
              "null"
            ],
            "description": "Contact; names a contact, or its ID in another system; a file's header may also read `contact_id`"
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer reference; a file's header may also read `customer_ref`, `rfq_number`, `rfq`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`"
          },
          "payment_term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Payment terms; names a payment term, or its ID in another system; a file's header may also read `terms`, `payment_terms`"
          },
          "salesperson": {
            "type": [
              "string",
              "null"
            ],
            "description": "Salesperson; a salesperson's name, or their member's ID in another system; names a salesperson, or its ID in another system; a file's header may also read `sales_rep`, `salesman`"
          },
          "status": {
            "type": "string",
            "enum": [
              "Draft",
              "Sent",
              "Won",
              "Lost"
            ],
            "description": "Status; a file's header may also read `quote_status`"
          },
          "quoted_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Quoted on; a file's header may also read `quote_date`, `quoted`, `created_on`"
          },
          "sent_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Sent on; a file's header may also read `sent`, `date_sent`"
          },
          "won_or_lost_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Won or lost on; a file's header may also read `won_on`, `lost_on`, `closed_on`"
          },
          "lost_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Lost reason; names a lost reason, or its ID in another system, added when missing; a file's header may also read `reason_lost`"
          },
          "valid_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Valid until; a file's header may also read `expires_on`, `valid_through`"
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part number; required unless the row names a `charge`, and refused beside one; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`"
          },
          "charge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Charge; required unless the row names a `part_number`, and refused beside one; names a charge, or its ID in another system; a file's header may also read `charge_code`, `fee`"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Description"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price; a file's header may also read `price`"
          },
          "requested_part_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Requested part number; names a part, or its ID in another system; a file's header may also read `requested_pn`, `asked_part_number`"
          },
          "quantity_requested": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity requested; a file's header may also read `requested_qty`, `requested_quantity`"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Need by; a file's header may also read `need_by_date`, `required_by`"
          },
          "no_quote_reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "No quote reason; names a no quote reason, or its ID in another system, added when missing; a file's header may also read `no_quote`"
          },
          "external_order_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "External order number; a file's header may also read `order_number`, `sales_order_number`, `so_number`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "SalesOrderImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a sales orders import (`import_type: sales_orders`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "customer",
          "status"
        ],
        "properties": {
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number; a file's header may also read `order_number`, `so_number`, `so`"
          },
          "customer": {
            "type": "string",
            "description": "Customer; names a company, or its ID in another system; a file's header may also read `company`, `customer_name`"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer PO; a file's header may also read `customer_po`, `po`, `po_number`"
          },
          "status": {
            "type": "string",
            "enum": [
              "Open",
              "Closed",
              "Cancelled"
            ],
            "description": "Status; a file's header may also read `order_status`"
          },
          "ordered_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Ordered on; a file's header may also read `order_date`, `ordered`, `created_on`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`"
          },
          "payment_term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Payment terms; names a payment term, or its ID in another system; a file's header may also read `terms`, `payment_terms`"
          },
          "salesperson": {
            "type": [
              "string",
              "null"
            ],
            "description": "Salesperson; a salesperson's name, or their member's ID in another system; names a salesperson, or its ID in another system; a file's header may also read `sales_rep`, `salesman`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "SalesOrderLineImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a sales order lines import (`import_type: sales_order_lines`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "sales_order"
        ],
        "properties": {
          "sales_order": {
            "type": "string",
            "description": "Sales order; names a sales order, or its ID in another system; a file's header may also read `order`, `so`, `order_id`"
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part number; required unless the row names a `charge`, and refused beside one; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`"
          },
          "charge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Charge; required unless the row names a `part_number`, and refused beside one; names a charge, or its ID in another system; a file's header may also read `charge_code`, `fee`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price; a file's header may also read `price`"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Need by; a file's header may also read `need_by_date`, `required_by`, `due_date`"
          },
          "customer_reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer reference; a file's header may also read `customer_ref`"
          },
          "warranty_days": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Warranty days; a file's header may also read `warranty`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "SalesOrderShipmentImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a sales order shipments import (`import_type: sales_order_shipments`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "sales_order_line",
          "quantity",
          "shipped_on"
        ],
        "properties": {
          "sales_order_line": {
            "type": "string",
            "description": "Sales order line; names a sales order line, or its ID in another system; a file's header may also read `line`, `order_line`, `line_id`"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity; a file's header may also read `qty`, `quantity_shipped`"
          },
          "shipped_on": {
            "type": "string",
            "format": "date",
            "description": "Shipped on; a file's header may also read `ship_date`, `shipped`, `date_shipped`"
          },
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Shipment number; a file's header may also read `shipment_number`, `release_number`"
          },
          "tracking_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Tracking number; a file's header may also read `tracking`"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse; names a warehouse, or its ID in another system; a file's header may also read `shipped_from`, `whse`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "PurchaseOrderImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a purchase orders import (`import_type: purchase_orders`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "vendor",
          "status"
        ],
        "properties": {
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Number; a file's header may also read `order_number`, `po_number`, `po`"
          },
          "vendor": {
            "type": "string",
            "description": "Vendor; names a company, or its ID in another system; a file's header may also read `company`, `vendor_name`, `supplier`"
          },
          "vendor_reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vendor reference; a file's header may also read `vendor_ref`, `supplier_reference`, `quote_number`"
          },
          "status": {
            "type": "string",
            "enum": [
              "Open",
              "Closed",
              "Cancelled"
            ],
            "description": "Status; a file's header may also read `order_status`"
          },
          "ordered_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Ordered on; a file's header may also read `order_date`, `ordered`, `created_on`"
          },
          "currency": {
            "type": [
              "string",
              "null"
            ],
            "description": "Currency; names a currency; a file's header may also read `currency_code`"
          },
          "payment_term": {
            "type": [
              "string",
              "null"
            ],
            "description": "Payment terms; names a payment term, or its ID in another system; a file's header may also read `terms`, `payment_terms`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "PurchaseOrderLineImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a purchase order lines import (`import_type: purchase_order_lines`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "purchase_order"
        ],
        "properties": {
          "purchase_order": {
            "type": "string",
            "description": "Purchase order; names a purchase order, or its ID in another system; a file's header may also read `order`, `po`, `order_id`"
          },
          "part_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Part number; required unless the row names a `charge`, and refused beside one; names a part, or its ID in another system; a file's header may also read `pn`, `part`, `part_no`"
          },
          "charge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Charge; required unless the row names a `part_number`, and refused beside one; names a charge, or its ID in another system; a file's header may also read `charge_code`, `fee`"
          },
          "condition": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition; names a condition, or its ID in another system; a file's header may also read `condition_code`, `cond`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; a file's header may also read `qty`"
          },
          "unit_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit cost; a file's header may also read `cost`, `price`, `unit_price`"
          },
          "need_by": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Need by; a file's header may also read `need_by_date`, `required_by`"
          },
          "promised_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Promised on; a file's header may also read `expected_on`, `expected_by`, `expected_date`, `promise_date`, `due_date`"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse; names a warehouse, or its ID in another system; a file's header may also read `warehouse_code`, `ship_to_warehouse`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "PurchaseOrderReceiptImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a purchase order receipts import (`import_type: purchase_order_receipts`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "purchase_order_line",
          "quantity",
          "received_on"
        ],
        "properties": {
          "purchase_order_line": {
            "type": "string",
            "description": "Purchase order line; names a purchase order line, or its ID in another system; a file's header may also read `line`, `order_line`, `line_id`"
          },
          "quantity": {
            "type": "number",
            "description": "Quantity; a file's header may also read `qty`, `quantity_received`"
          },
          "received_on": {
            "type": "string",
            "format": "date",
            "description": "Received on; a file's header may also read `receive_date`, `received`, `date_received`"
          },
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Receipt number; a file's header may also read `receipt_number`"
          },
          "warehouse": {
            "type": [
              "string",
              "null"
            ],
            "description": "Warehouse; names a warehouse, or its ID in another system; a file's header may also read `received_into`, `whse`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "InvoiceImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of an invoices import (`import_type: invoices`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "shipment",
          "unit_price",
          "invoice_date",
          "status"
        ],
        "properties": {
          "shipment": {
            "type": "string",
            "description": "Shipment; names a shipment, or its ID in another system; a file's header may also read `release`, `shipment_id`, `release_id`"
          },
          "sales_order_line": {
            "type": [
              "string",
              "null"
            ],
            "description": "Sales order line; required unless the row names a `charge`, and refused beside one; names a sales order line, or its ID in another system; a file's header may also read `line`, `order_line`, `line_id`"
          },
          "charge": {
            "type": [
              "string",
              "null"
            ],
            "description": "Charge; required unless the row names a `sales_order_line`, and refused beside one; a charge added to the bill; names a charge, or its ID in another system; a file's header may also read `charge_code`, `fee`"
          },
          "quantity": {
            "type": [
              "number",
              "null"
            ],
            "description": "Quantity; on a `charge` row, how many it bills, 1 when blank; on a `sales_order_line` row, what shipped, given or left blank; a file's header may also read `qty`, `quantity_billed`"
          },
          "unit_price": {
            "type": "number",
            "description": "Unit price; a file's header may also read `price`, `billed_price`"
          },
          "number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Invoice number; a file's header may also read `invoice_number`"
          },
          "invoice_date": {
            "type": "string",
            "format": "date",
            "description": "Invoice date; a file's header may also read `invoiced_on`, `date`"
          },
          "status": {
            "type": "string",
            "enum": [
              "Sent",
              "Paid",
              "Void"
            ],
            "description": "Status; a file's header may also read `invoice_status`"
          },
          "sent_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Sent on; a file's header may also read `sent`, `date_sent`"
          },
          "paid_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Paid on; a file's header may also read `paid`, `date_paid`"
          },
          "voided_on": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Voided on; a file's header may also read `voided`, `date_voided`"
          },
          "customer_po_number": {
            "type": [
              "string",
              "null"
            ],
            "description": "Customer PO; a file's header may also read `customer_po`, `po`, `po_number`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "MemberImportRow": {
        "type": "object",
        "additionalProperties": false,
        "description": "One line of a `.jsonl` file of a members import (`import_type: members`), the bulk form, or one object in `rows`, the same rows sent inline",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Name; a file's header may also read `full_name`, `member`, `member_name`, `user`, `user_name`"
          },
          "email_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email address; a file's header may also read `email`, `e_mail`"
          },
          "salesperson": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Salesperson?; a file's header may also read `is_salesperson`"
          },
          "active": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Active?; a file's header may also read `is_active`"
          },
          "external_key": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID in another system; offered only where `GET /import_types` lists it; a file's header may also read `external_id`, `external_key`"
          },
          "external_system": {
            "type": [
              "string",
              "null"
            ],
            "description": "System; offered only where `GET /import_types` lists it; a file's header may also read `source_system`"
          },
          "source": {
            "type": "object",
            "additionalProperties": {
              "type": [
                "string",
                "number",
                "boolean",
                "null"
              ]
            },
            "description": "The source system's fields no column takes, kept beside the record a migration writes; refused unless `migrating`"
          }
        }
      },
      "CustomerQuoteSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/customer_quotes",
          "period_over": "received_on",
          "measures": [
            {
              "key": "requests",
              "field": "requests",
              "label": "Requests",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Requests received, each counted once: a repeat of a request is left out, unless its original is trashed and the trash is left out"
            },
            {
              "key": "sent",
              "field": "sent",
              "label": "Sent",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent to the customer, those since won or lost among them"
            },
            {
              "key": "won",
              "field": "won",
              "label": "Won",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent that the customer ordered"
            },
            {
              "key": "lost",
              "field": "lost",
              "label": "Lost",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent and marked lost"
            },
            {
              "key": "open",
              "field": "open",
              "label": "Open",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent and not yet won or lost"
            },
            {
              "key": "quoted",
              "field": "quoted",
              "label": "Quoted",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent with a price on at least one line"
            },
            {
              "key": "no_quote",
              "field": "no_quote",
              "label": "No quote",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Requests where no line was priced and at least one was answered No quote, counted whether sent or not, so they don't add to `sent`"
            },
            {
              "key": "win_rate",
              "field": "win_rate",
              "label": "Win rate",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Won quotes over quotes sent, as Sales › Reports counts it"
            },
            {
              "key": "decided_win_rate",
              "field": "decided_win_rate",
              "label": "Win rate of decided quotes",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Won quotes over quotes sent and since won or lost"
            },
            {
              "key": "median_hours_to_quote",
              "field": "median_hours_to_quote",
              "label": "Median hours to quote",
              "unit": "hours",
              "lower_is_better": true,
              "means": "The middle time from the customer's request to the quote sent, over quotes sent"
            },
            {
              "key": "average_response_hours",
              "field": "average_response_hours",
              "label": "Average response (hours)",
              "unit": "hours",
              "lower_is_better": true,
              "thresholds": [
                12,
                24
              ],
              "means": "The mean time from the customer's request to the quote sent, over quotes sent; a send timestamped earlier than the request counts as zero hours"
            },
            {
              "key": "quoted_value",
              "field": "quoted_value_cents",
              "label": "Quoted value",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "The priced lines' totals of quotes sent, charges included, before tax, in the home currency at each quote's rate; a foreign quote with no rate on file is left out"
            },
            {
              "key": "valued_sent",
              "field": "valued_sent",
              "label": "Sent with a value",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Quotes sent with a price on a line whose value is counted: those in the home currency, and foreign ones with a rate on file"
            },
            {
              "key": "average_quote_value",
              "field": "average_quote_value_cents",
              "label": "Average quote value",
              "unit": "money",
              "lower_is_better": false,
              "means": "Quoted value over quotes sent with a value"
            },
            {
              "key": "average_days_to_close",
              "field": "average_days_to_close",
              "label": "Average days to close",
              "unit": "days",
              "lower_is_better": true,
              "means": "The mean time from the quote sent to the customer's order, in days, over quotes sent and won; a win timestamped before the send counts as zero days"
            }
          ],
          "dimensions": [
            {
              "key": "channel",
              "label": "Channel",
              "means": "How the request arrived",
              "filter": "channel",
              "closed": true
            },
            {
              "key": "outcome",
              "label": "Outcome",
              "means": "Draft, sent, won or lost",
              "filter": "status",
              "closed": true
            },
            {
              "key": "salesperson",
              "label": "Salesperson",
              "means": "Who holds the quote",
              "filter": "salesperson"
            },
            {
              "key": "response_time",
              "label": "Response time",
              "means": "How long from the customer's request to the quote's first send; a send timestamped earlier than the request counts as zero hours, so under an hour",
              "closed": true
            },
            {
              "key": "response_hours",
              "label": "Response time through a day",
              "means": "How long from the customer's request to the quote's first send, in seven bands: five through the first day, over a day, and never sent; a send timestamped earlier than the request counts as zero hours, so under an hour",
              "closed": true
            },
            {
              "key": "quote_value",
              "label": "Quote value",
              "means": "The quote's priced lines' total, charges included, before tax, in the home currency's units at the quote's rate; a quote with no line priced, or foreign with no rate on file, is not priced",
              "closed": true
            },
            {
              "key": "region",
              "label": "Region",
              "means": "Where the quote ships to, read from the country on the quote's ship-to address, not the customer's: the USA, Canada, Europe, Asia or the rest of the world",
              "closed": true
            },
            {
              "key": "us_state",
              "label": "US state",
              "means": "The state a quote shipping to the USA ships to, as its ship-to address writes it; a quote shipping elsewhere, or naming no state, has none"
            },
            {
              "key": "customer",
              "label": "Customer",
              "means": "The customer asking",
              "filter": "customer"
            },
            {
              "key": "received_on",
              "label": "Received",
              "means": "When the customer sent the request",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "received",
              "closed": true
            },
            {
              "key": "sent_on",
              "label": "Sent",
              "means": "When the quote went to the customer",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "closed": true
            },
            {
              "key": "won_on",
              "label": "Won",
              "means": "When the customer ordered",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "closed": true
            }
          ],
          "default_criteria": {
            "each_request_once": "true"
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "requests": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "sent": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "won": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "lost": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "open": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quoted": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "no_quote": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "win_rate": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "decided_win_rate": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "median_hours_to_quote": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "average_response_hours": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quoted_value_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "valued_sent": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "average_quote_value_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "average_days_to_close": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "channel": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The value grouped by"
                },
                "outcome": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The value grouped by"
                },
                "salesperson": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "response_time": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The bucket's key: under_1h, 1_8h, 8_24h, over_1d or never"
                },
                "response_hours": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The bucket's key: under_1h, 1_3h, 3_6h, 6_12h, 12_24h, over_1d or never"
                },
                "quote_value": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The bucket's key: under_5k, 5k_10k, 10k_15k, 15k_25k, 25k_50k, 50k_and_over or not_priced"
                },
                "region": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The bucket's key: us, canada, europe, asia, rest_of_world or none"
                },
                "us_state": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The value grouped by"
                },
                "customer": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "sent_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "won_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "requests": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "sent": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "won": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "lost": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "open": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quoted": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "no_quote": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "win_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "decided_win_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "median_hours_to_quote": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "average_response_hours": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quoted_value_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "valued_sent": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "average_quote_value_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "average_days_to_close": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "requests": {
                  "type": "integer",
                  "description": "Requests received, each counted once: a repeat of a request is left out, unless its original is trashed and the trash is left out"
                },
                "sent": {
                  "type": "integer",
                  "description": "Quotes sent to the customer, those since won or lost among them"
                },
                "won": {
                  "type": "integer",
                  "description": "Quotes sent that the customer ordered"
                },
                "lost": {
                  "type": "integer",
                  "description": "Quotes sent and marked lost"
                },
                "open": {
                  "type": "integer",
                  "description": "Quotes sent and not yet won or lost"
                },
                "quoted": {
                  "type": "integer",
                  "description": "Quotes sent with a price on at least one line"
                },
                "no_quote": {
                  "type": "integer",
                  "description": "Requests where no line was priced and at least one was answered No quote, counted whether sent or not, so they don't add to `sent`"
                },
                "win_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Won quotes over quotes sent, as Sales › Reports counts it"
                },
                "decided_win_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Won quotes over quotes sent and since won or lost"
                },
                "median_hours_to_quote": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The middle time from the customer's request to the quote sent, over quotes sent"
                },
                "average_response_hours": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The mean time from the customer's request to the quote sent, over quotes sent; a send timestamped earlier than the request counts as zero hours"
                },
                "quoted_value_cents": {
                  "type": "integer",
                  "description": "The priced lines' totals of quotes sent, charges included, before tax, in the home currency at each quote's rate; a foreign quote with no rate on file is left out"
                },
                "valued_sent": {
                  "type": "integer",
                  "description": "Quotes sent with a price on a line whose value is counted: those in the home currency, and foreign ones with a rate on file"
                },
                "average_quote_value_cents": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Quoted value over quotes sent with a value"
                },
                "average_days_to_close": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The mean time from the quote sent to the customer's order, in days, over quotes sent and won; a win timestamped before the send counts as zero days"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "channel": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The value grouped by"
                    },
                    "outcome": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The value grouped by"
                    },
                    "salesperson": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "response_time": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The bucket's key: under_1h, 1_8h, 8_24h, over_1d or never"
                    },
                    "response_hours": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The bucket's key: under_1h, 1_3h, 3_6h, 6_12h, 12_24h, over_1d or never"
                    },
                    "quote_value": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The bucket's key: under_5k, 5k_10k, 10k_15k, 15k_25k, 25k_50k, 50k_and_over or not_priced"
                    },
                    "region": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The bucket's key: us, canada, europe, asia, rest_of_world or none"
                    },
                    "us_state": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The value grouped by"
                    },
                    "customer": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "received_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "sent_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "won_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "requests": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "sent": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "won": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "lost": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "open": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quoted": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "no_quote": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "win_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "decided_win_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "median_hours_to_quote": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "average_response_hours": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quoted_value_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "valued_sent": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "average_quote_value_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "average_days_to_close": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Requests received, each counted once: a repeat of a request is left out, unless its original is trashed and the trash is left out"
                    },
                    "sent": {
                      "type": "integer",
                      "description": "Quotes sent to the customer, those since won or lost among them"
                    },
                    "won": {
                      "type": "integer",
                      "description": "Quotes sent that the customer ordered"
                    },
                    "lost": {
                      "type": "integer",
                      "description": "Quotes sent and marked lost"
                    },
                    "open": {
                      "type": "integer",
                      "description": "Quotes sent and not yet won or lost"
                    },
                    "quoted": {
                      "type": "integer",
                      "description": "Quotes sent with a price on at least one line"
                    },
                    "no_quote": {
                      "type": "integer",
                      "description": "Requests where no line was priced and at least one was answered No quote, counted whether sent or not, so they don't add to `sent`"
                    },
                    "win_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Won quotes over quotes sent, as Sales › Reports counts it"
                    },
                    "decided_win_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Won quotes over quotes sent and since won or lost"
                    },
                    "median_hours_to_quote": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The middle time from the customer's request to the quote sent, over quotes sent"
                    },
                    "average_response_hours": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The mean time from the customer's request to the quote sent, over quotes sent; a send timestamped earlier than the request counts as zero hours"
                    },
                    "quoted_value_cents": {
                      "type": "integer",
                      "description": "The priced lines' totals of quotes sent, charges included, before tax, in the home currency at each quote's rate; a foreign quote with no rate on file is left out"
                    },
                    "valued_sent": {
                      "type": "integer",
                      "description": "Quotes sent with a price on a line whose value is counted: those in the home currency, and foreign ones with a rate on file"
                    },
                    "average_quote_value_cents": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Quoted value over quotes sent with a value"
                    },
                    "average_days_to_close": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The mean time from the quote sent to the customer's order, in days, over quotes sent and won; a win timestamped before the send counts as zero days"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "CustomerRfqLineSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/customer_rfq_lines",
          "period_over": "received_on",
          "measures": [
            {
              "key": "requests",
              "field": "requests",
              "label": "Times requested",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Requests asking for the part, each counted once however many of its lines ask"
            },
            {
              "key": "quantity_requested",
              "field": "quantity_requested",
              "label": "Quantity requested",
              "unit": "quantity",
              "lower_is_better": false,
              "additive": true,
              "means": "Units the requests asked for, a line stating no quantity adding none"
            },
            {
              "key": "quoted",
              "field": "quoted",
              "label": "Times quoted",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Requests for the part whose quote was sent with a price on a line answering it"
            },
            {
              "key": "no_quotes",
              "field": "no_quotes",
              "label": "No quotes",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Requests for the part answered No quote, whether the quote was sent or not"
            },
            {
              "key": "quote_rate",
              "field": "quote_rate",
              "label": "Quote rate",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Times quoted over times requested"
            },
            {
              "key": "quantity_on_hand",
              "field": "quantity_on_hand",
              "label": "Quantity on hand",
              "unit": "quantity",
              "lower_is_better": false,
              "additive": true,
              "means": "Units of the parts asked for on hand today, as the inventory summary counts them (our own, active, not spent), each part counted once however often it was asked for; a part number typed with no part has none"
            }
          ],
          "dimensions": [
            {
              "key": "part",
              "label": "Part",
              "means": "The part asked for: its catalog part, else the part number as typed, one group however its spacing, dashes and case differ, named as it was first typed"
            },
            {
              "key": "received_on",
              "label": "Received",
              "means": "When the customer sent the request",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "received",
              "closed": true
            }
          ],
          "default_criteria": {
            "each_request_once": "true"
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "requests": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quantity_requested": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quoted": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "no_quotes": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quote_rate": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quantity_on_hand": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "part": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "requests": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quantity_requested": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quoted": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "no_quotes": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quote_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quantity_on_hand": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "requests": {
                  "type": "integer",
                  "description": "Requests asking for the part, each counted once however many of its lines ask"
                },
                "quantity_requested": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Units the requests asked for, a line stating no quantity adding none"
                },
                "quoted": {
                  "type": "integer",
                  "description": "Requests for the part whose quote was sent with a price on a line answering it"
                },
                "no_quotes": {
                  "type": "integer",
                  "description": "Requests for the part answered No quote, whether the quote was sent or not"
                },
                "quote_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Times quoted over times requested"
                },
                "quantity_on_hand": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Units of the parts asked for on hand today, as the inventory summary counts them (our own, active, not spent), each part counted once however often it was asked for; a part number typed with no part has none"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "part": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "received_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "requests": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quantity_requested": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quoted": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "no_quotes": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quote_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quantity_on_hand": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "requests": {
                      "type": "integer",
                      "description": "Requests asking for the part, each counted once however many of its lines ask"
                    },
                    "quantity_requested": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Units the requests asked for, a line stating no quantity adding none"
                    },
                    "quoted": {
                      "type": "integer",
                      "description": "Requests for the part whose quote was sent with a price on a line answering it"
                    },
                    "no_quotes": {
                      "type": "integer",
                      "description": "Requests for the part answered No quote, whether the quote was sent or not"
                    },
                    "quote_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Times quoted over times requested"
                    },
                    "quantity_on_hand": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Units of the parts asked for on hand today, as the inventory summary counts them (our own, active, not spent), each part counted once however often it was asked for; a part number typed with no part has none"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "InventoryLineSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/inventory_lines",
          "period_over": "received_on",
          "measures": [
            {
              "key": "value_on_hand",
              "field": "value_on_hand_cents",
              "label": "Value on hand",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "What the units on hand cost, acquisition and repair together, as the cost ledger holds them, in the home currency"
            },
            {
              "key": "quantity_on_hand",
              "field": "quantity_on_hand",
              "label": "Quantity on hand",
              "unit": "quantity",
              "lower_is_better": false,
              "additive": true,
              "means": "Units on hand, in each part's own unit of measure, reserved units among them"
            },
            {
              "key": "lines",
              "field": "lines",
              "label": "Inventory lines",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Inventory lines holding units on hand"
            }
          ],
          "dimensions": [
            {
              "key": "condition",
              "label": "Condition",
              "means": "The condition the units are tagged in",
              "filter": "condition"
            },
            {
              "key": "part_classification",
              "label": "Part classification",
              "means": "How the part is classified (rotable, expendable…), as its part record says",
              "filter": "part_classification"
            },
            {
              "key": "organization",
              "label": "Organization",
              "means": "The organization whose inventory holds the units",
              "filter": "organization"
            },
            {
              "key": "shelf_age",
              "label": "Shelf age",
              "means": "How long since the units were received, in the business's days: under 90 days, 90–180 days, 180 days to a year, one to two years, or over two years; a line with no received date has none",
              "closed": true
            },
            {
              "key": "received_on",
              "label": "Received on",
              "means": "The day the units were received",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "received",
              "closed": true
            }
          ],
          "default_criteria": {
            "owned": "true"
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "value_on_hand_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "quantity_on_hand": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "lines": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "condition": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "part_classification": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "organization": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "shelf_age": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The bucket's key: under_90_days, 90_180_days, 180_365_days, 1_2_years, over_2_years or not_received"
                },
                "received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "value_on_hand_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "quantity_on_hand": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "value_on_hand_cents": {
                  "type": "integer",
                  "description": "What the units on hand cost, acquisition and repair together, as the cost ledger holds them, in the home currency"
                },
                "quantity_on_hand": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Units on hand, in each part's own unit of measure, reserved units among them"
                },
                "lines": {
                  "type": "integer",
                  "description": "Inventory lines holding units on hand"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "condition": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "part_classification": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "organization": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "shelf_age": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The bucket's key: under_90_days, 90_180_days, 180_365_days, 1_2_years, over_2_years or not_received"
                    },
                    "received_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "value_on_hand_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "quantity_on_hand": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "value_on_hand_cents": {
                      "type": "integer",
                      "description": "What the units on hand cost, acquisition and repair together, as the cost ledger holds them, in the home currency"
                    },
                    "quantity_on_hand": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Units on hand, in each part's own unit of measure, reserved units among them"
                    },
                    "lines": {
                      "type": "integer",
                      "description": "Inventory lines holding units on hand"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "PurchaseOrderLineSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/purchase_order_lines",
          "period_over": "received_on",
          "measures": [
            {
              "key": "received_lines",
              "field": "received_lines",
              "label": "Lines received",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Purchase order lines whose whole quantity has arrived"
            },
            {
              "key": "promised_lines",
              "field": "promised_lines",
              "label": "Lines received with a promise",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Lines received with an initial or updated promise; a line promised nothing counts in no on-time rate"
            },
            {
              "key": "on_time_lines",
              "field": "on_time_lines",
              "label": "Lines on time",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Lines whose last unit arrived on or before the updated promise, or the initial promise where none was updated, in the business's days"
            },
            {
              "key": "initial_promise_on_time_lines",
              "field": "initial_promise_on_time_lines",
              "label": "Lines on time to initial promise",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Lines whose last unit arrived on or before the initial promise, whatever the updated promise says"
            },
            {
              "key": "on_time_rate",
              "field": "on_time_rate",
              "label": "On-time rate",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Lines on time, to the updated promise or else the initial one, over lines received with a promise"
            },
            {
              "key": "initial_promise_on_time_rate",
              "field": "initial_promise_on_time_rate",
              "label": "On-time rate to initial promise",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Lines on time to the initial promise over lines received with a promise"
            }
          ],
          "dimensions": [
            {
              "key": "vendor",
              "label": "Vendor",
              "means": "The vendor the order was placed with",
              "filter": "vendor"
            },
            {
              "key": "received_on",
              "label": "Received",
              "means": "When the line's last unit arrived, or a package arrived",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "received",
              "closed": true
            }
          ],
          "default_criteria": {
            "receipt_state": [
              "received"
            ]
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "received_lines": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "promised_lines": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "on_time_lines": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "initial_promise_on_time_lines": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "on_time_rate": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "initial_promise_on_time_rate": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "vendor": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "received_lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "promised_lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "on_time_lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "initial_promise_on_time_lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "on_time_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "initial_promise_on_time_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "received_lines": {
                  "type": "integer",
                  "description": "Purchase order lines whose whole quantity has arrived"
                },
                "promised_lines": {
                  "type": "integer",
                  "description": "Lines received with an initial or updated promise; a line promised nothing counts in no on-time rate"
                },
                "on_time_lines": {
                  "type": "integer",
                  "description": "Lines whose last unit arrived on or before the updated promise, or the initial promise where none was updated, in the business's days"
                },
                "initial_promise_on_time_lines": {
                  "type": "integer",
                  "description": "Lines whose last unit arrived on or before the initial promise, whatever the updated promise says"
                },
                "on_time_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Lines on time, to the updated promise or else the initial one, over lines received with a promise"
                },
                "initial_promise_on_time_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Lines on time to the initial promise over lines received with a promise"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "vendor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "received_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "received_lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "promised_lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "on_time_lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "initial_promise_on_time_lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "on_time_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "initial_promise_on_time_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "received_lines": {
                      "type": "integer",
                      "description": "Purchase order lines whose whole quantity has arrived"
                    },
                    "promised_lines": {
                      "type": "integer",
                      "description": "Lines received with an initial or updated promise; a line promised nothing counts in no on-time rate"
                    },
                    "on_time_lines": {
                      "type": "integer",
                      "description": "Lines whose last unit arrived on or before the updated promise, or the initial promise where none was updated, in the business's days"
                    },
                    "initial_promise_on_time_lines": {
                      "type": "integer",
                      "description": "Lines whose last unit arrived on or before the initial promise, whatever the updated promise says"
                    },
                    "on_time_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Lines on time, to the updated promise or else the initial one, over lines received with a promise"
                    },
                    "initial_promise_on_time_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Lines on time to the initial promise over lines received with a promise"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "RepairOrderLineSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/repair_order_lines",
          "period_over": "received_on",
          "measures": [
            {
              "key": "received_lines",
              "field": "received_lines",
              "label": "Lines received back",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Repair order lines at the Received stage: every unit has come back from the repair station"
            },
            {
              "key": "average_days_out",
              "field": "average_days_out",
              "label": "Average days out for repair",
              "unit": "days",
              "lower_is_better": true,
              "means": "The mean of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back; a unit still at the repair station counts in no average, and a line received with no shipment recorded is left out"
            },
            {
              "key": "median_days_out",
              "field": "median_days_out",
              "label": "Median days out for repair",
              "unit": "days",
              "lower_is_better": true,
              "means": "The middle of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back"
            }
          ],
          "dimensions": [
            {
              "key": "vendor",
              "label": "Vendor",
              "means": "The repair shop the order went to",
              "filter": "vendor"
            },
            {
              "key": "part",
              "label": "Part",
              "means": "The part the line sent to the shop",
              "filter": "part"
            },
            {
              "key": "received_on",
              "label": "Received back",
              "means": "When the line's last unit came back from the shop",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "received",
              "closed": true
            }
          ],
          "default_criteria": {
            "received_back": "true"
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "received_lines": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "average_days_out": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "median_days_out": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "vendor": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "part": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "received_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "received_lines": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "average_days_out": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "median_days_out": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "received_lines": {
                  "type": "integer",
                  "description": "Repair order lines at the Received stage: every unit has come back from the repair station"
                },
                "average_days_out": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The mean of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back; a unit still at the repair station counts in no average, and a line received with no shipment recorded is left out"
                },
                "median_days_out": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The middle of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "vendor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "part": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "received_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "received_lines": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "average_days_out": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "median_days_out": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "received_lines": {
                      "type": "integer",
                      "description": "Repair order lines at the Received stage: every unit has come back from the repair station"
                    },
                    "average_days_out": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The mean of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back; a unit still at the repair station counts in no average, and a line received with no shipment recorded is left out"
                    },
                    "median_days_out": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "The middle of the calendar days from a line's first unit shipped to the repair station to its last unit received back, over lines received back"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "SalesOrderSummary": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "object",
          "list",
          "measures",
          "group_by",
          "period",
          "criteria",
          "drills",
          "currency_code",
          "currency_exponent",
          "columns",
          "rows",
          "truncated",
          "compared_to"
        ],
        "x-summary": {
          "list": "/sales_orders",
          "period_over": "created_on",
          "measures": [
            {
              "key": "orders",
              "field": "orders",
              "label": "Orders",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Sales orders"
            },
            {
              "key": "valued_orders",
              "field": "valued_orders",
              "label": "Orders with a value",
              "unit": "count",
              "lower_is_better": false,
              "additive": true,
              "means": "Orders whose value is counted: those in the home currency, and foreign ones with a rate on file"
            },
            {
              "key": "value",
              "field": "value_cents",
              "label": "Order value",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "The lines' totals before tax, in the home currency at each order's rate; a foreign order with no rate on file is left out"
            },
            {
              "key": "average_value",
              "field": "average_value_cents",
              "label": "Average order value",
              "unit": "money",
              "lower_is_better": false,
              "means": "Order value over orders with a value"
            },
            {
              "key": "revenue_booked",
              "field": "revenue_booked_cents",
              "label": "Revenue booked",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "Order value of the orders cut from a quote: what quotes won brought in"
            },
            {
              "key": "costed_value",
              "field": "costed_value_cents",
              "label": "Value of lines with a cost",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "Order value of the units whose cost is known, the value a margin is counted over: a part line's units reserved from inventory or a repair, or on a purchase order once its line is priced; a charge's whole quantity when it carries its own cost"
            },
            {
              "key": "margin",
              "field": "margin_cents",
              "label": "Margin",
              "unit": "money",
              "lower_is_better": false,
              "additive": true,
              "means": "Price less cost over the units whose cost is known, in the home currency: a part line's reserved units at what each cost, a charge at its own cost; units not yet reserved or on an unpriced purchase order line, and a charge with no cost, are left out"
            },
            {
              "key": "margin_rate",
              "field": "margin_rate",
              "label": "Margin rate",
              "unit": "ratio",
              "lower_is_better": false,
              "means": "Margin over the value of the units whose cost is known (a part line's reserved units, a charge's own cost), so each line weighs by its value"
            }
          ],
          "dimensions": [
            {
              "key": "status",
              "label": "Status",
              "means": "Open, closed or cancelled",
              "filter": "status",
              "closed": true
            },
            {
              "key": "salesperson",
              "label": "Salesperson",
              "means": "Who sold it",
              "filter": "salesperson"
            },
            {
              "key": "customer",
              "label": "Customer",
              "means": "Who ordered",
              "filter": "customer"
            },
            {
              "key": "created_on",
              "label": "Created",
              "means": "When the order was created",
              "grains": [
                "day",
                "week",
                "month",
                "quarter",
                "year"
              ],
              "filter": "created",
              "closed": true
            }
          ],
          "default_criteria": {
            "status": [
              "open",
              "closed"
            ]
          }
        },
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "summary"
            ]
          },
          "list": {
            "type": "string",
            "description": "The list path whose rows are totaled"
          },
          "measures": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "group_by": {
            "type": [
              "string",
              "null"
            ]
          },
          "period": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date"
              },
              "to": {
                "type": "string",
                "format": "date"
              }
            }
          },
          "criteria": {
            "type": "object",
            "description": "The list's query the rows were read under: the defaults, a view's criteria, what was sent, and the period"
          },
          "drills": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "description": "For each measure, the list's query, flat, that opens the rows it counts among the rows `criteria` names (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names the rows `criteria` names",
            "properties": {
              "orders": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "valued_orders": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "value_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "average_value_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "revenue_booked_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "costed_value_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "margin_cents": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "margin_rate": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "currency_code": {
            "type": "string",
            "description": "The home currency every `_cents` measure is in"
          },
          "currency_exponent": {
            "type": "integer"
          },
          "columns": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "key",
                "label",
                "kind"
              ],
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "dimension",
                    "measure"
                  ]
                },
                "grain": {
                  "type": "string"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "count",
                    "quantity",
                    "money",
                    "hours",
                    "days",
                    "ratio"
                  ]
                },
                "lower_is_better": {
                  "type": "boolean"
                },
                "thresholds": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "items": {
                    "type": "number"
                  },
                  "minItems": 2,
                  "maxItems": 2,
                  "description": "The two edges the measure's figure is judged by: good on the better side of the first, bad past the second, a warning between"
                },
                "opens": {
                  "type": "string",
                  "enum": [
                    "counted",
                    "over",
                    "period"
                  ],
                  "x-enum-labels": [
                    "The rows it counts",
                    "The rows it is taken over",
                    "The period's rows"
                  ],
                  "x-enum-descriptions": [
                    "Its `drills` open the rows the figure counts",
                    "Its `drills` open the rows of the measures `over` names, which it is taken over: a ratio's denominator, a median's or an average's rows",
                    "No list filter names the rows it counts, so its `drills` open every row of the period or group"
                  ]
                },
                "over": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The measures whose rows the figure is taken over, where `opens` is `over`"
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
              "properties": {
                "status": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The value grouped by"
                },
                "salesperson": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "customer": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The uuid of the record grouped by"
                },
                "created_on": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The first day of the date bucket"
                },
                "label": {
                  "type": "string"
                },
                "criteria": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                },
                "drills": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                  "properties": {
                    "orders": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "valued_orders": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "value_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "average_value_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "revenue_booked_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "costed_value_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "margin_cents": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "margin_rate": {
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  }
                },
                "rest": {
                  "type": "boolean",
                  "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                },
                "orders": {
                  "type": "integer",
                  "description": "Sales orders"
                },
                "valued_orders": {
                  "type": "integer",
                  "description": "Orders whose value is counted: those in the home currency, and foreign ones with a rate on file"
                },
                "value_cents": {
                  "type": "integer",
                  "description": "The lines' totals before tax, in the home currency at each order's rate; a foreign order with no rate on file is left out"
                },
                "average_value_cents": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "description": "Order value over orders with a value"
                },
                "revenue_booked_cents": {
                  "type": "integer",
                  "description": "Order value of the orders cut from a quote: what quotes won brought in"
                },
                "costed_value_cents": {
                  "type": "integer",
                  "description": "Order value of the units whose cost is known, the value a margin is counted over: a part line's units reserved from inventory or a repair, or on a purchase order once its line is priced; a charge's whole quantity when it carries its own cost"
                },
                "margin_cents": {
                  "type": "integer",
                  "description": "Price less cost over the units whose cost is known, in the home currency: a part line's reserved units at what each cost, a charge at its own cost; units not yet reserved or on an unpriced purchase order line, and a charge with no cost, are left out"
                },
                "margin_rate": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Margin over the value of the units whose cost is known (a part line's reserved units, a charge's own cost), so each line weighs by its value"
                }
              }
            }
          },
          "truncated": {
            "type": "boolean",
            "description": "True when more than 100 groups matched and only the first are answered"
          },
          "compared_to": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "compare": {
                "type": "string",
                "enum": [
                  "previous_period",
                  "previous_year"
                ]
              },
              "period": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "format": "date"
                  }
                }
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "description": "One group: the dimension's value, its label, the list query opening its rows, and each measure",
                  "properties": {
                    "status": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The value grouped by"
                    },
                    "salesperson": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "customer": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The uuid of the record grouped by"
                    },
                    "created_on": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The first day of the date bucket"
                    },
                    "label": {
                      "type": "string"
                    },
                    "criteria": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "The list's query, flat, that opens the rows this group counts; null when no filter names them"
                    },
                    "drills": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "additionalProperties": false,
                      "description": "For each measure, the list's query, flat, that opens the rows it counts among this group's rows (its column's `opens` says which); a measure is null where none of them can count, the whole is null where no filter names this group's rows",
                      "properties": {
                        "orders": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "valued_orders": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "value_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "average_value_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "revenue_booked_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "costed_value_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "margin_cents": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "margin_rate": {
                          "type": [
                            "object",
                            "null"
                          ]
                        }
                      }
                    },
                    "rest": {
                      "type": "boolean",
                      "description": "Present, and true, on the one row `top` folds every group past the top ones into"
                    },
                    "orders": {
                      "type": "integer",
                      "description": "Sales orders"
                    },
                    "valued_orders": {
                      "type": "integer",
                      "description": "Orders whose value is counted: those in the home currency, and foreign ones with a rate on file"
                    },
                    "value_cents": {
                      "type": "integer",
                      "description": "The lines' totals before tax, in the home currency at each order's rate; a foreign order with no rate on file is left out"
                    },
                    "average_value_cents": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "description": "Order value over orders with a value"
                    },
                    "revenue_booked_cents": {
                      "type": "integer",
                      "description": "Order value of the orders cut from a quote: what quotes won brought in"
                    },
                    "costed_value_cents": {
                      "type": "integer",
                      "description": "Order value of the units whose cost is known, the value a margin is counted over: a part line's units reserved from inventory or a repair, or on a purchase order once its line is priced; a charge's whole quantity when it carries its own cost"
                    },
                    "margin_cents": {
                      "type": "integer",
                      "description": "Price less cost over the units whose cost is known, in the home currency: a part line's reserved units at what each cost, a charge at its own cost; units not yet reserved or on an unpriced purchase order line, and a charge with no cost, are left out"
                    },
                    "margin_rate": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Margin over the value of the units whose cost is known (a part line's reserved units, a charge's own cost), so each line weighs by its value"
                    }
                  }
                }
              },
              "truncated": {
                "type": "boolean"
              }
            }
          }
        }
      }
    }
  }
}
